Author Topic: Get Altitude  (Read 212 times)

Offline mhaze

  • Member
  • *
  • Posts: 3656
Get Altitude
« on: January 13, 2019, 09: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?

Offline Dune

  • Member
  • *
  • Posts: 14753
    • www.ulco-art.nl
Re: Get Altitude
« Reply #1 on: January 13, 2019, 09:26:21 AM »
Did you try a smooth step, or a clamp color/scalar and then a smooth step?

Offline mhaze

  • Member
  • *
  • Posts: 3656
Re: Get Altitude
« Reply #2 on: January 13, 2019, 12:06:52 PM »
Not Yet but I will.  As I have no idea how to go about this I'm looking for ideas.

Offline Dune

  • Member
  • *
  • Posts: 14753
    • www.ulco-art.nl
Re: Get Altitude
« Reply #3 on: January 13, 2019, 12:15:36 PM »
Or you could maybe add a surface shader after it set smoothing (less than 1) until the terrain has the desired height....

Offline Hetzen

  • Member
  • *
  • Posts: 1653
Re: Get Altitude
« Reply #4 on: January 13, 2019, 01:01:26 PM »
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.

87391-0

Offline mhaze

  • Member
  • *
  • Posts: 3656
Re: Get Altitude
« Reply #5 on: January 13, 2019, 01:31:50 PM »
I've got it sort of working with a distribution shader.  I could not get the smooth step or clamping to work.