Game Development Community

Transparency problem

by Andrew Barrick · in Technical Issues · 10/23/2007 (11:09 pm) · 3 replies

I'm embarrassed asking this but for the life of me i can't figure this out. I have alpha channels working in max and in ShowTools, but not in tgea. Does anyone have an idea or can point my nose in the right direction? A specific solution probably isn't possibly with what i've shared, but areas i should be looking into would be appreciated.

About the author

Recent Threads


#1
10/23/2007 (11:32 pm)
Hey Andrew, you have to have a material script file that defines certain texture attributes, like translucent and such. Name it materials.cs and drop it in the models folder (or above). Here is a example, although hopefully someone who uses TGEA would chime in and give a better example:

new Material(RRGTS_branch033)
{
   baseTex[0] = "RRGTS_branch033";
   translucent = true;
   translucentBlendOp = LerpAlpha;
   translucentZWrite = true;
   alphaRef = 20;  // anything below this number is not visible and is not written to zbuffer
};

I'd do a search for alpha channels and material.cs in TGEA for probably a bit more info, but hopefully this gives you a direction to start.
#2
10/23/2007 (11:49 pm)
Thanks very much
#3
10/24/2007 (12:07 am)
Just typed it up, that's exactly what i needed. thank you again