Jump to content

Copying velocity particle attributes


phong

Recommended Posts

Hi!

In the Fluid Technical Evening video with Jeff (http://www.sidefx.com/index.php?option=com_content&task=view&id=1490&Itemid=310) he demonstrated a particle fluid sim rock splash at the beginning. He used two-passes to generate the highres splash and mentioned, that he transfered the velocity from the lowres fluid sim to the splash sim. How can I transfer the velocity attribute without overwriting the particles own velocity then? Or in other words, how did he do it?

Thanks a lot,

Phong

Link to comment
Share on other sites

It's been a long time since I did those files for Jeff but I'm pretty sure the velocity for the new points was just the average velocity for all the points that got grouped out, though I can't be certain. If you use something like an attribute promote to get the average, scale the values up a bunch to get a bigger splash, then apply them as the V attr to the high res points before creating the new particle fluid simulation. Basically the key is to just gives the points a large velocity towards your splash object and let it sim from there. Sorry I can't be of much more help since it was so long ago.

Link to comment
Share on other sites

Phong, I don´t know if Graham did that, but I have done this myself before and it worked pretty well. You should try that method.

You can always add some more velocity or variance for artistic purposes if the original velocity doesn´t perform dramatically enough.

Edited by Netvudu
Link to comment
Share on other sites

We created a volume and then created points inside, not on the surface of. These points most likely got a scaled up average velocity so they had roughly the same motion but exaggerated. These points were then fed to a new simulation that used them as the initial state. There was no emitting done. The large number of new particles with the increased velocity was what would be used for the splash.

Link to comment
Share on other sites

interesting. But what is if it takes a while until the wave reaches the collision object? Then the points of the new simulation would dissipate in the lowres particle sim or not? Or are you using a cached version of the lowres sim and do an independent splash simulation? if so, how do you get the splash interact with the lowres sim then (like hitting the surface and dissipate)?

@Netvudu: I tried that method and it did work pretty well, but I had to manually animate when particle emission begins and when it ends. It would be cooler, if that is all done procedurally (i.e. if you have tons of rocks and stuff in the water with which the wave can collide!). How cool would that be?! :)

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...