Game Development Community

DefaultMaterial errors with lots of dts files

by Rex Hiebert · in Torque 3D Professional · 05/27/2010 (8:57 am) · 0 replies

I have a few hundred dts files. Each was exported with their own texture as a png file named the same as the dts file so that there is no overlap.

Now I am getting a lot of errors as follows:

Sim::getUniqueName( DefaultMaterial) - failed after 100 attempts
[Material::mapMaterial] - Cannot map unnamed Material
[MaterialList::mapMaterials] Creating missing material for texture: art/shapes/.....

Is there a simple fix to this? I'm not familiar enough with the material system to be able to find where in the code to change it to use the filename as the material name.

This thread www.torquepowered.com/community/forums/viewthread/67283 looked like it was dealing with something similar but it looks like the MaterialList::mapMaterials function has changed since the post was written.

Using T3D 1.0.1