fractal clamp

Started by digitalguru, January 12, 2016, 11:22:18 AM

Previous topic - Next topic

digitalguru

Is there a way to clamp a fractal with a kind of rolloff?

I'm not that clever with the blue scalar nodes, and clamping a fractal is straightforward, but is there a way to smooth off the transtion of the clamp, to get a rounder edge?

I don't know if a smooth step would help, but I'm not sure how to use it

any ideas appreciated!

Tangled-Universe

Perhaps the new "smooth min/max scalar" functions are of use.
Here's some recent discussion, including a helpful example from Matt:

http://www.planetside.co.uk/forums/index.php/topic,20846.msg207909.html#msg207909

Smooth step takes the input and allows you to set a certain value as a start (say 0.5) and a value as end (say 0.75).
Then the output will be the values from 0.5 to 0.75 of the input remapped to 0 to 1.
Anything below 0.5 will be black (0) and anything above 0.75 will be white (1).

Hope this helps!

Martin

digitalguru

thanks Martin, I'll have look at that.

digitalguru

#3
aha! got it working - exactly what I was looking for  :)

I was using the soft maximum and also had the inputs the wrong way round

soft minimum works - actually its a very nice effect

bobbystahr

Quote from: digitalguru on January 12, 2016, 12:43:28 PM
aha! got it working - exactly what I was looking for  :)

I was using the soft maximum and also had the inputs the wrong way round

soft minimum works - actually its a very nice effect


sounds exotic...please show us....
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist

WAS

There seems to be soo much possibility with these soft max/min scalar shaders.

digitalguru

maybe not exotic, but very useful[attachimg=1]

bobbystahr

#7
Quote from: digitalguru on January 13, 2016, 02:56:23 PM
maybe not exotic, but very useful[attachimg=1]

thanks for the demo file. This really looks quite useful.
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist