Original Post
🔒 Locked
colour problem
Advertisement
It all depends on wether lighting is activated or not...
If lighting is enabled ( glEnable(GL_LIGHTING); ), then the colors on your object will be a combination of the light and the material you assigned to the object.
If lighting is disabled ( glDisable(GL_LIGHTING); ), then the color on your object will just be the one you gave to glColor3f();
My guess is you haven''t enabled light, or your light is not configured properly.
--
New feature - Windows users, press ALT-F4 to launch the IQ test.
If lighting is enabled ( glEnable(GL_LIGHTING); ), then the colors on your object will be a combination of the light and the material you assigned to the object.
If lighting is disabled ( glDisable(GL_LIGHTING); ), then the color on your object will just be the one you gave to glColor3f();
My guess is you haven''t enabled light, or your light is not configured properly.
--
New feature - Windows users, press ALT-F4 to launch the IQ test.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement