Game Development Community

Translucent texture shadows?

by Adam Beer · in Torque 3D Professional · 05/01/2009 (5:57 pm) · 5 replies

I am trying to get some custom trees in T3D, and an having a bit of trouble getting the tree leaves to cast shadows like in the warrior camp level. It doesn't look like there's anything special in the material, so whats the secret to getting those tree leaves to cast shadows?

#1
05/01/2009 (6:05 pm)
Are you using alpha test or alpha blend for the leafy parts? You'll want to use alpha test, as I'm not sure alpha blend plus shadows works.
#2
05/01/2009 (6:18 pm)
Thanks Ross, that did it.
#3
05/03/2009 (7:04 pm)
alpha test or alpha blend is this when saving the png?
#4
05/03/2009 (7:09 pm)
I dare say a DDS is better, translucency goes in the diffuse alpha and spec in the normal alpha. Then try this here.
#5
05/03/2009 (7:17 pm)
@Kevin

No its a setting in the material.cs datablock definitions. Check the Warrior Camp for an example of it in use.