Planetside Software Forums

General => Terragen Discussion => Topic started by: baizewizard on April 10, 2010, 03:33:22 PM

Title: Twist and Shear with the Stones Shader
Post by: baizewizard on April 10, 2010, 03:33:22 PM
Hi Guys

Having a little trouble when experimenting with the stones shader.
I would like stones in the foreground with a heightfield behind.
I have a nice heightfield that I have created using the Twist and Shear shader.
Trouble is I can't seem to restrict it's effect to the heightfield only.
It also affects the stones in my foreground.
I have tried setting the Base Altitude in the T&S shader but that doesn't seem to help me.

Any tips?

Cheers
Title: Re: Twist and Shear with the Stones Shader
Post by: TheBlackHole on April 10, 2010, 03:37:21 PM
Put up a few pics. A render and some screenshots. Maybe one or two of the node network.
Title: Re: Twist and Shear with the Stones Shader
Post by: Oshyan on April 10, 2010, 05:44:33 PM
"Fake Stones" is simply a displacement effect, so it will be affected by "twist and shear" unless you specifically mask them out. The altitude selection isn't going to work unless A: your fake stones are only at a particular altitude (note: this is not altitude above terrain surface, it is absolute altitude) and B: you use a Compute Normal to make sure the terrain normal is correct after your Twist and Sheer displacement.

A render of your scene as it is now might help illustrate your problem.

- Oshyan
Title: Re: Twist and Shear with the Stones Shader
Post by: baizewizard on April 11, 2010, 02:49:46 PM
Thanks Guys

I have attached a jpeg of the current scene and my tgd.
I am experimenting with DandelO's wonderful stones shader and I wanted to simply litter the foreground with stones.

Any help greatly appreciated.

Tim
Title: Re: Twist and Shear with the Stones Shader
Post by: Oshyan on April 11, 2010, 05:11:43 PM
In this case your stones are at a different altitude than your primary terrain form, so you should be able to use a Distribution Shader and control by altitude. But what you have to do is limit the Twist and Shear, not the Fake Stones, because by the time Fake Stones is applied, the Twist and Sheer is already in effect.

- Oshyan
Title: Re: Twist and Shear with the Stones Shader
Post by: neuspadrin on April 11, 2010, 06:41:23 PM
I did a bunch of playing around with fake stones and made a pdf from what I noticed the various values do:
http://www.mediafire.com/?1mmmjg54mzn

Feel free to dig through to get an idea what the various values do.