Archived

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

fallingbrickwork

Textures / Colours

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