PDA

View Full Version : Moving a Scene



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

Jan
08-24-2009, 05: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.

Jan.