Game Development Community

Transparency on DIF models

by Andres Hernandez · in Torque Game Engine Advanced · 09/28/2006 (12:27 am) · 1 replies

I am trying to get transparent textures working on DIF models in TSE and I'm having some issues. This would be used for windows (somewhat translucent) and also for things like fences or bars which would have some opaque areas and others fully transparent. So far, I tried setting the "translucent = true" flag in the materials.cs but this makes the textures totally invisible. I am using a PNG texture with an alpha channel. Is there any special trick to make it work? Thanks in advance.

#1
09/28/2006 (5:28 am)
I would assume translucency would be applied just like any other additive material, glow, specular, etc. So you might want to add another definition for that material using a grayscale image to control alpha.The materials section on TDN might shed some more light on this.