Sign in to follow this  

Interpolating Curves + B-Splines

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

This topic is 3673 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this