ChrisD
2002.08.03, 05:29 PM
What is the proper way to get GL to draw alpha channels in textures.
Im loading a PNG with an alpha... that works fine in RAVE
and looks like its loading with teh proper GL setting in
glpng.c
But when rendered I get no alpha effects of any type.
And Yes I have been looking though all my books and online FAQs and
its still not clear to me what I should do here
Help me PLEASE!!!!! :-)
- FOLLOW UP -
It alll seems to be working using this...
// TEXTURE SETTINGS //
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glEnable( GL_BLEND );
glEnable( GL_ALPHA_TEST );
glAlphaFunc( GL_GREATER, 0.0 );
But Im not clear on what the GL_APHA_ TEST is doing
since most of the code I saw before this did not have me
turning these two on at all.
glEnable( GL_ALPHA_TEST );
glAlphaFunc( GL_GREATER, 0.0 );
Im loading a PNG with an alpha... that works fine in RAVE
and looks like its loading with teh proper GL setting in
glpng.c
But when rendered I get no alpha effects of any type.
And Yes I have been looking though all my books and online FAQs and
its still not clear to me what I should do here
Help me PLEASE!!!!! :-)
- FOLLOW UP -
It alll seems to be working using this...
// TEXTURE SETTINGS //
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glEnable( GL_BLEND );
glEnable( GL_ALPHA_TEST );
glAlphaFunc( GL_GREATER, 0.0 );
But Im not clear on what the GL_APHA_ TEST is doing
since most of the code I saw before this did not have me
turning these two on at all.
glEnable( GL_ALPHA_TEST );
glAlphaFunc( GL_GREATER, 0.0 );