Skip to main content
gamedev.net
🔒 Locked

color problem

Started by hello_there Jul 26, 2002 at 8:20 PM 2 replies 450+ views
Original Post
hello_there
hello_there
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?
____________How could hell be worse?
Null and Void
Null and Void
Is texturing enabled? If so, turn it off. Is lighting currently enabled? If so, turn it off.

hello_there
hello_there
so i just disable is then enable it after?
also why does that make it look brown?
____________How could hell be worse?
Null and Void
Null and Void
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.