Jump to content
  • Advertisement
Sign in to follow this  
Shawn876

Cubic splines and camera movement

This topic is 2448 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I am in need of a very specific kind of spline. Recently I have been working with equal distanced cubic hermite splines for my camera movement, which works well. However, this kind of spline will not take into account my cameras current lookat direction. It will simply take into account the control points and start / end tangent vectors from those points. I need a spline that will also take into account the direction a control point is currently 'facing'. (related picture attached).

The effect I am looking for is similar to how google earth moves its camera between bookmarks.

Is there an easy way to achieve this? Or will it just require me figuring out / inserting alot more control points manually?

Any ideas on how to start on this would be helpful.
Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You could add a kind of direction key in each control points and interpolate between those direction keys in order to have the proper direction for your camera... But maybe I didn't understand what your problem is...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!