Game Development Community

What's the best way to manage materials?

by Rangel Siriaco da Silva · in Torque 3D Beginner · 10/04/2015 (7:38 am) · 2 replies

Hi,



I'd like to receive tips about the best way to manage the materials. I know there's a file (materials.cs) in some folders to control that. Is there a place could I enter to clear all my materials and organize them according my way?


I have some objects pack, and my idea to work efficently is to have all materials organized by pack and types. If I do a script materials.cs in art folder, Can I have this stuff?


Thanks and have a nice day.

Regards,
Rangel.

#1
10/07/2015 (5:45 am)
Normally the materials.cs file is generated by the importer when you add a new model to your game. This way the material definition used by the model is always right next to the model - nice, self-contained package. You can manually edit the file to add other material definitions for that model in its materials.cs file - for skins, as an example. Normally the texture files for the model are kept in the same folder as the model, or a sub-folder of the model's folder.

If you really want to try to keep all of these in a single file somewhere you're going to have to dig into the source code and change that behavior.
#2
10/08/2015 (11:36 am)
Maybe I understand.


What about the file material.cs at the art directory, but out of the packages model's I have. Does it works the same way.

I ask that because my material editor there's a lot of material that I can't indetify in which place they have been downloaded.


If it's possible reply this message.

Thanks for your tip Mr. Richard Ranft.

Have a nice day.

Regards,
Rangel.