cube with textures and colors

Started by
2 comments, last by _DarkWIng_ 18 years, 11 months ago
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.
Advertisement
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
_______________________________ ________ _____ ___ __ _`By offloading cognitive load to the computer, programmers are able to design more elegant systems' - Unununium OS regarding Python
well it works, but how then do i get a white surface ?

ciao.
a) Set color to white and disable texturing
b) Don't crosspost!
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement