Planetside Software Forums

General => Terragen Discussion => Topic started by: reck on August 23, 2013, 07:27:22 AM

Title: SSS road/river example project request?
Post by: reck on August 23, 2013, 07:27:22 AM
Would someone (Dune, anyone?) mind posting a simple (well simple as possible) project that demonstrates how one might use the simple shape shader for creating rivers and roads. What I'm after is how the same SSS can be used to create the shape of the river\road, a smooth, none abrupt displacement that lowers it into the ground and then how it can be used for the placement for other things relative to the river\road. For instance rocks that follow the river's edge, grass down the centre of an old road or simply to keep populations off the river\road and reasonable distance from it.

I understand the basics and how important the colour adjust shader is but I don't think I have the full picture, especially with regard to twisting the sss in the first place and then creating masks that are relative to it.

I think this would be really useful for a lot of people.

Thanks in advance.

Title: Re: SSS road/river example project request?
Post by: j meyer on August 23, 2013, 11:26:34 AM
Take a look at this:
http://www.planetside.co.uk/forums/index.php/topic,11859.45.html
Title: Re: SSS road/river example project request?
Post by: Dune on August 23, 2013, 11:55:53 AM
Here you go.
Title: Re: SSS road/river example project request?
Post by: alessandro on August 23, 2013, 01:50:06 PM
Thanks ulco for sharing this, and meyer for the link too!
Title: Re: SSS road/river example project request?
Post by: reck on August 24, 2013, 08:31:01 AM
Top man Ulco, that's exactly what I was after. Thanks.

What's the difference between a warp input and a warp merge node, when do you use one over the other?

Also why can't I just plug a pf into a warp shader, it looks like I need a vector displacement shader to get it to work?
Title: Re: SSS road/river example project request?
Post by: Dune on August 25, 2013, 03:54:19 AM
A warp merge you can add in a line of shaders through the input, while using the other 2 inputs for your warp variables. The warp input has to be connected in a line of shaders as child to a surface layer for instance. I think the warp merge is just there to replace the old warp shader. I only use the warp input now.

With a vector displacement you have more control over what you want to warp, that's all. See that I set the amount to 1 and the offset to -0.5, that's just to keep the river/road from moving away from zero too much. You can also warp a river with the fractal warp shader, but that gives a different result.

I forgot to mention that you can also use color adjust shaders to harden the black/white, or soften or inverse them and merge shaders to make combinations of those altered mask colors. Plenty possibilities.
Title: Re: SSS road/river example project request?
Post by: reck on August 25, 2013, 03:26:56 PM
As always thanks Ulco. With the warp shaders I couldn't think why you'd you go back and use the warp merge shader now we have a warp input shader.
Title: Re: SSS road/river example project request?
Post by: choronr on April 25, 2014, 02:14:33 PM
Thank you Ulco, this is timely for my new project.
Title: Re: SSS road/river example project request?
Post by: archonforest on April 25, 2014, 02:26:24 PM
Dune, hope u don;t mind but I downloaded the example file also ::)
Title: Re: SSS road/river example project request?
Post by: Dune on April 27, 2014, 03:49:14 AM
That's what it's for.