Hacker News new | past | comments | ask | show | jobs | submit login
Smoothstep Integral (iquilezles.org)
70 points by mpweiher on June 24, 2021 | hide | past | favorite | 6 comments



I don't see any difference between the "incorrect" and "correct" examples


The difference isn't in individual flaps, it's in the entire animation. There's only a difference in the first two flaps, after that they're identical.


The speeds are different - the right one smoothly goes from stationary to the target speed, while the left one appears to speed up and then slow down again. It's explained further down the article.


Manually scrub through the first few seconds of the video - you’ll see that the start of the animation is different.


How. Like literally, how.


It's so handy to have functions that evaluate to either the derivative or the integral for a particular (version of a) shaping function like smoothstep.

Analytic integration has yielded some of the most stunning optimizations in graphics rendering! Replacing sample-the-hell-out-of-signal-and-integrate-the-samples with instead direct evaluation of an integral (or good-enough-standin-integral) function (where that itself can be known or derived) can yield many speedups and cool tricks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: