Transparency question

If I have a black texture with a white circle in the middle of it. How can I set transprency to to make the black around the circle disapear?

Make it an RGBA texture. RGB represents the circle color, for your purpose it’s white.
The Alpha values should be one for untransparent (visible) and zero for completely transparent. Set it up to GL_MODULATE.
Then before drawing the texured face (which will end up in a white circle, or whatever color you chose for the poly or the texture)

glBindTexture(GL_TEXTURE_2D,gl_circle_name );
glEnable( GL_BLEND );

Then draw the textured quad.

Thank you…

It got rid of the black but the circle is transparent. I don’t want to see through the circle…Is it possible to fix this?

Thank you again

I also would like to apply it to other bitmaps…like say a black outlined jet mapped to a quad…by erasing the black…all I see is the jet

Try with glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA). See also what happens with glBlendFunc(GL_ONE, GL_SRC_ALPHA)…