How to control scattering density by noise?

   1369   2   0
User Avatar
Member
447 posts
Joined: Aug. 2019
Offline
I've got this simple terrain:



Now I'd like to scatter some cubes on it:



Now I want the "valley" parts to get more cubes, and "hill" parts to get less. An RBD sim could do that, but I feel there must be a much cheaper way. The terrain is generated by a simple simplex noise. But how to control the Scatter SOP's density by the said noise?
Edited by raincole - Jan. 3, 2022 07:04:18

Attachments:
Screenshot 2022-01-03 195827.png (543.0 KB)
Screenshot 2022-01-03 195844.png (592.4 KB)

User Avatar
Member
1630 posts
Joined: March 2009
Offline
It's relatively straight forward. You generate your terrain, make a density attribute (in this case: using a measure sop to get the curvature), remap that a bit so it covers the valley floors, scatter by density attribute, done.

See attached file.

Attachments:
valley_cubes.hip (159.0 KB)

Martin Winkler
money man at Alarmstart Germany
User Avatar
Member
1630 posts
Joined: March 2009
Offline
Another side note: if you didn't want to post-analyze the terrain and instead use the actual noise.. the mountain sop these days is using the same noise as everybody else. That means getting that same noise can be achieved by simply using an attribute adjust sop set/referenced to the same values as the mountain.
Martin Winkler
money man at Alarmstart Germany
  • Quick Links