Blender-FLIP-Fluids icon indicating copy to clipboard operation
Blender-FLIP-Fluids copied to clipboard

Blender 2.8 fluid shape bug

Open alex3dpl opened this issue 7 years ago • 4 comments

System Information

Blender Version (including hash): 2.8 2019-04-06 cc73d59ad580 FLIP Fluids Version: 9.0.5.3 experimental 01-FEB-2019 Operating System: Suse Tumbleweed 64-bit CPU: AMD FX-4100 GFX: GTX 960 4GB RAM: 8GB

Describe the bug

Strange fluid shape (like rotated 45 degrees)

To Reproduce

Add domain cube, add fluid (a half domain size)

Expected Behaviour

Full fluid shape.

Screenshots

FF_bug

alex3dpl avatar Apr 07 '19 11:04 alex3dpl

Thanks for the report! It looks like this issue is caused by a recent change in Blender 2.80. The object shape works as expected in older versions of Blender 2.80.

I suspect that there might be a bug in how Blender is exporting meshes. This is how the mesh is being exported in the most recent version:

exported_mesh

I'll be able to look further into this after the weekend.

rlguy avatar Apr 07 '19 16:04 rlguy

I have had a chance to take a look at this issue. It looks like the problem is that in a recent version of Blender 2.80, modifiers added to an object by a script/addon are not being applied before converting the object to a mesh.

The FLIP Fluids simulator requires that the mesh polygons consists of only triangles. We do this by adding a Triangulate Modifier when exporting the object for the simulator. Since the modifier was not applied, the resulting mesh geometry was not correct.

I have found a workaround that seems to fix this within the addon. I will continue testing this workaround to make sure that it works in future versions of Blender 2.80. This issue might fix itself in future versions.

Workaround 1: editing addon script

Until we release a new version, a workaround is to replace a script within the FLIP Fluids addon.

Replace the Blender 2.80/scripts/addons/flip_fluids_addon/utils/version_compatibility_utils.py script with this updated file: version_compatibility_utils.py

Workaround 2: add triangulation modifier manually

An alternative to editing the scripts is to add a Triangulation Modifier to the fluid/inflow/outflow/obstacle objects before baking the simulation.

rlguy avatar Apr 08 '19 18:04 rlguy

The first workaround worked for me, thank you.

EntitySelf avatar Apr 14 '19 15:04 EntitySelf

It looks like this issue will be a permanent change in Blender 2.80. It's a simple fix/modification on our side and we will be including this fix in the next experimental version (9.0.5.4) which will be available near the end of next week.

rlguy avatar May 02 '19 19:05 rlguy