Jump to content

pyro vortex going out of bounds


nicoladanese

Recommended Posts

Hey!

I'm looking into a way of keeping my volume inside the vortex boundaries, at the moment when it spins it goes out, any idea? I was thinking about a torus shape volume around it with custom velocities to push it inside when it goes out, but maybe there are better solutions!

cheers!

309nzs.gif

Link to comment
Share on other sites

Yeah, you need some velocity pushing the smoke inwards. If you don't angle the velocity inwards, it's just going to shoot outwards from the spin. If I were you, I'd set up another velocity field that just sucks the smoke inwards and get that looking good, then add an additional velocity force that adds the radial velocity, and add just enough that the smoke doesn't shoot out too far.

Link to comment
Share on other sites

You can add single Gas Field Wrangle into the velocity update plug and try something like this:

float minrad = 1;
float maxrad = 1.5;
float velmult = 1.0;

vector center = set(0,0,0);
vector dir = center-v@P;
float dist = length(dir);
float mult = fit(dist,minrad,maxrad,0,1)*velmult;

v@vel += normalize(dir)*mult;

 

Edited by rayman
Link to comment
Share on other sites

hey!

thanks for your reply

Joseph, I wonder if I can manipulate the existing velocity adding a bit of inward velocity rather than adding a custom field, I need to dig a bit more in how to customize data inside the pyro solver! anyway I think this is the easy way, although requires a lot of try and fail to get the right amount

Pavel, thanks for the vex code, will definitely try this as well

since I'm using that volume to move points, what I'm doing at the moment is doing the tornado at point level rather than volume, definitely easier to setup

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