View Full Version : GL_LIGHT1 - GL_LIGHT7 under linux/nvidia opengl

07-23-2002, 10:40 AM
ive written a glut app that utilizes all 8 opengl lights for animated scenes... except the only one that seems to work in GL_LIGHT0. all others have no effect on the display of the scene(under linux, that is).

the same app compiled and run on SGI octane works fine - all lights functioning.

is there something im neglecting to do? or is the linux/nvidia/mesa implementation of opengl just lacking in this feature?

im running kernel 2.4.13 on an i686 athlon
redhat 7.1
nvidia 2313 libs, XFree864.2.0

07-24-2002, 12:16 PM
>is there something im neglecting to do? or
>is the linux/nvidia/mesa implementation of
>opengl just lacking in this feature?

The lights work fine. Maybe you didn't enable each light? -- Don't know why this would work with an octane, and not a linux box.

07-25-2002, 10:03 AM
yep, it turns out i was crazy.

the lights were being initialized to exponent 0.0 and cutoff 0.0.

perhaps the SGI impl. recognizes these values and replaces them with more sensible ones? kind of a stretch...