Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Wolfman

Paths .....

This topic is 5688 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

Ok, I want my camera to move along a set path. This is for the mini-demo contest. Now, the easiest way I can think of is to have a series of points, and then to linearly interpolate between these points. This is easy but I can forsee one problem: Its linear eg if the points are not good enough it will jerk. So I looked around and found out there is cubic spline interpolation. Except that looks like a nightmare with control points, lotso maths etc. So I was wondering if anyone can suggest an easy way to move the camera along a set path but have the path nice and smooth. Or am I going to be resigned to linear interpolation? Thanks, -wolfman

Share this post


Link to post
Share on other sites
Advertisement
set points....ok im just being stupid about it....however

make an equation, pull out your little TI 83, nice little function, and use those points. Dont have to worry about jerky.


Iknow this is a bit more complicated then it has to be, but its how i would do it.

Share this post


Link to post
Share on other sites
Quit yer whining. Cubic spline interpolation is pretty much the easiest way out there to make curves. Spend a little time reading about them, and you will be rewarded.


Don''t listen to me. I''ve had too much coffee.

Share this post


Link to post
Share on other sites
Ok, I had a look at quaternion slerps .... and went right off em! Im not sure that complex numbers & 4D maths is easier than cubic splines ..... so I went and had a major look around for a good CS tutorial .... and I found one that had stuff I could follow in it .... and now im almost done, so thanks for giving me a kick up the backside Sneftel - its what I needed. My maths has allways been my weak point!

-wolfman

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!