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

Rigid body cache does not bake if a FLIP Fluids domain is in the scene (Blender Bug) #409

Closed
rlguy opened this issue Dec 29, 2018 · 3 comments

Comments

@rlguy
Copy link
Owner

rlguy commented Dec 29, 2018

Blender Version (including hash): Blender 2.80 (e5e885d0ecb9)
FLIP Fluids Version: 9.0.5.2 (Experimental)
Operating System: Windows 10
CPU: Intel Core i7-7700 @ 3.60GHz
GFX: GTX 1070 8GB
RAM: 32GB

It seems that a Blender rigid body simulation cache is unable to to be baked if there is a FLIP Fluids domain in the scene. Blender only bakes a few frames in the cache and then stops. There are no errors in the system console. After removing the domain, the rigid body simulation bakes without problems.

I suspect that this is a bug in Blender 2.80 since this issue does not affect Blender 2.79. I will need to investigate this further and find out what part of the FLIP Fluids addon scripts is preventing the rigid body simulation from baking so that a bug can be reported to Blender.

Until this issue is fixed, a workaround is to disable the FLIP Fluids domain before baking a rigid body simulation.

Attached is a .blend file that reproduces the issue:
issue409.zip

@rlguy
Copy link
Owner Author

rlguy commented Jan 3, 2019

Update

It looks like this is a bug in Blender. I have reported the issue here: https://developer.blender.org/T60136

Here is a simplified script which reproduces the issue:

import bpy

def frame_change_pre(scene):    
    new_mesh_data = bpy.data.meshes.new("mesh_name")
    bpy.data.meshes.remove(new_mesh_data)
    
bpy.app.handlers.frame_change_pre.append(frame_change_pre)

@rlguy
Copy link
Owner Author

rlguy commented Jan 31, 2019

Update: The bug has been assigned earlier this week, so hopefully this will be fixed soon!

This bug also affects the cloth simulator.

@rlguy rlguy changed the title Rigid body cache does not bake if a FLIP Fluids domain is in the scene Rigid body cache does not bake if a FLIP Fluids domain is in the scene (Blender Bug) Jan 31, 2019
@rlguy
Copy link
Owner Author

rlguy commented Jun 13, 2019

The bug reported to the developers has been fixed. I have tested the fix and it looks like baking an rigid body cache alongside a FLIP Fluids simulation is still not possible due to another issue: #403. This issue will cause crashes when trying to bake a rigid body cache.

I have added a note to the developers about this here: https://developer.blender.org/T60094#700781

I will close this issue and add this info to #403

@rlguy rlguy closed this as completed Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant