cube with textures and colors
allo,
with the Cube of six faces, its to have 4 sides colors and 2 side textured.
but i could not get it correct. please advise.
an extract of the rendering is as follows:-
glBegin(GL_QUADS);
glColor3f(GREEN);
glVertex3f(...);
...
glEnd();
glBindTextures(...);
glBegin(GL_QUADS);
glTexCoord2f(...): glVertex3f(...);
...
glEnd();
But for that all FACES (even the Textures)became GREENISH.
another word, the rendering should be isolated. the face that should be color is GREEN, and those with Textures remain as the original texture.
But how ???
ciao.
All OpenGL settings are solidstate
When you set them they retain that value until set otherwise
Just set the colour back to white when you're done
When you set them they retain that value until set otherwise
Just set the colour back to white when you're done
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement