Jump to content
  • Advertisement

Archived

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

Steffen75

bezier spline math

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

Hello, may anyone tell me how I can get the corresponding y value from a given x value of an 2D bezier curve. As explanation you find this graph. http://www.Behr-Bros.de/usf/xsi_bezier.jpg There is also the problem how to convert a 3D nurbs curve into a 3D bezier curve. Examples: Nurbs: http://www.Behr-Bros.de/usf/nurbs.jpg Bezier: http://www.Behr-Bros.de/usf/bezier.jpg thx Steffen

Share this post


Link to post
Share on other sites
Advertisement
Since Bezier curves and NURBS are parametric functions, the x/y values depend on a time step.
So you compute x and y values by x = fx(t) (t ranging 0..1)
and y = fy(t).
There is no y = f(x) and thus no x = f-1(y).

Share this post


Link to post
Share on other sites
quote:
Original post by LilBudyWizer
You can use the quadratic formula to find the values, if any, at which the bezier takes on a given value of x. That may be zero, one or two values of t. You can then use that/those value(s) of t to find the corresponding y(s).

I forgot that there''s not only a direct way

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!