Jump to content

How to move particles along surface normal?


fragmentzero

Recommended Posts

Hello,

I am trying a simulation where I need to move particles along normal direction of a surface.

Normal can be combed or perturbed using metaballs.

And the particles should take the direction of closest point's normal.

I have attached a file where I unsuccessfully use creep and ray sops.

But its far from what I want to achieve.

My goal is sort of a "flow direction" for spawned particles encoded in surface normals.

Any help is appreciated.

Thanks

Particles_Along_Surface_Normal_01.hipnc

Link to comment
Share on other sites

Import the surface as a point cloud and filter the N attribute in a pop-vop.

Im not infront of houdini now so search for point cloud on the forums. There should be plenty of examples.

Else I might be able to do a simple file for you later on today.

Link to comment
Share on other sites

I whipped up a quick prototype file that uses perturbed surface normals and used a Fluid Source SOP to create vel fields from the perturbed surface normals then used an Advect Volume POP to push the particles about.

Lots more control and if you cache out the vel fields to disk, potentially way faster than point cloud lookups in to vel fields.

particles_pushed_by_surface_N.hip

  • Like 2
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...