02-17-2006, 04:20 AM
Why, in the gluLookAt() function, is the Z axis reversed?
I would have thought that if I wanted my camera to be at the origin but one unit backwards in the Z axis I would do...
gluLookAt(0.0f, 0.0f, -1.0f...
But apparently that moves the camera forward in the Z axis one unit and instead, to move the camera backwards I need to do...
gluLookAt(0.0f, 0.0f, 1.0f...
Why is this?
I would have thought that if I wanted my camera to be at the origin but one unit backwards in the Z axis I would do...
gluLookAt(0.0f, 0.0f, -1.0f...
But apparently that moves the camera forward in the Z axis one unit and instead, to move the camera backwards I need to do...
gluLookAt(0.0f, 0.0f, 1.0f...
Why is this?