Page MenuHome

Fluids: improve subframe handling
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Mar 27 2020, 5:22 PM.

Details

Summary

Before:

After:

The example file is a slightly modified version from T74062.

First first frame is still baked incorrectly, but that is a separate issue. It seems wrong to me that any simulation happens at all in the first frame.

As for T74062, I feel like there is confusion about what adaptive time steps is doing. If I understand it correctly, this setting only has an impact of the fluid itself is moving fast, but not if the emitter is moving fast. Maybe you should clarify that (in a tooltip) and in the thread.

Diff Detail

Repository
rB Blender
Branch
subframe-smoke-emission (branched from master)
Build Status
Buildable 7412
Build 7412: arc lint + arc unit

Event Timeline

Sebastián Barschkis (sebbas) requested changes to this revision.Apr 1 2020, 5:26 PM

Can you expand this patch so that the subframe loop from update_obstacles() gets this update too?

This revision now requires changes to proceed.Apr 1 2020, 5:26 PM
  • fix subframe handling for obstacles

Before subframes didn't work at all in this example.

Now, with one subframe (no adaptive time steps):

With two subframes (no adaptive time steps):

With 50 subframes (no adaptive time steps):

With 10 time steps:

It all seems to behave as I'd expect.

This revision is now accepted and ready to land.Apr 2 2020, 10:30 AM
This revision was automatically updated to reflect the committed changes.