Game Development Community

Bug: Material Editor...

by Sorin Daraban · in Torque 3D Professional · 07/10/2009 (12:27 pm) · 5 replies

... cannot differentiate between .png and .jpg textures.
ie: When I export a mesh as Collada, if there are two texture with the same name but different formats (ie. jpg, png), the Material Editor only loads the texture0.jpg. The texture0.png seems to be completely ignored. I even tried to add it manually in the Diffuse field of the Material Editor, but cannot be loaded at all, unless I modify the name to something else.

#1
07/10/2009 (7:45 pm)
Sorin, when you manually edit the collada file does it say .jpg or .png?
#2
07/11/2009 (12:19 am)
They are defined as they should be: texture0.png and texture0.jpg.
There are 2 textures. One for each material.
It's the Material Editor that doesn't pick up the difference.
#3
07/11/2009 (10:03 pm)
its the same to torque actually.
Torque references textures by name without extension. Adding it won't change anything.
#4
07/12/2009 (5:57 am)
why do you name them the same? this will ultimately lead to a problem somewhere, especialy with materials.
call them texture0a.png and texture0b.jpg and avoid confusion
#5
07/12/2009 (10:53 am)
It's because the Collada exporter does this automatically.