Planetside Software Forums

General => Terragen Discussion => Topic started by: mhaze on January 13, 2019, 05:15:52 AM

Title: Get Altitude
Post by: mhaze on January 13, 2019, 05:15:52 AM
Hi All,

I'm using a stepped landscape setup but I can't find a way to limit its altitude after it.  Is there a way to get altitude then limit it with blue nodes to say Above 200 and below 1000?
Title: Re: Get Altitude
Post by: Dune on January 13, 2019, 05:26:21 AM
Did you try a smooth step, or a clamp color/scalar and then a smooth step?
Title: Re: Get Altitude
Post by: mhaze on January 13, 2019, 08:06:52 AM
Not Yet but I will.  As I have no idea how to go about this I'm looking for ideas.
Title: Re: Get Altitude
Post by: Dune on January 13, 2019, 08:15:36 AM
Or you could maybe add a surface shader after it set smoothing (less than 1) until the terrain has the desired height....
Title: Re: Get Altitude
Post by: Hetzen on January 13, 2019, 09:01:26 AM
Are you using that strata setup I made a while back?

If so, you should be able to plug the output into a Distribution shader child and mask the subtraction calculation from there.

I'm doing something similar with something I'm currently working on, unfortunately I've got stretch marks where I don't want them, so I'm going to have to think of another way. Probably a lateral displacement but I need to work with normals now and dust off the old trigonometry head.

[attachimg=1]
Title: Re: Get Altitude
Post by: mhaze on January 13, 2019, 09:31:50 AM
I've got it sort of working with a distribution shader.  I could not get the smooth step or clamping to work.