View Full Version : Moving a Scene

Creative Mind
08-24-2009, 04:04 AM
How can i move a scene??
can it be done by simply changing the viewport in a loop...??

08-24-2009, 04:30 AM
Not the viewport, but the Modelview Matrix.

glMatrixMode (GL_MODELVIEW);
glTranslatef (...)
glRotatef (...)

It is more intuitively to think about moving "the camera", not "the scene". If you want to move "the scene" to the right, you need to move "the camera" to the left.

For good tutorials, look at nehe.gamedev.net.