#131086 - sourcerer - Sun Jun 10, 2007 11:25 pm
Hi,
I am trying to do something oh so simple, get a texture to be transparent (not alpha, but pixels with color 0 being rendered transparent).
I thought it would be as easy as adding in a GL_TEXTURE_COLOR0_TRANSPARENT in the glTexImage2D but it doesn't seem to do what I thought it would. (Tried it in NEHE sample 08, even threw a bunch of zeroes in the texture to make sure it was color0).
Is there anything else I should set as polyflag? Tried DECAL but I think that didn't do what I wanted either (though I tried so many permutations and got no luck :o\ )
Any hint would be greatly appreciated.
Kaj
I am trying to do something oh so simple, get a texture to be transparent (not alpha, but pixels with color 0 being rendered transparent).
I thought it would be as easy as adding in a GL_TEXTURE_COLOR0_TRANSPARENT in the glTexImage2D but it doesn't seem to do what I thought it would. (Tried it in NEHE sample 08, even threw a bunch of zeroes in the texture to make sure it was color0).
Is there anything else I should set as polyflag? Tried DECAL but I think that didn't do what I wanted either (though I tried so many permutations and got no luck :o\ )
Any hint would be greatly appreciated.
Kaj