Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / catmullrom command

Author
Message
krfsim
22
Years of Service
User Offline
Joined: 26th Aug 2003
Location:
Posted: 17th Sep 2003 15:23
Could someone please provide a simple example of how to use this command? I understand its purpose - to smoothly move through the 4-control points defining a curve (but not as smooth as a Bezier curve). And I think I'm setting it up correctly, in that the value parameter adjusts the convergence speed of the interpolation process as the normalized percentage (u) between the points. In other words, to get a 50% point between A and B then use the parameters A,A,B,C,0.5; to get a 25% point between C and D then use the parameters B,C,D,D,0.25; to get the 75% point between B and C then use the parameters A,B,C,D,0.75. Am I on the right track or totally confused? Thanks.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Sep 2003 16:41
Check out Chipones example code in the CodeBase

Login to post a reply

Server time is: 2026-07-26 05:03:21
Your offset time is: 2026-07-26 05:03:21