PDA

View Full Version : Transparency in textures



C Lunau
05-14-2003, 11:52 PM
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

Relic
05-15-2003, 12:45 AM
Search for GL_ALPHA_TEST and glAlphaFunc on the forum.

C Lunau
05-15-2003, 02:16 AM
Originally posted by Relic:
Search for GL_ALPHA_TEST and glAlphaFunc on the forum.

Ah thanks, i was looking into the wrong direction!

nexusone
05-15-2003, 04:14 AM
This site has some good examples on this:
nehe.gamedev.net



Originally posted by C Lunau:
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