Shafran wrote:
> Hello
>
> I am trying to move my gluLookAt to an object position (the object's
> origin) but I can't do it.
> i tried while creating the object to save its matrix:
> glGetFloatv(GL_MODELVIEW_MATRIX,mat); and somewhere else in the code
> to glMultMatrix(mat), but it seems wrong...
>
> maybe I misunderstand it all?
>
> can someone help?
>
> thanks!
gluLookAt (eyeX, eyeY, eyeZ, atX, atY, atZ, upX, upY, upZ);
eyeX, eyeY, eyeZ give the location of the camera / eye.
atX, atY, atZ give the pointing direction of the camera;
upX, upY, upZ give the orientation. (0.0; 1.0; 0.0) means the camera is
oriented with up along the y-axis --- the default.
Best regards,
Jon C.


|