Transparency problem in TGEA
by Dimitris Matsouliadis · in Torque Developer Network · 02/02/2008 (2:38 pm) · 2 replies
Hi ... from Greece, i am new in Tge 20 days ago, but old in computer programming. My probem is on transparency of Trees and other objects in TGEA. I have draw in 3ds some objects like trees and complex animated machines (DTS/DSQ files). In ShowToolPro all is ok ... After up this objects on my mission they lose the transparency, filling the frames ( i can see the textures ). In TGE 1.5.2 all working properly!
Now any something about that?
Thanks ... a new member in company of GG!
Now any something about that?
Thanks ... a new member in company of GG!
About the author
entelsoft, commercial accounting software
#2
02/02/2008 (3:34 pm)
Thank you very mach Edward ... its ok now! All have transparency now. I tray to check and the others parameters. :)
Torque Owner Edward Smith
Silencersoft
Welcome to GG, in TGEA you have to set the material as transparent.
So in your materials.cs file which is in the same directory as the textures:
new Material(foliage_tex) //material unique name
{
baseTex[0] = "foliage"; //your texture file name
translucent = true;
translucentBlendOp = LerpAlpha;
translucentZWrite = true;
alphaRef = 20; // anything below this number is not visible and is not written to zbuffer
};
You can usually just put in "translucent = true;" And that'll do the job but as you can see you can give a few extra options.