Jump to content
  • Advertisement
Sign in to follow this  
RewindGamez

NURBS basis functions

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

Hi everyone, I'm having trouble understanding the basis functions required to calculate a NURBS surface. On wikipedia, the calculation is defined here: http://en.wikipedia.org/wiki/NURBS#Construction_of_the_basis_functions_.5B3.5D as: Ni,n = fi,nNi,n − 1 + gi + 1,nNi + 1,n − 1 However, since the calculation for Ni,n involves seemingly already knowing Ni,n I am confused. It seems like circular logic to me. Could anyone please help me understand the basis function? I understand Ni,n(u) is the value for the basis function for control point i of degree n for time value u. But I do not understand the full calculation: Ni,n = fi,nNi,n − 1 + gi + 1,nNi + 1,n − 1 I'd really appreciate a hint or explanation of how to do this calculation. Specifically given i,n and u, how do I calculate Ni,n(u)? Best Regards, David

Share this post


Link to post
Share on other sites
Advertisement
I've no experience with NURBS in general but noone else has answered so hopefully just looking at this mathematically will help.

They key point is that the equation is Recursive:



is only dependent on and

So since you are given that at n=0 is piecewise constant you can calculate .

Page 4 of
http://libnurbs.sourceforge.net/nurbsintro.pdf
gives a better explanation and more explicit information on what the function N actually is where n=0.

p.s. I am a mathematician by training not a computer scientist so apologies if the explanation is overly mathematical.

Share this post


Link to post
Share on other sites
Thanks very much - apologies for the late reply.
But that's exactly what I needed - once I understood the function as recursive it was straightforward.

Thanks again :)

David

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!