Game Development Community

Funny alpha issue on tree

by Ashley Leach · in Torque 3D Professional · 06/17/2009 (8:34 pm) · 6 replies

having a funny issue with the tree alpha - default Torque tree just modified the texture, works fine in TGE/TGEA but rendering weird in T3D.

img132.imageshack.us/img132/8201/treeprob.jpg
Also note when its viewed with terrain in the bg it is ok, but black against the scatter sky?

any ideas?

#1
06/17/2009 (8:42 pm)
Looks like the same issue I was having:

www.garagegames.com/community/forums/viewthread/91249

Steve Acaster's fix is here.

Tom Spilman's fix is here.
#2
06/17/2009 (9:02 pm)
Hey Jordan,
Thanks for that - I didnt see your thread when I flicked through :)
#3
06/17/2009 (9:07 pm)
Excellent - worked a treat. Just incase anyone doesnt want to click through to other threads this is what fixed it for me (taken from Steve Acaster's thread -Thanks!) .


new Material(abranch1)
{
mapTo = "abranch1";
basetex[0] = "art/shapes/foliage/templates/abranch1";
translucent = true;
translucentBlendOp = None;
translucentZWrite = 0;
alphaRef = 180;
diffuseMap[0] = "art/shapes/foliage/templates/abranch1";
doubleSided = "1";
castShadows = "0";
alphaTest = "1";
materialCategory = "Uncategorized";
};
#4
06/17/2009 (9:43 pm)
Glad it worked for you :)
#5
06/18/2009 (1:15 am)
Btw...you can remove the "baseTex[0]". We renamed "baseTex" to "diffuseMap" (as well as the rest of the "tex"'s). We left "baseTex" hooked up for backwards compatibility but if you have a "diffuseMap" it will use that instead.
#6
06/21/2009 (1:39 am)
Worked for me too :)

Thanks, I appreciate the info! :)