The light isn't where I want it to be.

BlitzMax Forums/BlitzMax OpenGL Programming/The light isn't where I want it to be.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You don't need to use glTranslate, glScale, glRotate etc for lights.. that's what glLightfv(lnum, GL_POSITION, Position) is for (Rotation is handled for spot lights only via cone angles).

You need to reposition your lights every frame, and you don't need to push or pop the matrix.

Regards,
Chris