Translating and Rotating using GluLookAt:

Started by
1 comment, last by adam17 19 years, 7 months ago
ive got the translating down and all that but i am confused as to how i would rotate the camera using gluLookAt: for instance i have a simple scene and i want to turn the eye position on a dime, 45 degrees, then translate some more then 90 degrees.. etc etc...i am confused about this part -- maybe i am making it too hard..
heh
Advertisement
What axis would you want to rotate about ?

Red Book chapters have standard forumulae for rotating about x, y and the z axes.
all i did was use the mouse to rotate on the x and y axis. using the change in x and y's values i incremented or decremented the angle for the x and y axis of glulookat. simple trig using sin, cos, and tan will help u obtain the x, y and z values of the target. my up vector stays the same at 0,1,0

This topic is closed to new replies.

Advertisement