Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback Offset gives inconsistent results #488

Closed
Tatrabbit opened this issue Feb 4, 2020 · 1 comment
Closed

Playback Offset gives inconsistent results #488

Tatrabbit opened this issue Feb 4, 2020 · 1 comment
Labels

Comments

@Tatrabbit
Copy link

System Information

Blender Version (including hash): 2.81a (f1aa4d18d49d)
FLIP Fluids Version: 1.0.7
Operating System: Windows 10
CPU: Intel i7-4790 @ 3.60GHz
GFX: GTX 1060, 6GB
RAM: 16GB

Describe the bug

When either previewing or rendering, a playback offset other than 0 doesn't give consistent results. For instance, sometimes the fluid mesh won't change, and sometimes it will. This is especially common when Playback Offset is set to 1 or -1.

To Reproduce

Create a small fluid simulation with only 8 or so frames. Nothing other than one fluid inflow is needed to see the results. Bake the results, and set Playback offset to 1. Increment the frame one by one using right arrow. The cache will update only other frame. Move backwards by one by one, and notice that it updates fine.

Expected Behaviour

I expected a playback offset to be deterministic..

Actual Behaviour

Playback Offset seems to depend on an async call (possibly hard disk access?) and isn't consistent.

Screenshots

https://rainChu.com/s/oRuuXEnO.mp4

@rlguy rlguy added the bug label Feb 4, 2020
@rlguy
Copy link
Owner

rlguy commented Feb 4, 2020

Hi rainChu,

Thank you for the report and video! I am able to reproduce this issue from the instructions.

It looks like this is caused by a bug in the scripts that are run during a frame change. In some areas of the scripts, the playback offset value was not being used when calculating which frame to load, leading to an inconsistent frame number. This ended up being most noticeable when the playback offset was set to -1 or 1, but can still happen at other values.

I have fixed this issue for the next version.

Workaround

Until the next version is released, this issue can be patched by replacing a script in your FLIP Fluids installation. Unzip the following file to get flip_fluid_cache.py:

flip_fluid_cache.zip

Replace the flip_fluids_addon/objects/flip_fluid_cache.py with the fixed file and restart Blender.

For example, on my Windows system, this file is located here:

C:\Users\ryanl\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\flip_fluids_addon\objects\flip_fluid_cache.py

- Ryan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants