quick question about lights

i’ve been wondering, if GL_MAX_LIGHTS = 8
is there any way to set more allowed lights?

the number of allowed lights is set by the implementation on your system (i think on sgi’s it is more than 8)… so you cannot change it, but this limit means you can only use 8 lights at a time so you can do something like this

in one portion of the scene set light 1’s properties
turn on light 1
draw that portion
turn off light 1
set the proporties in a different portion of the scene
turn on light 1
draw the other portion

so you could really have millions of lights (ha, ha) that effect only portions of the scene