Jump to content

Volume Velocity to Mesh?


ParticleSkull

Recommended Posts

Hey guys, I'm growing some objects using volumes (scene is attached) and I'd like to have motion blur on the moving/growing areas.

I do have some velocity on the volume, in order to control it's growing direction, but i have no idea on how to transfer it to the mesh itself.

here's how the setup looks like:

lw7C95L.jpg

7AeZLlj.gif

K68BqAr.gif

Thx

Volume.Growth.Velocity.v1a.hiplc

  • Like 1
Link to comment
Share on other sites

HI, I think it's possible to sample velocity from volume with "Volume Sample Vector" vop or with volume wrangle
smtn like this v@v = volumesamplev(1, "vel", @P);
must be faster than attrib from volume

Edited by Deviner
  • Like 1
Link to comment
Share on other sites

Thx @Deviner! The Attribute from Volume did transfered that velocity to the mesh but doesn't work as I expected (for some obvious reasons the static part of the mesh was getting velocity as well)
I can't test what said right now but i'll do it first thing in the morning. Thx man

Cheers,
Alvaro

Volume.Growth.Velocity.v1b.hiplc

Link to comment
Share on other sites

  • 2 weeks later...

Hello ParticleSkull,

 

   You can use what @Deviner said and  build a mask to ensure that only the moving part will get the velocity :

 

- To buid the mask you can use on one side your original geo and color it white with a color node and then on another side timeshift one frame back your geo and color it black. You can then use an attribute transfer from the black (your mesh with one frame back) to the white (your original mesh) so only the new growing points will be white from frame to frame.

 

- then just use an if statement to transfer your velocity :

if(@Cd.x>0.1)

{

v@v = volumesamplev(1, "vel", @P);

}

else

{

v@v={0,0,0};

}

 

 

  • Like 3
Link to comment
Share on other sites

For motion blur just drop down a Trail inside of geo1, right after you rename vel to v, to compute velocity. You can scale it as well at that point.

 

Edited by Atom
  • Like 3
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...