two lights doesnt work
strange problem....it looks something like tihs...
i am initializing two lights in init routine(position and color)
in my drawing routine just after my rotates for mouse movements i update lights position just to rotate with everything else in the scene but one light is working and another is not...i must say that i did exactly the same with both lights and it seems that one is working properly and the other one is not...so what''s tha catch?
belgrade-yu
It should, you can have up to 8 (if i remember correctly) lights at a time.
Post some init code, and what you do with the lights after the glLookat.
Post some init code, and what you do with the lights after the glLookat.
Only the first light has default diffuse color (1,1,1,1)
Others are black (0,0,0,1).
Try using glLight(GL_LIGHT0 + 1, GL_DIFFUSE, ...) and give it a color like (1,1,1,1)
[edited by - baskuenen on November 15, 2003 10:14:38 PM]
Others are black (0,0,0,1).
Try using glLight(GL_LIGHT0 + 1, GL_DIFFUSE, ...) and give it a color like (1,1,1,1)
[edited by - baskuenen on November 15, 2003 10:14:38 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement