gluLookAt

Alternative to using translate & rotate for camera control

gluLookAt computes and applies an appropriate translation & rotation



    gluLookAt(cameraX, cameraY, cameraZ,
              lookX, lookY, lookZ,
              upX, upY, upZ)

cameraX, cameraY, cameraZ is the location of the camera - the point to look from

lookX, lookY, lookZ is the point to look at

upX, upY, upZ is the "up-direction" for the camera - it affects the rolling of the camera





next