PDA

View Full Version : Camera movement?



McZ
04-03-2002, 11:03 PM
I have created a nice camera class.. and there I can add some points to it and the camera will move from point to point interpolating soft and smooth... but it doesn't work as I want to.. I want a beizer curve so it will be smoth when it swing around an object as it is now it will go strait to the next point and that will make the camera zoom in and out a little on the way to the next point looks strange

mikael_aronsson
04-03-2002, 11:23 PM
Hi !

I think it would be easier to create a spline curve interpolated through the existing points.

Mikael

McZ
04-04-2002, 12:52 AM
Originally posted by mikael_aronsson:
Hi !

I think it would be easier to create a spline curve interpolated through the existing points.

Mikael


ahh... yeah.. spline thats the word I was looking for http://www.opengl.org/discussion_boards/ubb/smile.gif thanks! do you know any tutorials or anything about them ?

mikael_aronsson
04-04-2002, 02:09 AM
Hi !

If I rember correct, http://www.gamasutra.com/ has a few tutorials on this.

Maybe one of these might help you a bit:
http://www.doc.ic.ac.uk/~dfg/AndysSplineTutorial/
http://www.tinaja.com/cubic01.asp
http://www.cs.technion.ac.il/~irit/

IRIT is a set of libraries with everything you could ever wish in spline geometry, evben though it's not completley "free", it comes with source code you can peek at.

Mikael