Planetside Software Forums

General => Terragen Discussion => Topic started by: digitalguru on January 12, 2016, 11:22:18 AM

Title: fractal clamp
Post by: digitalguru on January 12, 2016, 11:22:18 AM
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!
Title: Re: fractal clamp
Post by: Tangled-Universe on January 12, 2016, 11:28:54 AM
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
Title: Re: fractal clamp
Post by: digitalguru on January 12, 2016, 11:43:06 AM
thanks Martin, I'll have look at that.
Title: Re: fractal clamp
Post by: 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
Title: Re: fractal clamp
Post by: bobbystahr on January 12, 2016, 07:18:32 PM
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....
Title: Re: fractal clamp
Post by: WAS on January 12, 2016, 09:49:35 PM
There seems to be soo much possibility with these soft max/min scalar shaders.
Title: Re: fractal clamp
Post by: digitalguru on January 13, 2016, 02:56:23 PM
maybe not exotic, but very useful[attachimg=1]
Title: Re: fractal clamp
Post by: bobbystahr on January 13, 2016, 03:58:52 PM
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.