PDA

View Full Version : Lamps



littledevore
12-12-2001, 11:44 AM
I want to make a light that will act as a lamp, and also I want to make a stationary spotlight, but it keeps moving as I move the camera. HELP! PLEASE!

Korval
12-12-2001, 05:15 PM
First, don't shout, "HELP! PLEASE!"

Second, the light's position is multiplied by the current state of the GL_MODELVIEW matrix. Therefore, to make the spotlight stationary, set the light after you set up the camera matrix.

littledevore
12-12-2001, 05:28 PM
Sorry For shouting. Deadlines make me a little crazy. Thanks for the help.
http://www.opengl.org/discussion_boards/ubb/smile.gif

bhunt
12-13-2001, 01:16 AM
i know you!!! Long time no see, this is Bryan and I was searching for the same answer as you, you need to use the spotlight section in our book but mine doesnt work right. See You Later