Jump to content

Deleting cached FLIP particles that fall within a geo/volume


venator11387

Recommended Posts

I cached out a FLIP sim that involves particles splashing against a character object. The sim result that is pretty much what I wanted except that some FLIP particles go through the character. What I am trying to do is delete the cached particles that go within the region of the character’s volume, while the others that do not are left intact.

I tried using the method stated in this thread where I used an object merge to bring in the character geo, used a group sop, then a delete sop, but with no luck.

http://forums.odforc...outside-a-cube/

I attached a (non functioning) scene that only shows the main networking I am trying to do.

A concept I am also thinking of trying to create is getting the ID numbers of the particles that fall within the character (particles A). I would then get the actual cached particles (particles B ) and say “If particles B == particles A, then delete those particles B”. I am still brainstorming how I would go about doing it.

particleDelete.hipnc

Link to comment
Share on other sites

I cached out a FLIP sim that involves particles splashing against a character object. The sim result that is pretty much what I wanted except that some FLIP particles go through the character. What I am trying to do is delete the cached particles that go within the region of the character’s volume, while the others that do not are left intact.

I tried using the method stated in this thread where I used an object merge to bring in the character geo, used a group sop, then a delete sop, but with no luck.

http://forums.odforc...outside-a-cube/

I attached a (non functioning) scene that only shows the main networking I am trying to do.

A concept I am also thinking of trying to create is getting the ID numbers of the particles that fall within the character (particles A). I would then get the actual cached particles (particles B ) and say “If particles B == particles A, then delete those particles B”. I am still brainstorming how I would go about doing it.

If you don't mind my saying, your scene is a little too stripped down to test any potential solutions. 1 frame of locked & reduced particles & character mesh would do.

One way to delete points inside (or outside) an object is to turn the object into a volume with Iso Offset and give it a name (like 'density' or 'blah'), then use AttributeFromVolume on your particles to transfer the 'presence' of the object onto the particles. Then you are free to delete particles with this attribute. See attached file.

deleteParticlesInVolume.hip

Edited by melazoma
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...