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.

Code Snippets / Non Uniform Rational B-Spline (NURBS) Curves

Author
Message
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 3rd Oct 2006 21:09 Edited at: 3rd Oct 2006 21:33
Here's some code that calculates NURBS curves. I didn't invent the code, just converted it from C++/OpenGL code, which can be found here: http://www.robthebloke.org/opengl_programming.html . I think the curves are mainly be used for smoothing out movements and animations.

Drag the green points around to see how they affect the shape of the curve.

Edit: I can't seem to include the code in normal [ code ] tags, so I attached the .dba source file.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-23 03:30:31
Your offset time is: 2024-11-23 03:30:31