Sign in to follow this  
absriram

Transparent Textures

Recommended Posts

Hi, I created a chessboard texture (black and white) and mapped it on to a triangle. The resulting texture I get is blended with the color of the triangle. For example I map the texture onto a Green Triangle then the texture is rendered as Black and Green instead of black and white. Why does this happen? Should the texture mapping not be independent of the polygon color? Thanks. Sriram.

Share this post


Link to post
Share on other sites
By Default Opengl Modulates Textures by the polygon color, you can turn that off by useing

glTexEnvi(GL_TEXTURE_ENV_MODE,GL_REPLACE);

but it shouldn't be a problem, just make your poly color white.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this