Lighting&Display Lists

Sam has a problems again.
How can i create point light in the same coordinates as my 3d objects.(It’s seems that LOCAL_VIEWER isn’t the right way to solve this)
And that GL_POSITION means?
By the way, can i call different display lists during one “repaint”(don’t know how to call it)
P.S. Thanks MikeC

Originally posted by Sam Kovalev:

How can i create point light in the same coordinates as my 3d objects.(It’s seems that LOCAL_VIEWER isn’t the right way to solve this)
And that GL_POSITION means?

Not sure what you mean - what are you doing, what are you expecting and what are you seeing?

One thing to remember is that the coordinates you pass to glLight with GL_POSITION are transformed by the current modelview matrix, so if you’re defining light position/direction in the frame of reference of one of your scene objects, rather than in that of the camera, make sure you’ve set up the appropriate modelview translations and rotations BEFORE you call glLight.

Originally posted by Sam Kovalev:
By the way, can i call different display lists during one “repaint”(don’t know how to call it)
Yes, you can call as many dlists as you like in the course of rendering a frame.

HTH
Mike