PDA

View Full Version : Camera move along points defined



sodx999
08-18-2003, 04:11 PM
I have done a program that can plot points in the 3d world using gluUnproject based on mouse click.a series of point have been genereated and rendered in to the opengl window, the problem is how could i make the camera move along the points created(the points then will make a line joining each other)

gumby
08-18-2003, 04:29 PM
Assuming you know how to move the camera: you could interpolate the points with a cubic spline. You probably also want to control the camera orientation also. In this case you could use a quaternion spline.