Alpha channel on tga files

augustoccl wrote on Tuesday, February 15, 2005:

Im a newbie in openGl and wants to do some texture masking on some polygons.
I thought that it would just load a TGA texture with the alpha channel, but it seems to keep painting all the texture in the polygon.
Could someone post some short tutorial on how do apply a masked texture to a polygon?

thanks in advance

Augusto Camarotti

kohaistyle wrote on Wednesday, February 16, 2005:

Try adding :

glDisable(GL_ALPHA_TEST);

just before you apply your textures, should fix your transparency problem.

kohaistyle wrote on Wednesday, February 16, 2005:

Sorry, my mistake, it’s glEnable(GL_ALPHA_TEST);

:slight_smile: