4 ms·
Imagine you are watching the ball, but instead of traveling along a line, it is tracing a circle- however you are viewing it from the one-dimensional angle. Is
by hammock 14y ago
Imagine you are watching the ball, but instead of traveling along a line, it is tracing a circle- however you are viewing it from the one-dimensional angle. Is that smoothstep, or would that be a different equation? They look similar to my naked eye.
- madelfio 14y agoSmoothstep is a polynomial approximation of a sine wave through (0, 0) and (1, 1), but it's pretty darn close. http://www.onlinefunctiongrapher.com/?f=3*x%5E2-2*x%5E3|.5-cos(pi*x)%2F2&xMin=-0.5606789334348188&xMax=1.5535646984857518&yMin=-0.6464838760935414&yMax=1.4677597558270292 http://www.onlinefunctiongrapher.com/?f=3*x%5E2-2*x%5E3|.5-c...
- matthewrobertso 14y agoThat would be a sinusoidal function. Smoothstep looks similar but is different.
- deleted 14y ago[deleted]
- ycombobreaker 14y agoThe 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.
- tellarin 14y agoMinor correction: Ken Perlin - http://mrl.nyu.edu/~perlin/ http://mrl.nyu.edu/~perlin/
- ycombobreaker 14y agoThank you!
- dietrichepp 14y agoDo you mean "smooth everywhere"? The Weierstrauss function is continuous everywhere, but you wouldn't use it for interpolation: http://en.wikipedia.org/wiki/Weierstrass_function http://en.wikipedia.org/wiki/Weierstrass_function
- ycombobreaker 14y agoYes, 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.
- sesqu 14y agoI 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.