Planetside Software Forums

General => Terragen Discussion => Topic started by: baizewizard on March 30, 2010, 08:07:02 AM

Title: Two different hightfeilds
Post by: baizewizard on March 30, 2010, 08:07:02 AM
Hi Guys

I am trying to create a scene using two different hightfields at different positions.
I want to apply different shaders to the them. I.E. Twist and Shear in different directions.
My problem is whatever I do to one happens to the other. Do I need to work on them separately then combine further down the tree with a merge shader? I've tried this but seem to be going astray somewhere.

Cheers
Title: Re: Two different hightfeilds
Post by: Primalace on March 30, 2010, 08:41:51 AM
You may need to set the merge shader to use highest (raise) setting under 'Choose by altitude'. So long as your hightfields are in different positions any individual shaders before the merge shader should only affect the one hightfield. I've attached a .tgd to show you.
Title: Re: Two different hightfeilds
Post by: Henry Blewer on March 30, 2010, 08:42:24 AM
Try a distance shader or two. Set up a camera for each distance shader. Then set the distances to cover just the area of the separate height fields. The different shaders can be chained into the blend by of each distance shader.
Title: Re: Two different hightfeilds
Post by: bobbystahr on March 30, 2010, 01:29:11 PM
If your height fields are separate, ie: borders don't touch, you could, in the Top View, paint the terrains with Paint shaders. One shader per terrain and named ter1 and ter2 to make selection easy and then in the blend shader of the Twist and Shear shader Assign the appropriate shaders to the terrains. Then you also have a mask for adding textures later.. ...
Oooops...the Paint shader goes in the Blend shader of a Surface layer, then the T&S shader goes in the Displacement shader of the same Surface layer. One SUrface layer per terrain obviously.. ...
Title: Re: Two different hightfeilds
Post by: bobbystahr on March 30, 2010, 01:45:09 PM
Well  that didn't work when I just tried to make an example so save yourself the effort...sigh...thought I'd done that once.. ...
Title: Re: Two different hightfeilds
Post by: Oshyan on April 01, 2010, 01:43:31 AM
The Merge Shader approach should work, or you can use simple square (shape) masks sized to fit your individual heightfields and used as Blend Shader inputs for each respective shading network.

- Oshyan