Jump to content

Grouping points according to normals


Recommended Posts

Hi all, I am trying to group a bunch of specific points to emit particles from. My first idea was grouping it according to normals, but I do not know how to only group the bunch of points with similar normal directions together and not group the rest of the points. I also thought of grouping them by just dragging over the points and making a group out of it, but it isn't very procedural. I also tried grouping the points according to a boundingbox but as my geometry is moving over time, the boundingbox couldn't maintain the grouping of the points.Can anyone give me some ideas on how should I approach this problem? Thanks a lot.

pointgrouping.rar

Link to comment
Share on other sites

If you want to group based on normals then in VOPs you could take a vector that you want to compare against and take the scalar (dot) product of that vector and each normal vector. You can then take the inverse cosine of the value, convert it to degrees and have an option defining the permitted angle difference/tolerance and then add it to your group if it falls within the range.

Edited by graham
Link to comment
Share on other sites

Many thanks to both graham and Macha for the help provided.

Macha - Woah, your file looks so cool but it's kind of complex though.Still trying to figure out. But thanks though.

Graham - Yeah, got it. Many thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...