Planetside Software Forums

General => Terragen Discussion => Topic started by: N-drju on December 29, 2018, 09:10:11 AM

Title: Gentle curves
Post by: N-drju on December 29, 2018, 09:10:11 AM
Guys, is there a way to gently curve a previously warped SSS so as a whole it takes a shape of a crescent / corner?

I am absolutely tired of hitting a "random seed" button in my attempted customization setup...
Title: Re: Gentle curves
Post by: cyphyr on December 29, 2018, 09:21:07 AM
You could try a simple shape shader plugged into a redirect shader.

Or

use two simple shape shaders in the shape of a corner in the first place ...
Title: Re: Gentle curves
Post by: bobbystahr on December 29, 2018, 10:05:11 AM
Quote from: cyphyr on December 29, 2018, 09:21:07 AM
You could try a simple shape shader plugged into a redirect shader.

Or

use two simple shape shaders in the shape of a corner in the first place ...

the 2nd option is the one I'd run with
Title: Re: Gentle curves
Post by: N-drju on December 29, 2018, 10:28:47 AM
I'm not really sure what I should do with the redirect shader. :(

Yes, connecting several SSS is something I thought about as well. It's just that in this case, warping on the individual SSS is obscuring other parts of a planned curve. Sigh.
Title: Re: Gentle curves
Post by: cyphyr on December 29, 2018, 12:03:37 PM
Like this :)
Title: Re: Gentle curves
Post by: N-drju on December 29, 2018, 02:57:17 PM
Darn it... I just don't get it. I arranged the nodes in exact same manner as you have in your working example but I cannot bend the desired SSS at all...

[attach=1]
Title: Re: Gentle curves
Post by: N-drju on December 29, 2018, 03:50:25 PM
I think just now I'm beginning to understand...

The redirecting shader does not use its color or shape alone to redirect. Instead, its the displacement strength that redirects! Boy, what a plot twist... ::)


[attach=1]
Title: Re: Gentle curves
Post by: cyphyr on December 29, 2018, 04:02:31 PM
Yes that's right (you could take the colour output and modify it further and plug it into a displacement shader to achieve a similar effect).
Also note that the SSS that is plugged into the redirect is offset from the SSS it is displacing.
Title: Re: Gentle curves
Post by: Dune on December 30, 2018, 02:16:58 AM
The black and white of SSS (or PF) are 'forces' that can warp, so you could also use a vector displce instead of a redirect.