• Advertisement

Archived

This topic is now archived and is closed to further replies.

darker textures

This topic is 5553 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm noticing a problem of some sort when I multitexture. If I multitexture a triangle with a texture and a solid white texture, it appears darker than if I just use the single texture. Here is what I'm doing... //for the multitexture glColor3f(1.0f, 1.0f, 1.0f); glDisable(GL_DEPTH_TEST); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glAlphaFunc(GL_GREATER, 0.01f); glEnable(GL_ALPHA_TEST); glActiveTextureARB(GL_TEXTURE1_ARB); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture[0]); glActiveTextureARB(GL_TEXTURE0_ARB); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture[1]); glBegin(GL_QUADS); glMultiTexCoord2fARB(GL_TEXTURE1_ARB, u1,v1); glMultiTexCoord2fARB(GL_TEXTURE0_ARB, u2,v2); glVertex3f( x,y,z); //for the single texture glActiveTextureARB(GL_TEXTURE1_ARB); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture[1]); glColor3f(1.0f, 1.0f, 1.0f); glBegin(GL_TRIANGLES); glMultiTexCoord2fARB(GL_TEXTURE1_ARB, u1, v1); glVertex3f(x, y, z); Anyone know why the multitexture is darker than the single texture? I would think if I blended solid white with something, it would be the same as the something. [edited by - mrrolf810p on December 9, 2002 6:05:06 PM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement