Jump to content
  • Advertisement
Sign in to follow this  
MacroChip

Interpolating Curves + B-Splines

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

I am developing a few procedures in Pascal that all you create a human like mouse movement, yet I need help with learning Interpolating curves and/or B-Splines. I already understand Bezier Splines, but I want the mouse path to go through the Control Points, not around them. Any information or links would be great.

Share this post


Link to post
Share on other sites
Advertisement
Kochanek-Bartels (or TCB) splines are much better. You get control over the continuity and tension of the tangents at key points (and setting tension, continuity, bias all to 0 creates a Catmull-Rom spline). There is also better descriptions of how to deal with nonuniformly distributed key points.

See Graphics Gems II, "A Simple formulation for curve interpolation with variable control point approximation". This discusses a hybrid of TCB and Duff spline interpolation, but the TCB splines, including dealing with nonuniformity, are fully discussed. The math is exceedingly simple to convert to code (which is abundant in books and the web already)!

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.

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!