PDA

View Full Version : OpenGL Lighting!



MrShane
12-12-2000, 12:00 PM
Hi all! I have a quick question. I was wondering if OpenGL really limits the number of lights you can have in a scene to 8..? Does this seem like a small number, or is it just me? Thanks!

12-12-2000, 12:17 PM
Yes and no.....

OpenGL guarantees at least 8 lights but on some hardware there is more..... (not on many mind you)

the real limitation is that you may only use 8 (or hardware limit) lights at a time not in a program...

This does not seem too limiting in my opinion espcecially if you want to maintain realtime performance...

MrShane
12-12-2000, 12:26 PM
Hum. Thanks! I suppose if you're flexible and unload lights and such when they're not needed, it really doesn't matter...

12-12-2000, 12:31 PM
right, but by unloading I think you mean redefining (if you want to use it eslewhere) or turning it off if it is unused in the particular part of a scene

j
12-12-2000, 05:25 PM
Yes, 8 lights may not seem like many.

But the fact is that usually by about 4 or so lights the scene is completely saturated in some areas, and adding more lights doesn't improve it at all; you just get big white spots where the scene is too bright.

Like you both have been saying, you can use virtual lights and only turn a light on if it has a noticeable effect on an object.

j

MrShoe
12-13-2000, 12:47 AM
Just out of interest MrShane, are you ripping off my name? Not that I really care http://www.opengl.org/discussion_boards/ubb/smile.gif