Game Development Community

Translucent DTS?

by Sylvain Boivin · in Torque Game Engine Advanced · 03/21/2005 (1:16 pm) · 4 replies

I tried almost everything to make the DTS trees working in TSE, but it seems to not working. I read that DIF material can be translucent but I see nothing about DTS.

It is supported or not?

Thx a lot in advance!

#1
03/22/2005 (10:44 am)
I'm having the same problem with all our RTS models that I'm porting to TSE. Anything partially translucent won't display at all (trees, buildings with windows, etc.). :-(
#2
03/22/2005 (12:57 pm)
Did you set the translucent flag on the material?

datablock Material(Glass)
{
   baseTex[0] = "~/data/shapes/StadiumGlass/glass";

   translucent[0] = true;
   translucentBlendOp = 5;
};
#3
03/22/2005 (1:23 pm)
Hi Matthew. I was using one of my building's .dts files to test this out. The problem is that the building has 2 materials (although they both use the same texture .png). When I say "materials" here I am referring to the 3D Studio Max material, not a TSE material. The sections of the building that use the first material do not use any transparency/opacity and those sections render properly (in both TGE and TSE). The sections of the building that use the second material have some transparencies (the windows) and those sections don't display at all in TSE but show up fine in TGE.

At first I was not using any TSE material for the object, but since then I have tried using a material datablock with translucency set, similar to the one you listed. But the effect of that is to make the those sections of the building that were already displaying fine in TSE become partially transparent, while the sections that weren't rendering still don't render.

Do I need to set up my building .dts differently in TSE or is there some way to get this working as is?

Thanks!
#4
03/22/2005 (2:17 pm)
You should probably split the transparent textures up from the non-transparent textures (will help with sorting). Alternatively you can use the alpha channel to control which sections of the texture are transparent and which aren't.