Game Development Community

Torque 3D Beta 1 Bug: ColladaLoader don`t update materials.cs

by Luis Anton Rebollo · in Torque 3D Professional · 05/16/2009 (2:33 am) · 2 replies

ColladaLoader don`t update materials.cs if they are some change in DAE file

#1
05/16/2009 (8:27 pm)
Actually it will if there are changes to the material information that does not match what's in the material file. Give it a try but that's the behavior I have seen here.
#2
07/03/2009 (5:07 pm)
The Collada loader will only write Materials that do not already exist. So the first time you load the model into Torque, the loader will generate materials.cs and fill it with all the materials in the DAE file.

On subsequent loads of the DAE file, even if the material settings in that file have changed, materials.cs will not be updated.

The reason this is done is that after the initial load of the file into Torque, you should really use the built-in Material editor to change material settings (instead of in the your modeling app), and you don't want the Collada loader to go and overwrite your changes to materials.cs just because the .DAE file has changed.

If you do want materials.cs to be re-generated, just delete it (and the .cached.dts file) and re-load the Collada model in Torque.