06-02-2003, 12:34 AM
Hello!
Ive been playing with lightning and shadow volumes, but shadow volumes can be very low if you have many lights.
My question is, Is it worth the trouble? I mean, if you have 4 lights, you will have to draw 8 times the scene (2 per light) and you also have to calc the silhouete for the vector of the light in the objects coordinates. This is very expensive!
Another problem with the GL lights is that objects dont block it..
imagine a heighfield and in the middle a small cabin. Outside there would be only the moonlight and inside a torch or a candle. Now, how do I "stop" the light from getting out through the walls, but not windows?
I did search google.. but couldnt find anything about this particular problem.. maybe I look in the wrong places.
Thanks in advance http://www.opengl.org/discussion_boards/ubb/smile.gif
Ive been playing with lightning and shadow volumes, but shadow volumes can be very low if you have many lights.
My question is, Is it worth the trouble? I mean, if you have 4 lights, you will have to draw 8 times the scene (2 per light) and you also have to calc the silhouete for the vector of the light in the objects coordinates. This is very expensive!
Another problem with the GL lights is that objects dont block it..
imagine a heighfield and in the middle a small cabin. Outside there would be only the moonlight and inside a torch or a candle. Now, how do I "stop" the light from getting out through the walls, but not windows?
I did search google.. but couldnt find anything about this particular problem.. maybe I look in the wrong places.
Thanks in advance http://www.opengl.org/discussion_boards/ubb/smile.gif