Jump to content
  • Advertisement

Archived

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

hello_there

color problem

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

i want to make something white but when i set the color to white like this glColor3f(1.0f,1.0f,1.0f); it''s not white it''s brown anyone know why?

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by hello_there
so i just disable is then enable it after?

Texturing? The glDisable and glEnable functions with GL_TEXTURE_2D.
quote:
Original post by hello_there
also why does that make it look brown?

Well, if the texture is still being used (i.e. texturing is still enabled), but you aren''t changing the texture coordinate, the color value at that coordinate will (by default) be mixed in with the color of the vertices rendered.

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.

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

Sign me up!