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.

Also note when its viewed with terrain in the bg it is ok, but black against the scatter sky?
any ideas?

Also note when its viewed with terrain in the bg it is ok, but black against the scatter sky?
any ideas?
About the author
www.ashleyleach.com.au www.silhouette-studios.com.au
#2
Thanks for that - I didnt see your thread when I flicked through :)
06/17/2009 (9:02 pm)
Hey Jordan,Thanks for that - I didnt see your thread when I flicked through :)
#3
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";
};
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.
Torque Owner Jordan Parsons
GP Interactive
www.garagegames.com/community/forums/viewthread/91249
Steve Acaster's fix is here.
Tom Spilman's fix is here.