Why do we move the world instead of the camera

Posted by sharethis on Game Development See other posts from Game Development or by sharethis
Published on 2012-10-28T10:25:46Z Indexed on 2012/10/28 11:23 UTC
Read the original article Hit count: 216

Filed under:
|
|
|
|

I heard that in an OpenGL game what we do to let the player move is not to move the camera but to move the whole world around.

For example here is an extract of this tutorial: http://open.gl/transformations

In real life you're used to moving the camera to alter the view of a certain scene, in OpenGL it's the other way around. The camera in OpenGL cannot move and is defined to be located at (0,0,0) facing the negative Z direction. That means that instead of moving and rotating the camera, the world is moved and rotated around the camera to construct the appropriate view.

Why do we do that?

© Game Development or respective owner

Related posts about opengl

Related posts about camera