Simple TGEA texture/material question
by Rubes · in Torque Game Engine Advanced · 10/29/2009 (4:02 pm) · 0 replies
I'm still getting used to TGEA (so I'm a little behind the times, I know), and I'm having trouble understanding one of the issues with materials and textures.
I'm porting my game over from TGE, where of course there are no materials. I have a series of AIPlayers, each of which has its own directory and its own textures. However, the corresponding textures for the AIPlayers have the same file names. We have a head.png, handFeet.png, and body.png for each of the AIPlayers.
This apparently does not work in TGEA, as it seems you can't have different textures with the same filename, even if they are in different directories. That seems to hold up even when I define materials for each one, using the pathname in the baseTex[0] field, and even when the material names and the mapTo values are unique. The textures appear to be overwritten as subsequent materials/textures are loaded in, so that all AIPlayers end up using the same textures.
So is it true that you can't use textures with the same filename in TGEA, even when they are in different directories and materials? Or am I missing something? Do I need to rename all of my textures to unique names and then re-export all of the DTS shapes that use those textures?
Thanks...
I'm porting my game over from TGE, where of course there are no materials. I have a series of AIPlayers, each of which has its own directory and its own textures. However, the corresponding textures for the AIPlayers have the same file names. We have a head.png, handFeet.png, and body.png for each of the AIPlayers.
This apparently does not work in TGEA, as it seems you can't have different textures with the same filename, even if they are in different directories. That seems to hold up even when I define materials for each one, using the pathname in the baseTex[0] field, and even when the material names and the mapTo values are unique. The textures appear to be overwritten as subsequent materials/textures are loaded in, so that all AIPlayers end up using the same textures.
So is it true that you can't use textures with the same filename in TGEA, even when they are in different directories and materials? Or am I missing something? Do I need to rename all of my textures to unique names and then re-export all of the DTS shapes that use those textures?
Thanks...