Advertisement

Masking using TGA Alpha Channel

Started by March 01, 2002 09:02 PM
3 comments, last by Narkster 22 years, 11 months ago
I there a way to use the masking technique without creating another TGA just for the mask? Can you use a TGA''s built-in Alpha Channel for masking, or does that only work with Alpha Blending? Thanx, Nark
--------------------------Budha walks up to a hotdog vender and says:"Make me one with everything."L8R
You use alpha testing (for all or nothing) or alpha blending (for translucency if you want it).

Advertisement
And all I have to do is enable Alpha Testing and it works just like blending?(specifically the Alpha channel of the TGA?)

Thanx,
Nark
--------------------------Budha walks up to a hotdog vender and says:"Make me one with everything."L8R
If you use the TGA''s built in alpha channel, make sure that when you load the texture you also load the alpha channel, and that you specify RGBA(or BGRA) instead of just RGB.
like Null and Void said, just enable blending (or alpha testing)
Play with the glBlendFunc parameters, it can produce vastly different effects.
[email=JValentine_13@hotmail.com]contact[/email]
Kewl, thanx guys, now I''m on a more productive track now...
--------------------------Budha walks up to a hotdog vender and says:"Make me one with everything."L8R

This topic is closed to new replies.

Advertisement