Jump to content
  • Advertisement
Sign in to follow this  

cube with textures and colors

This topic is 4742 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

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!