Pops
03-03-2003, 04:39 PM
I am currently using the following method to position my "camera"
(I know that rotation x y z is not strictly correct but eaiser that pitch roll yaw)
glTranslated(pos_x, pos_y, pos_z)
glRotated(rot_x, 1.0, 0.0, 0.0)
glRotated(rot_y, 0.0, 1.0, 0.0)
glRotated(rot_z, 0.0, 0.0, 1.0)
(I might have rotated first, I cant remember)
this works fine for me, but should I be using gluLookAt insted. Dose it do the same thing to the matrix (I make my translations and rotations to the modelview matrix before I start drawing and positioning my objects)
Thanks
(I know that rotation x y z is not strictly correct but eaiser that pitch roll yaw)
glTranslated(pos_x, pos_y, pos_z)
glRotated(rot_x, 1.0, 0.0, 0.0)
glRotated(rot_y, 0.0, 1.0, 0.0)
glRotated(rot_z, 0.0, 0.0, 1.0)
(I might have rotated first, I cant remember)
this works fine for me, but should I be using gluLookAt insted. Dose it do the same thing to the matrix (I make my translations and rotations to the modelview matrix before I start drawing and positioning my objects)
Thanks