Author Topic: Ridge and Gully masks for populations  (Read 221 times)

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3428
  • I'm the crazy one
Ridge and Gully masks for populations
« on: January 20, 2019, 12:55:17 AM »
Tip of the day: Although "Intersect Underlying" doesn't work for distributing populations [EDIT: actually it does, but is tricky to set up], you can create your own "favour rises" or "favour depressions" masks using just 3 nodes. Simply subtract "Get altitude in texture" from "Get altitude". This measures how much the terrain rises above a smoothed version of itself. The smoothing scale is determined by the "patch size" in the Compute Terrain node. To select depressions/gullies instead of rises/ridges, swap the inputs to the Subtract node.

Bonus tip of the day: Rock populations are an easy way to create distant vegetation without fiddling about with more complex objects and materials.

CORRECTION TO SCREENSHOT: The setup should use a Distribution Shader V4, not a Surface Layer, because the distribution shader's colour defaults to white (1). If you don't care about the altitude and slope controls you can just pipe the blue nodes directly into the populator.
« Last Edit: January 20, 2019, 05:53:32 PM by Matt »
Just because milk is white doesn't mean that clouds are made of milk.

Offline Dune

  • Member
  • *
  • Posts: 14744
    • www.ulco-art.nl
Re: Ridge and Gully masks for populations
« Reply #1 on: January 20, 2019, 05:56:03 AM »
I like these tips, Matt. Once a week?

I've used fake stones for distant veggies, which works neatly as well. And also used displacement intersection of a surface layer, with a black surface layer before it in a sideline to produce some kind of mask. But your tip really neat! Thanks!

Online archonforest

  • Member
  • *
  • Posts: 3808
  • !AMIGA RULEZ!
Re: Ridge and Gully masks for populations
« Reply #2 on: January 20, 2019, 06:48:14 AM »
Weekly? Matt said Tip of the day....khm...so now... :P

Anycow, this is a great idea. Can we keep it?
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram
Amiga 1200 8Mb ram, 8Gb ssd

Offline StephB

  • Member
  • *
  • Posts: 18
    • Stephane Beilliard | Photography & Graphic Arts
Re: Ridge and Gully masks for populations
« Reply #3 on: January 20, 2019, 08:33:41 AM »
Thanks for this tip, very useful I'm sure!
Photography & Graphic Arts
http://www.stephanebeilliard.com/site/

Offline Hannes

  • Member
  • *
  • Posts: 4286
Re: Ridge and Gully masks for populations
« Reply #4 on: January 20, 2019, 08:39:56 AM »
Cool! Thanks, Matt!
Can't wait to read your next tip tomorrow! ;) ;) ;)

Offline cyphyr

  • Member
  • *
  • Posts: 3953
    • richardfraser
Re: Ridge and Gully masks for populations
« Reply #5 on: January 20, 2019, 08:52:33 AM »
Damn that is a cool tip! Thankyou!!
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb (TG3 benchmark 6:04)
i7 980 OC'd @3.9Ghz, 16Gb (TG3 benchmark 6:30)

Online mhaze

  • Member
  • *
  • Posts: 3650
Re: Ridge and Gully masks for populations
« Reply #6 on: January 20, 2019, 09:38:32 AM »
That is brilliant - it will be extremely useful.

Offline bobbystahr

  • Member
  • *
  • Posts: 9855
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Ridge and Gully masks for populations
« Reply #7 on: January 20, 2019, 02:01:08 PM »
Agree with the pros below...thanks Matt
something borrowed,
something Blue.
Ring out the Old.
Bring in the New

bobbystahr

Offline j meyer

  • Member
  • *
  • Posts: 2139
    • orkwarts
Re: Ridge and Gully masks for populations
« Reply #8 on: January 20, 2019, 03:35:54 PM »
Cool, thanks indeed.

Offline Shigawire

  • Member
  • *
  • Posts: 61
Re: Ridge and Gully masks for populations
« Reply #9 on: January 20, 2019, 04:29:43 PM »
Love this! Working on a scene currently where I needed to do this in fact. But I already managed to mask populations by using the Erosion flow maps from Daniil's plugin, modified by altitude and slope and all that good stuff.

This is potentially much faster and more efficient.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3428
  • I'm the crazy one
Re: Ridge and Gully masks for populations
« Reply #10 on: January 20, 2019, 05:34:15 PM »
I like these tips, Matt. Once a week?

I make no promises ;)

Quote
I've used fake stones for distant veggies, which works neatly as well. And also used displacement intersection of a surface layer, with a black surface layer before it in a sideline to produce some kind of mask. But your tip really neat! Thanks!

I couldn't get the Surface Layer to work with Favour Rises or Favour Depressions, which prompted me to try this new approach. I didn't try Displacement Intersection, but after seeing your comment I realise that all three options work if you provide them with a suitable terrain input and an intermediate black layer. But that's a lot to remember to set up, and slower to compute.

Now I realise that with a small change to the code I can make Favour Rises and Favour Depressions work without an input, so I'll probably fix that in the next build.
Just because milk is white doesn't mean that clouds are made of milk.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3428
  • I'm the crazy one
Re: Ridge and Gully masks for populations
« Reply #11 on: January 20, 2019, 05:37:38 PM »
Love this! Working on a scene currently where I needed to do this in fact. But I already managed to mask populations by using the Erosion flow maps from Daniil's plugin, modified by altitude and slope and all that good stuff.

This is potentially much faster and more efficient.

Yeah, this might be faster and easier to use, but you're likely to get more realistic results from proper erosion flow maps.
Just because milk is white doesn't mean that clouds are made of milk.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3428
  • I'm the crazy one
Re: Ridge and Gully masks for populations
« Reply #12 on: January 20, 2019, 05:40:51 PM »
CORRECTION: The setup should use a Distribution Shader V4, not a Surface Layer, because the distribution shader's colour defaults to white (1). But if you don't care about the altitude and slope controls you can just pipe the blue nodes directly into the populator.
Just because milk is white doesn't mean that clouds are made of milk.

Offline pokoy

  • Member
  • *
  • Posts: 237
    • mswee.net
Re: Ridge and Gully masks for populations
« Reply #13 on: January 21, 2019, 01:16:02 PM »
That's very useful. Thank you!

There could be a sticky thread with all the tips of the day combined, each having another thread discussing the tip separately.