How to add resources to tianlong Babu model Viewer

Source: Internet
Author: User

Many of my friends have been asking me about the problem I encountered when I added a new model to the tianlong Babu viewer. Here I am going to post an article to solve the problem.

The resources of this viewer are saved in the media directory, and the models under it stores the model file (that is *. mesh and *. skeleton), materials save the material script (*. material) and texture files, which are zip files used in packs.

There is an important configuration file resources. cfg, which is the configuration file of the resource and resource path.

To add a Model exported from tianlong Babu to the viewer, use the following method:

Copy the material script and install material in the data directory of tianlong Babu. AXP stores all the material scripts and textures and imports the extracted files to the Materials Directory. because it uses its own overlay, the exported file is called tlbb. delete the overlay file (note that the program cannot be run without deleting the program ).

Then import the model. model. AXP contains all the models, decompress them, and copy all the files to the models directory.

Upload a material template file named materialtemplates.zip. Copy it to the data directory of tianlong Babu installation path and copy it to media/packs.

Finally, modify the resource configuration file resources. cfg and add a row in the following area.

 

# Resource locations to be added to the 'booking' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip =./Media/packs/ogrecore.zip
Zip =./Media/packs/materialtemplates.zip # This line is newly added.
# Resource locations to be added to the default path
[General]
Filesystem =./Media
Filesystem =./Media/Fonts
Filesystem =./Media/Materials
Filesystem =./Media/models
Filesystem =./Media/GUI

 

You can run the tool to view the result.

If you have any questions, please contact me, my mailbox songnianhu@163.com. Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.