Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

fallingbrickwork

Textures / Colours

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

Hi all, There seems to be a lot of posts relating to Textures & Colours & Lights etc, so here goes... I''ve set up some simple object and am coloring them using glColor3f with glEnable(GL_COLOR_MATERIAL) etc etc. My scene has one light and everything seem okay until...... ....I load in some textures!!. The whole scene then seems to lose the colors i''ve given the objects and they all appear to be variations on the colour of the texture. What is causing this? In my scene I want a mixture of `textured object` and `non-textured objects`. How can I get around this problem?? I''m using NeHe''s tutorial lesson6 for the texturing code. Cheers, fallingbrickwork.

Share this post


Link to post
Share on other sites
Advertisement
You could bind texture 0 (zero) to untextured objects. It''s simply a "void" texture.
You can also turn off texturing when you don''t want it.

Share this post


Link to post
Share on other sites

  • 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!