Archived

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

biotech

two lights doesnt work

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites