gelly-gmod / gelly

Library to integrate fluids into a game engine
GNU General Public License v3.0
18 stars 2 forks source link

[TICKET]: Simulation tends to be unstable and needs to be sped up #53

Open yogwoggf opened 2 months ago

yogwoggf commented 2 months ago

Context

It's a long standing issue, the FleX simulation is extremely unstable for several reasons.

My proposal is to shrink the local space of the entire fluid simulation by some arbitrary factor, and then apply the Source Engine's ambient conditions in hammer units, which are then transformed by previously mentioned arbitrary factor.

This should work as the entire force applied upon the particles will be relatively smaller than what wouldve been applied if we kept the same unit dimensions. In fact, FleX really has only ever been known to work stably when the particle radius is about 0.01-0.5, several times smaller than the typical Gelly particle radius.

Scope

Acceptance Criteria

Simulation Change

Simulation Correctness

Other

No response

yogwoggf commented 2 months ago

I think this issue will heavily use our new trunk-based development--it's not necessarily high priority but could potentially bring far more pros than cons. Basically, it might be in low development for a while

yogwoggf commented 2 months ago

Was doing some ideation, fairly simple

That should just.. work. Will try later.