Transparency in textures

Hi,

i’m pretty new in OpenGL and at the moment i’m trying to display a texture wher parts are transparent and other part are not. (You know these tree made of to orthogonal planes witha tree texture). Anyhow i can’t find out the settings for the blend function to have the transparent parts fully transparent and the opaque parts fully opaque. All i get is semi transparency for the opaque parts. Which role plays the colour of the quad i filled with my texture? TIA

Search for GL_ALPHA_TEST and glAlphaFunc on the forum.

Originally posted by Relic:
Search for GL_ALPHA_TEST and glAlphaFunc on the forum.

Ah thanks, i was looking into the wrong direction!

This site has some good examples on this:

Originally posted by C Lunau:
[b]Hi,

i’m pretty new in OpenGL and at the moment i’m trying to display a texture wher parts are transparent and other part are not. (You know these tree made of to orthogonal planes witha tree texture). Anyhow i can’t find out the settings for the blend function to have the transparent parts fully transparent and the opaque parts fully opaque. All i get is semi transparency for the opaque parts. Which role plays the colour of the quad i filled with my texture? TIA[/b]