After making a few changes in my application, my textures are no longer showing. So far I've checked the following:
- The camera direction hasn't changed.
- I can see the vectors (when colored instead of textured).
Any usual suspects?
After making a few changes in my application, my textures are no longer showing. So far I've checked the following:
Any usual suspects?
You may want to check the following:
glEnable(GL_TEXTURE_2D);
presence
glBindTexture(GL_TEXTURE_2D,
texture[i]);
and
glBindTexture(GL_TEXTURE_2D, 0);
when you don't need texture anymore
A few more things to check:
Does a glColor3ub(255,255,255) before rendering your textured object help? I think the default OpenGL state multiplies the current glColor by the incoming texel; a stray glColor3ub(0,0,0) will make all your textures look black.