How to get Point Normal Radiate from center

   19357   8   6
User Avatar
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

Attachments:
fromCenter_001.jpg (39.7 KB)

User Avatar
Member
874 posts
Joined: Oct. 2008
Offline
Try using -$TX,-$TY,-$TZ if they are world centered, otherwise offset appropriately. Normalize if necessary.
--
Jobless
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
This scene file will help

Rob

Attachments:
rse_radial_normals.hip (47.0 KB)

Gone fishing
User Avatar
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.

Attachments:
create_radiant_normals_from_point_cloud.hip (92.0 KB)

There's at least one school like the old school!
User Avatar
Member
258 posts
Joined:
Offline
Thanks Jeff…that is a very interesting file. Thanks to Rob as well who was also right on for what I needed.

s
Edited by - Feb. 25, 2011 19:44:30
User Avatar
Member
874 posts
Joined: Oct. 2008
Offline
Volume analysis sop! Ha! If I had known that some time ago!

Great Jeff, I'm always amazed by what you can do with just nodes. Where do you learn all that stuff!
--
Jobless
User Avatar
Member
793 posts
Joined: April 2020
Offline
here is one more way, might not work perfectly for this case, but I found it very useful for point clouds. It calculates the normal by taking the difference from between the position of a point and the average position of a local neighborhood.

it's pretty fast.

Cheers,
Koen

Attachments:
point_cloud_normals.hipnc (62.2 KB)
Screen shot 2011-02-25 at 8.13.58 PM.png (110.7 KB)

User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
I must admit when Jeff posts > I read…..

PS when are we getting more Old school Blog >

Rob
Gone fishing
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Recording one today! Finally…
There's at least one school like the old school!
  • Quick Links