Scatter points from fog and Normals

   2985   3   2
User Avatar
Member
46 posts
Joined: 10月 2006
Offline
Hi all,

I have a question.

Why can I not place Normals (using the Point sop) on points generated from a Scatter sop from a Fog Volume generated out of an Iso Offset sop? I have a sneaky suspicion that it is because the points have no surface to frame their reference from.

I suppose, then, that instead of $NX, $NY, $NZ I need to use a st of expressions that will point the normals to the center of the spheres that I used to generate the fog volume. I'm not sure how to do that and was hoping for some help. Any suggestions would be appreciated. Thank you.

David
User Avatar
Member
512 posts
Joined: 7月 2009
Offline
you can do a pointcloud lookup to search for each's point neighbours, average their position, subtract that from the points position vector, produces good results and it's fast!
Check out the attached file,

cheers,

Manu

Attachments:
Normals_from_PointCloud_Manu.hipnc (66.0 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
258 posts
Joined:
Offline
Nice share…
User Avatar
Member
691 posts
Joined: 6月 2006
Offline
Also you can calculate the gradient of the volume and then transfer to the point cloud the gradient vector.

Attachments:
gradient.hip (70.6 KB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
  • Quick Links