Re:Mathematical Intuition Behind Bezier Curves
by CountHackulus on Sunday May 08, 2016 @02:01PM
(#11654959)
I only really found out how easy and fast Bezier curves are recently when I was adding some smoothing pathing to a game. They're really impressively useful.
[ Parent
| on HN ]
Re:Mathematical Intuition Behind Bezier Curves
by boulos on Sunday May 08, 2016 @11:32PM
(#11657439)
You probably want a Catmull-Rom or similar interpolating (instead of approximating) spline. It's much easier to control animation or other paths when you know it'll precisely go through the points you specify.
You also need to care about velocity when using splines as trajectories. In general, if you sample a spline at a constant delta-t, your speed through the world won't be constant.
Re:Mathematical Intuition Behind Bezier Curves
by CountHackulus on Monday May 09, 2016 @05:18PM
(#11663303)
This is especially true if you've got large smooth curves with small "sharp" curves that you want to keep a constant speed over. You can mostly just ignore it if all of your curves have a fairly constant curvature, but obviously test first.
Re:Mathematical Intuition Behind Bezier Curves
by CountHackulus on Monday May 09, 2016 @05:17PM
(#11663288)
I did end up using Hermite curves and letting the designers and animators tune it how they wanted.