Game Development Community

TSStatic translucency bug

by Phil Carlisle · in Torque Game Engine Advanced · 09/17/2006 (12:12 pm) · 5 replies

I'm not sure if its our build or not, but we have some buildings with various transclucent parts (netting over cammo boxes for instance). These objects render with the "no texture found" texture. We couldnt find anything missing then I realised, its only TSStatic's with translucency that are an issue.

So, question is, is this a bug? do other people get the same thing and is TSStatic's prepRenderImage supposed to look like that (calling renderObject directly, seems wrong).

Anyone else?

#1
09/19/2006 (4:51 pm)
It's probably a bug. Can you send me the art data Phil? I can probably fix it real quick.
#2
09/20/2006 (5:29 pm)
OK, the problem was just that the exporter (I'm assuming Maya), tagged the textures as "camocrates.jpg" and "camo1.png". Which means you need to map to that specifically with the "mapTo" parameter. So your materials would look like:

new Material(CamoCratesMaterial)
{
   mapTo = "camocrates.jpg";
   baseTex[0] = "camocrates";
};

new Material(CamoNetMaterial)
{
   mapTo = "camo1.png";
   baseTex[0] = "camo1";
   translucent = true;
};
#3
09/20/2006 (5:31 pm)
You can use a hex editor on your .dts files to see what the texture tags are. On some versions of VC, you can drag a binary file into the IDE and it will function as a hex editor.
#4
12/31/2006 (2:30 am)
I dont know why I didnt reply before, but THANKS Brian :)
#5
01/04/2007 (4:13 pm)
Heh, np ;)