PDA

View Full Version : can i move the camera?



wrelgamal
04-30-2001, 12:01 AM
can i move the camera,if yes how to move it to make navigation inside atube,if not how to make the navigation then

Thug
05-08-2001, 02:13 PM
yes you can "move" the camera





void gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz)


eyex, eyey, eyez (Specifies the position of the eye point.)

centerx, centery, centerz (Specifies the position of the reference point.)

upx, upy, upz (Specifies the direction of the up vector.)


As far as moving you can store a list of the differnt params for the function and display the respective frames to allow the illusion of moving the camera.