-
OpenGL lighting
I have been using OpenGL for a little while now, and everything seems to be working ok until i tried to add a bit of lighting.
Basically, my problem is that whenever i glEnable() lighting, there seems to always some ambient light, even if i glDisable() light zero...for my game, i want complete darkness at times, but that seems impossible.
Also, the brightness of the ambient light seems to change depending on whether a certain object is drawn...even though i make no lighting calls when i draw it...could this be because of texturing??
Thanks for any help
-
Re: OpenGL lighting
This question would be better suited in the games and graphics section.
-
Re: OpenGL lighting
sorry, haven't been here in a while...i use C++ only now, so thought i'd put it in here, as i was hoping for an answer hopefully using C++ code....
anyway, if this should be somewhere else, is it possible for the whole thread to be moved there....admins? or should i repost?
-
Re: OpenGL lighting
Congrats on using c++. Welcome!!