Jump to content
  • Advertisement
Sign in to follow this  
Daniel Lee

cube with textures and colors

This topic is 4830 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!