Re:Interpolation Tricks
by ycombobreaker on Friday February 22, 2013 @10:37PM
(#5268436)
The reason smoothstep looks similar to a sinusoid is because it is a polynomial approximation. I remember Dan Perlin discussing it in his (book|paper|website), but googling around doesn't seem to show anything that I remember. For Perlin Noise, a sinusoid was the highest-quality interpolation because it was continuous everywhere, even at the endpoints. Smooth-step is discontinuous at the endpoints, but it is close enough for discrete computer graphics.
[ Parent
| on HN ]
Re:Interpolation Tricks
by dietrichepp on Saturday February 23, 2013 @05:06AM
(#5269196)
Do you mean "smooth everywhere"? The Weierstrauss function is continuous everywhere, but you wouldn't use it for interpolation:
Re:Interpolation Tricks
by ycombobreaker on Saturday February 23, 2013 @10:46AM
(#5269981)
Yes, thank you. After reading a bit more, smoothness is what I'm looking for. One of the _derivatives_ of the smoothstep is discontinuous at the endpoint.
I wouldn't call smoothstep an approximation to a sinusoid - both are sigmoidal, but that's about it. This smoothstep in particular is just a natural cubic spline interpolator, arguably the simplest sigmoidal interpolating function.
Minor correction: Ken Perlin - http://mrl.nyu.edu/~perlin/
Re:Interpolation Tricks
by ycombobreaker on Saturday February 23, 2013 @10:44AM
(#5269969)
Thank you!