Terrain masks to groups?

   3983   3   1
User Avatar
Member
118 posts
Joined: Feb. 2016
Offline
Probably I'm missing something really basic here, but I can't figure out how to convert heightfield masks into groups of prims\points once the terrain has been converted into polys.

Any idea?

That would be useful to place objects onto the landscape..


thanks for any help!
User Avatar
Member
118 posts
Joined: Feb. 2016
Offline
Oh, I just noticed the heightfield scatter node, which uses masks to place objects on the terrain.. But still would be nice to have those masks converted to groups…
User Avatar
Member
2 posts
Joined: Oct. 2018
Offline
I notice this an old post, but I'd also really love to figure this out, if anyone has any ideas. +1.
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
when you convert the HF to polygons you get the @mask attribute on your points for free. Have a look at the geometry spreadsheet.

You can simply set a threshold value to do the grouping.

if(@mask > .5)
{
   i@group_masked = 1;
}


Was this @mask point attribute added later, or it has been always present in converted Heightfields?
I wonder how could I have missed it :O
Edited by Andr - July 27, 2019 15:42:42
  • Quick Links