algorithm for camera movement


#1

hi
i am programming a short demo and i need to do a lot of smooth movement with the camera and some objects as well.
its some kind of spaceship flying through a canyon.

now is there somewhere outthere an algorithm or library where i can just fill in values like positioncoordinates and timevalues and the movement is done automatically or will i have to do everything myself?

i use openGL btw.

thanks.


#2

Ok I recommmend using a Front, Up, Right, and Pos Vectors to track the orientation of the camera. Then use functions:

Pitch (Rotate along right)
Yaw (Rotate along up)
Roll (Rotate along front)
Move (Move Pos)

Functions to controll the camera. Every time you move or rotate recalculate the normals. Should produce a nice smooth camera usage.


#3

daemienwrath
suggestion i would go with…its the basic and u can find in any game programming book


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.