News for hackers. Stuff that matters.
Re:The Continuity of Splines – Video Essay by Freya Holmér by raphlinus on Saturday December 17, 2022 @02:04PM (#34030988)
Seconded. A lot of the video runtime is covering fairly well known topics, but there are moments of brilliance, where it made things "click" for me. The treatment of the characteristic matrix and how the same matrix can derive both t and point parameterizations was particularly insightful.
Re:The Continuity of Splines – Video Essay by Freya Holmér by TheRealPomax on Saturday December 17, 2022 @02:10PM (#34031063)
Indeed, there were a number of places where I had that "...this never occurred to me, this is fantastic" moment, too.
Re:The Continuity of Splines – Video Essay by Freya Holmér by jacobolus on Saturday December 17, 2022 @02:40PM (#34031382)
Great video.

One fun basis for 3rd degree polynomials that Freya skipped is a basis of values through which a polynomial can be interpolated. (You can pick any 4 nodes in the interval, but I recommend 0, 0.25, 0.75, 1 for the least erratic behavior).

Example: https://observablehq.com/@jrus/bez-cheb (try dragging the blue dots)

Re:The Continuity of Splines – Video Essay by Freya Holmér by raphlinus on Saturday December 17, 2022 @04:06PM (#34032240)
Ooh, the Chebyshev basis is neat. I hadn't seen exactly that before. It reminds me a lot of the "shape control" technique[1] which is also similar to a basis function approach but has a bit of linear solving. Essentially, you get one point (usually at t = 0.5), and also the direction but not magnitudes of the tangents at the endpoints (G1, not C1). This is one of the better-performing existing techniques for offset curve, though does have stability problems (in particular, nasty behavior for a symmetric "S" curve).

Regarding collaboration with Freya, if she is open to it, please get in touch. I do have some ideas.

[1]: A New Shape Control and Classification for Cubic Bézier Curves, Yang and Huang, 1993, PDF cache: https://github.com/paperjs/paper.js/files/752955/A.New.Shape...

Re:The Continuity of Splines – Video Essay by Freya Holmér by acegikmo on Sunday December 18, 2022 @09:38AM (#34038066)
ah gosh, a collab would be cool but I think you overestimate my knowledge in this area! I have no formal education or even an eighth of the vocabulary let alone mathematical background to contribute much ;-; I've been reading your paper on the spiro splines and a lot of it goes way over my head! I'd have to research every step along the way
Re:The Continuity of Splines – Video Essay by Freya Holmér by TheRealPomax on Sunday December 18, 2022 @12:37PM (#34040047)
I'll let you in on a secret: neither do I. Thankfully, it turns out that "I need to know this to do a thing" is enough to get into it, and teaming up with folks who know way more than you do is basically the perfect learning opportunity =D
Re:The Continuity of Splines – Video Essay by Freya Holmér by jacobolus on Sunday December 18, 2022 @02:23PM (#34041734)
After a year of skimming papers and fiddling with relevant code, I’m sure you know more than almost anyone. (Though as is always the case with math, there’s an infinite pool of deeper knowledge to swim through.)

While you’re here, it’s a bit of a tangent, but the introductory part of the video talking about lerp reminded me again that not enough people know about (not quite uniformly) interpolating along a circular arc using two lerps and one division:

For complex numbers a (start), m ("midpoint" on the circle), b (end), and t (parameter in [0,1], or in [-∞, ∞] to cover the whole circle),

  circle_interp = (a, m, b, t) =>
    lerp(a * (b - m), b * (m - a), t) / lerp(b - m, m - a, t)
https://observablehq.com/@jrus/circle-arc-interpolation

I was astonished to find this, and even more astonished to find it had never been clearly published anywhere (at least not that I could find after a lot of searching).

[This parametrization of the circle can equivalently be rewritten as a rational quadratic Bézier, but this formula is IMO a lot clearer to understand.]

Re:The Continuity of Splines – Video Essay by Freya Holmér by raphlinus on Sunday December 18, 2022 @10:33PM (#34048097)
Oh, I wouldn't worry. What would make a collab video cool is not dazzling people with mathematical BS, but rather visually showing the geometric and physical principles behind the splines, especially their relationship with bending elastic strips. If you want to have a chat to brainstorm (even if nothing comes of it), my contact info should be pretty easy to find.
Re:The Continuity of Splines – Video Essay by Freya Holmér by s1mon on Monday December 19, 2022 @10:38PM (#34061232)
I’d definitely up my Patreon contributions to see the results of such collaboration.