Jump to content

Destruction VFX - Collision slide, flickering particles - same old pro


ChargingImage

Recommended Posts

Hallo!

 

I've tried searching for solutions of this but probably I'm not asking the right questions.

 

here is the sim:

 

https://www.youtube.com/watch?v=i646JTxxEIY

 

1. Particles are sliding downwards along the walls (you can see it on the left wall clearly). I've tried increasing substeps, volume offset, vdb resolution, and some other stuff. Didn't work. Last resort is adding "vdb distance field" to push out particles just outside to fall down properly, but for that I need to dig up other tutorial I've watched, where this solution was made. And maybe there is simpler solution... (here YOU come in ;) )

 

 

2. Other thing is flickering particles. This is another, pure collision problem.

 

https://youtu.be/MQJ6Ry3WJBM

(it's almost the same sim, just better vdb and more particles).

 

It appears where particles are trapped between 2 collision objects (particle fell on the ground, and moment later, block of rigid body goes to the same spot). How can I fix this? I've tried grouping <0.01 @vel_length and excluding them from gravity/collision/something but that didn't work that well. Maybe calculate acceleration and delete those with too high value - but still some innocent particles could be deleted in process.

 

Is there any kind of "switch off from sim" trigger in particles? I know there is @active in rigid bodies, but coudn't find something simmilar in here.

 

Ideas?

 

Overall, I'm not even sure should I bother because this problem is almost invisible... but still... I'm quite afraid that in rendering I'll see some jumping particles on the edges of geo, and I don't want manually delete them.

 

Link to comment
Share on other sites

For Problem #2:

 

What you can do is drop down a couple of velocity nodes to control what happens after they hit a surface and bounce.

 

Create a group based upon the $JUSTHIT variable.

post-12295-0-95727200-1449412868_thumb.j

 

Then add a velocity node that decrease velocity based upon a multiplier for those particles that just hit something.

post-12295-0-06764100-1449412878_thumb.j

 

Create a new attribute called nonvelocity whose value is set based upon the $NUMHIT variable. This is your bounce count expression $NUMHIT==3 (choose bounce count).

post-12295-0-34611200-1449412891_thumb.j

 

Then lay down a second velocity node that examines the nonvelocity attribute and sets the velocity to zero after the number of bounces have occurred. Do this for $VX, VY, $VZ.

post-12295-0-89707000-1449412904_thumb.j

 

This kind of particle velocity refinement worked in the old particle system but might need some tweaking for the new one? But maybe this will give an idea of how to proceed.

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