centroid as second input to a pointVop

   1470   2   0
User Avatar
Member
27 posts
Joined: Aug. 2013
Offline
i want to calculate the distance between points on a sphere and the centroid… so have the “extractCentroidSOP” as the second input into the pointVop,

but when the points iterate inside the pointVop …it evaluates point p0 correctly.. but p1 has no element in the centroid as the 2nd input is only one point( the centroid of the sphere)

any help much appreciated
Edited by carthick - Feb. 28, 2020 14:45:49
User Avatar
Member
9 posts
Joined: July 2015
Offline
Make sure you're locked to pt0 from the second input. See my attached image - the importpoint VOP has the ptnum value to a constant of 0

Attachments:
Annotation 2020-02-28 155827.png (49.9 KB)

Freelance Houdini FX TD

New York

markinglevfx.com
User Avatar
Member
27 posts
Joined: Aug. 2013
Offline
markinglevfx
Make sure you're locked to pt0 from the second input. See my attached image - the importpoint VOP has the ptnum value to a constant of 0

That did the trick ! thanks !

PS: I was trying to color the valley and mountains based on the mountain sop displacement . see image
Edited by carthick - Feb. 28, 2020 17:18:33

Attachments:
2020-02-28_13h17_31.gif (1.7 MB)

  • Quick Links