Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Nurbs Equations/Algorithms

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

Ok i have all i need to do just about anything i want to with NURBS using equations. The problem is that i dont understand the equations enough to convert them to code. I know my math up through lower calculus, but these equations are way up there. Ok here we go,   sum(i = 0, n){w_i * P_i * N_i,k(u)} C(u) = -------------------------------------   sum(i = 0, n){w_i * N_i,k(u)} This is a NURBS equation where w_i : weights P_i : control points (vector) N_i,k : normalized B-spline basis functions of degree k this is supposed to be an equation(or something) that projects a 4D point onto the plane w=1         { ( wx/w, wy/w, wz/w) if w !=0 H(wx,wy,wz,w)={         { ( direction(wx, wy) if w = 0 These variables are the part i dont get. I dont understand how to incorperate P_i as a vector I think w_i is a vector too but i dont know. Any help with these equations will be greatly apriciated. Any help on how to draw 2D NURBS curves, will work too. I can figure out how to convert to 3D later. Oh, and if any of you have any code for open GL that draws just pixels (as in PlotPixel(x,y,R,G,B) that would be nice too. thanks for you help. the alignment on the equations is alittle messed up on the seconed equation you need to line up the '{' to make it look right, by the way the '{' are really supposed to be one big '{'. The first equation looks ok but not perfect. Edited by - warpexplorer on 10/5/00 10:50:12 PM

Share this post

Link to post
Share on other sites

  • 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!