I wana do a movie effect, i have read a topic here but i doesnt work.
CODE:
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
(*glActiveTextureARB)(GL_TEXTURE0_ARB);
glBindTexture(GL_TEXTURE_2D, texture[6]);
glBlendFunc(GL_ONE,GL_ONE);
glColor4f(1.0f,1.0f, 1.0f,blend);
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 1.0f); glVertex2f(0, 0);
glTexCoord2f(0.0f, 0.0f); glVertex2f(0, glnHeight);
glTexCoord2f(1.0f, 0.0f); glVertex2f(glnWidth, glnHeight);
glTexCoord2f(1.0f, 1.0f); glVertex2f(glnWidth, 0);
glEnd();
glDisable(GL_BLEND);
==============================================
i see a semi transparent white quad, i cant see my logo. blend goes from 0 to 1 and than back to 0.(black-mylogo-black) this is what i want.
Maybe some sample code/source code will help.
nvm i fixed it, was my bad 
dorbie
4
Yup, the second glBlendFunc shouldn’t have been there right.
yep i replaced the 2nd blendfuction with the 1st one and i also forgot to enable textures lol
New working code, of some one needs it 
================================================
glEnable(GL_BLEND);
(*glActiveTextureARB)(GL_TEXTURE1_ARB);
glBindTexture(GL_TEXTURE_2D, texture[6]);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(2.0f,2.0f, 2.0f, blend);
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 1.0f); glVertex2f(0, 0);
glTexCoord2f(0.0f, 0.0f); glVertex2f(0, glnHeight);
glTexCoord2f(1.0f, 0.0f); glVertex2f(glnWidth, glnHeight);
glTexCoord2f(1.0f, 1.0f); glVertex2f(glnWidth, 0);
glEnd();
glDisable(GL_BLEND);
==============================================
[This message has been edited by GL_ZERO (edited 08-18-2003).]