Jump to content

flip fluid morph and settle


whodini

Recommended Posts

I'm trying to do a simulation with flip fluids that involve morphing one object into another and settle quickly. I have an rbd simulation of a sphere hitting the ground and breaking into a few large pieces. I have the pieces turning into liquid and create a nice splash. I want the liquid to attract upward and take the shape of a goal object as closely as possible and then settle.

I did a bunch of searching but I cant seem to get this sort of thing to work. I tried using the sdf of my goal object in combination with a field force but no luck. I tried creating a bounding box of my scene and fill it with points and have each point's velocity pointing toward my goal object but that doesn't seem to work either. Any help or ideas would be appreciated.

Link to comment
Share on other sites

I've played around with this in the past and, if I remember correctly, my solution was to use 2 separate simulations: one sim for particles as they move toward the goal and another for particles once they enter the goal. Basically, the goal in the first sim acts like a sink (removing particles) and, in the second, as a collision object. I'm sure there's a more elegant solution to this..hopefully some pros will chime in.

Link to comment
Share on other sites

Also workig on something like this - the problem being that for a believable effect you need to have the candidate object points pull the closest points of the target object, then REMOVE these points from the list of available target points so that the next candidate particle grabs something else.

As far I know (limited Houdini experience), popnets evaluate the system as a whole before moving on to the next node, as opposed to going through particle by particle. Any ideas on how to get around this?

Edited by ninjump
Link to comment
Share on other sites

I don't think you need to be that pedantic about it, but If you are doing like for like, 1k points source, 1k points target, then you could look up just the pos of the corresponding ID... ie:

pt332 in input 1 is looking for pt332 in input2.

Link to comment
Share on other sites

Also, I generally don't use pops and do the majority of my particles in SopSolvers.

Same sh*t, different context :)

If I need proper sourcing, I'll have a dopnet with pops handling sourcing/killing and sops doing everything else.

Link to comment
Share on other sites

There is a nice thread on the SideFX forums about directable fluids/gases, where a couple of people implemented a related paper with volumes in DOPs.

I can never find the thread when I need to, though.. Anyone remember the title? :)

Link to comment
Share on other sites

I finally got this working. I have a sop solver plugged into my flip solver and inside the sop solver I'm taking the "Geometry" flip particles and assigning each one a velocity that points toward a nearest point on my goal object. I had to fill the goal object with points in order to get some decent results. Then I have those goal points deleted based on distance between a flip particle and a goal point. I then added some basic velocity cutting into the mix to get the velocities to cut by half as they start to go wild (works like drag but keeps the nice behavior of the sim rather than affecting everything at once. I'll share more soon. Still working on it.

Link to comment
Share on other sites

hmm. I actually tried that and I do think it was a bit quicker but the result was much different at volume stage rather than at particle state. I'll have another look at it though. I am getting some cleaner better details out of the particle stage

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