How to get Point Normal Radiate from center
19359 8 6- sl0throp
- Member
- 258 posts
- Joined:
- Offline
I have a poly circle that I am scattering points across. I am using a point sop to get normals but I can't figure out how to get the normals to point out from the center of the circle. These are non moving points to orient for copySop. I have attached a pic for reference. Thanks in advance for any help…
s
s
- Soothsayer
- Member
- 874 posts
- Joined: Oct. 2008
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
With a random point cloud, you can do a few things.
First is a trivial curent_point_position - centroid_of_point_cloud using either bounding box or centroid local variables in the Point SOP.
But what if you have a wildly fluctuating point cloud with interesting concave and convex shapes and you want your radiating normals to take this in to account? Use Volumes of course. Take your point cloud, build a fog volume from them, convert to sdf then use the Volume Analysis to build three gradient fields (which is the distance and direction to the sdf limit surface which is the surface normal btw) and then transfer in to the point cloud as Normals.
See the attached hip file for all three versions.
First is a trivial curent_point_position - centroid_of_point_cloud using either bounding box or centroid local variables in the Point SOP.
But what if you have a wildly fluctuating point cloud with interesting concave and convex shapes and you want your radiating normals to take this in to account? Use Volumes of course. Take your point cloud, build a fog volume from them, convert to sdf then use the Volume Analysis to build three gradient fields (which is the distance and direction to the sdf limit surface which is the surface normal btw) and then transfer in to the point cloud as Normals.
See the attached hip file for all three versions.
There's at least one school like the old school!
- sl0throp
- Member
- 258 posts
- Joined:
- Offline
- Soothsayer
- Member
- 874 posts
- Joined: Oct. 2008
- Offline
- koen
- Member
- 793 posts
- Joined: April 2020
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
-
- Quick Links