https://github.com/dbraun/smoothstepchop
Smoothstep and linear remap CHOP.
https://github.com/dbraun/smoothstepchop
touchdesigner touchdesigner-components
Last synced: 9 months ago
JSON representation
Smoothstep and linear remap CHOP.
- Host: GitHub
- URL: https://github.com/dbraun/smoothstepchop
- Owner: DBraun
- License: mit
- Created: 2019-07-15T22:32:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-18T20:55:59.000Z (over 5 years ago)
- Last Synced: 2025-03-29T04:11:20.369Z (10 months ago)
- Topics: touchdesigner, touchdesigner-components
- Language: C++
- Size: 63.5 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[//]: # (For development of this README.md, use http://markdownlivepreview.com/)
# SmoothstepCHOP
## What is Smoothstep?
see [Wikipedia](https://en.wikipedia.org/wiki/Smoothstep) and [Shaderific](http://www.shaderific.com/glsl-functions)
The SmoothstepCHOP has a range input: `Fromrange1`, and `Fromrange2`. It also has a range output: `Torange1`, and `Torange2`. For an input value `x`, the SmoothstepCHOP is equivalent to the following GLSL code:
`return mix(Torange1, Torange2, smoothstep(Fromrange1, Fromrange2, x));`
There are alternative modes such as "smootherstep", "smootheststep", and "linear clamp".
## Instructions
[Build the dll yourself](https://docs.derivative.ca/Write_a_CPlusPlus_Plugin), or use of the compiled DLL files. `CPlusPlusCHOP/build/SmoothstepCHOP.dll` has been compiled for TouchDesigner 2018.26750 and `CustomOperator/build/SmoothstepCHOP.dll` has been compiled for TouchDesigner 2019.17550. This newer version can be used as a [Custom Operator](https://docs.derivative.ca/Custom_Operators)
## Changelog
* 2019-08-07 create a Custom Operator version for TD 2019.17550.
* 2019-07-16 working version of smoothstep, smootherstep, smootheststep, and linear clamp.
## Thanks
* [Ken Perlin](https://mrl.nyu.edu/~perlin/)
* [Kyle McDonald](http://kylemcdonald.net)
* [Wolfram Alpha](http://wolframalpha.com)