Live data from Hacker News

A Primer on Bézier Curves – So What Makes a Bézier Curve?

pomax.github.io

21–23 of 23 posts

Re: A Primer on Bézier Curves – So What Makes a Bézier Curve?

#21
I learned a lot about Bezier curves when I was playing a lot of No Limits, a roller coaster designer/simulator. It used beziers for defining the track, and it was always difficult to get a smooth track because you needed the radius of the curve to be the same on both sides of every control point. Otherwise, there'd be a noticeable "bump" as the change in change of direction (not a typo) was sudden.

Also, the math of quadratic beziers made it so even if you did get the handles of each control point the right length to avoid a bump, you could get a "pumping" effect as the radius of curvature changed from wide to narrow and back to wide, though you could avoid this by avoiding trying to create circles in your track design.

No Limits 2 eventually came out which uses a different type of curve which was far easier to make smooth. It also included a way to define the track by graphing out the ride's G-forces and banking changes, and it would plot the control points for you. It was an absolute game changer for making smooth track.

Re: A Primer on Bézier Curves – So What Makes a Bézier Curve?

#22
post #6

I haven't thought about Bézier Curves since my undergrad a long time ago. I distinctly remember wondering at the time why so many lecturers added extra hurdles (i.e. the need to understand the intricacies of Bézier Curves) in their assignments rather than letting students focus on the computer science/programming concepts they were meant to be learning.

What concepts were you “meant” to be learning? Doesn’t the content of the lectures give you a clue as to the educators’ intent? Are you aware that Bézier curves cover many fundamental CS topics, such as recursion, function evaluation, function approximation, numerical analysis, linear algebra, root finding, and more? Do you know they’re used heavily in a lot of software you use? (Browsers, font rendering, maps, nonlinear numerical libraries, UI frameworks, games, etc.)

Re: A Primer on Bézier Curves – So What Makes a Bézier Curve?

#23

"This site (obviously) works best with JS enabled But it's not required. If you're reading this text block, then you have scripts disabled: thankfully, that's perfectly fine, and this site is not going to punish you for making smart choices around privacy and security in your browser. All the content will show just fine, you can still read the text, navigate to sections, and see the graphics that are used to illustra…

Agreed, but it is worth noting that the inline apps on the Bézier page won’t work with JS disabled. And they are very helpful and well done. The quote is too nice and doesn’t explicitly admit that the experience is degraded & incomplete without the interactive examples; this one is worth an exception.
Post reply on HN