C ++ OpenGL gluLookAt help

I'm trying to use gluLookAt, but I ran into some problems ... first, this is what is the default camera position, when I try to use it, my whole scene seems to rotate sideways and up ... my second question ... from what I read is gluLookAt (Posx, Posy, PosZ, yaw, pitch, roll, then three up vectors)

but what order is a pitch and a yaw roller?

the
default solvable camera position is on gluLookAt (0, 0, 0, 0, 0, -1, 0, 1, 0); Thanks Drew for your help: D

+5
source share
1 answer

, gluLookAt(). - OpenGL 2.1 :

eyeX, eyeY, eyeZ:
  World coordinates of camera location

centerX, centerY, centerZ:
  World coordinates of camera aimpoint (what it looking at).
  This point will be in the center of the resulting image, assuming
  that it lies between the near & far clip planes.

upX, upY, upZ:
  A vector (preferrably orthogonal to the line of sight) that specifies the
  roll orientation of the camera (that is, which way is "up" in the image).

, , .

, (0, 0, -1), , , gluLookAt .

+4

All Articles