Texture Overwriting problem In T3D
by David Brasher · in Collada Test · 08/22/2010 (10:11 pm) · 2 replies
Hey guys. I'm new to torque 3d and Torque period I can set up static shapes in a level....but that's all.Ive been having this annoying problem that whenever I add a new object to the level the textures on it overwrite some or all of the other textures in my level on other objects I tried checking the force update material.cs option on and off and i still get the error. Any help would be much appreciated.
#2
08/23/2010 (4:35 pm)
Thank You Chris you helped solve my problem (YAY!) I learned my mistake that i was putting the word Texture into all of my texture names when I exported them from 3DS Max. Very much appreciated.
Associate Chris Robertson
T3D allows you to map a scripted Material (the ones in materials.cs), to a material name (the one in your modeling app that is exported to COLLADA).
I suspect you are experiencing material name conflicts - ie. the names of the materials in your model files are not unique, meaning the same scripted Material is being mapped to multiple models.
Sometimes this is useful! Like if you had two two different tree models with the same diffuse textures and other material settings, you would give both the same material name prior to exporting. Then you create a single scripted Material with the desired settings (or let the COLLADA importer create it for you) and map it to the name used by both models. Updating the scripted Material will affect both models as expected.
Other times you want different models to use different scripted Materials. To do this you need to give them unique material names in your modeling app prior to exporting to COLLADA (or use the material prefix option in the T3D COLLADA import gui).