Scatter by steepness of object

   918   3   0
User Avatar
Member
3 posts
Joined: Nov. 2020
Offline
Hi,

basically I am trying to scatter points on a mesh depending on how "steep" it is. Where the mesh is flatter the scatter point should be closer together.

I looked through a couple threads and youtube tutorials but I could not find a solution. I know that it basically depends on the normals of the mesh points but I since I am quite new to Houdini I cannot figure it out and would really apprecciate some help, thank you

Attachments:
210516_scatter by steepness.hip (131.6 KB)

User Avatar
Member
475 posts
Joined: July 2005
Online
Hi,

you can set a density point attribute based on local point properties, which can be used in the scatter node. For example you can measure to angle between the normal and the Y-axis. Here is file ...

Attachments:
density_by_normal.hipnc (160.2 KB)

User Avatar
Member
3 posts
Joined: Nov. 2020
Offline
Thank you very much, exactly what I was looking for! Just one more question: Which node do I have to modify to change the axis the angle is measured?
User Avatar
Member
475 posts
Joined: July 2005
Online
Sure,

at the moment it is hard coded in the left wrangle in the dot product. Here is an updated file, adding some comments and a way to make the axis editable by user.

Attachments:
density_by_normalA.hipnc (164.7 KB)

  • Quick Links