Posted By: Hummel
circular s-curve function [HLSL] - 02/08/11 20:49
Hi,
just wanted to share this function I developed for fun.
Converting to any other language shouldnt be the problem.
Lets take a look at the func itself first:
Input values have to be in the range 0..1 for x and -1..1 for tau.
Output lies also between 0 and 1.
Visualized function with different values for tau:
So,why do I call it 'circular'?
Imagine a simple linear function with a rise of 1 which gets 'deformed' by two 'circles' from the left and the right side of the function, respectively.
The amount of 'deformation' depends on tau. For tau=0 you get a linear function. I hope that is understandable.
You can download a small Demo here where the function is drawn with a dynamic changing tau value.
And eventually the big question:
You: "What the heck is this thing good for?!"
Me: "Well, actually...I´ve no clue^^"
You: "..."
Me: " "
Have fun!
just wanted to share this function I developed for fun.
Converting to any other language shouldnt be the problem.
Lets take a look at the func itself first:
Click to reveal..
Input values have to be in the range 0..1 for x and -1..1 for tau.
Output lies also between 0 and 1.
Visualized function with different values for tau:
So,why do I call it 'circular'?
Imagine a simple linear function with a rise of 1 which gets 'deformed' by two 'circles' from the left and the right side of the function, respectively.
The amount of 'deformation' depends on tau. For tau=0 you get a linear function. I hope that is understandable.
You can download a small Demo here where the function is drawn with a dynamic changing tau value.
And eventually the big question:
You: "What the heck is this thing good for?!"
Me: "Well, actually...I´ve no clue^^"
You: "..."
Me: " "
Have fun!