PavelBlend / blender-molecular

molecular addon for blender
26 stars 7 forks source link

particle explosion #20

Closed PavelBlend closed 5 months ago

PavelBlend commented 5 months ago

@OmidGhotbi I noticed particle explosions in your last version of the code. Particles fly too far.

https://github.com/PavelBlend/blender-molecular/assets/7983249/411175de-093e-4a31-b53c-df7c3a4ac0b5

Here is an example blend file: untitled.zip

OmidGhotbi commented 5 months ago

I did change equation to get more chaotic results that wasn't possible before. So i may did it a bit to strong. this is the compare between two equation. Let me double check the equation and i will get back to you.

Molecular-New-Eq Left is old EQ and right is new EQ . Both have the same parameters.

OmidGhotbi commented 5 months ago

I double-checked the code, it is just more accurate I believe. As it is more sensitive in collisions, it's better to slightly change the parameters. for example, Self-friction of about 0.25 and self-dumping of about 0.15 will solve the issue in your case. image

5 different test cases with your scene in the Zip file below. Test.zip

https://github.com/PavelBlend/blender-molecular/assets/164653/a1c6e909-7277-4a3f-a28e-406184cac9d9

If you still think it's too much let me know and i will change it.

and here is another test with the new Mesher:

MesherSDF

By the way, I found a bug that can cause a crash during the simulation that I will address soon.