Mantaflow liquid collisions not working properly #85214

Open
opened 2021-01-29 21:57:30 +01:00 by James Tomkinson · 11 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0
Worked: (newest version of Blender that worked as expected)

Short description of error
Unless a liquid collision effector's Surface Thickness is set to at least 0.5 or set to "Is Planar" it is not used.

Exact steps for others to reproduce the error
I reference two examples for liquid and smoke+fire [examples ]] and there are several issues logged in Blender stackexchange , along with my [ https://blender.stackexchange.com/a/209934/111042 | investigation .

A collision effector is ignored unless Surface Thickness is set to at least 0.5 or set to "Is Planar". However as docs state Surface Thickness is "Additional area around the effector".

In my first example "liquid collision.blend" the results (show in "liquid collision.png") shows how the extra Surface Thickness effects the liquid that becomes more confined in the container, whereas setting it to less than 0.5 will cause the liquid to fall through the container.

The same is true in the "muzzle*.blend" file where the flash & smoke comes through the collision object unless Surface Thickness is set (incorrectly) to at least 0.5

liquid collision.blend
muzzle flash no projectile.blend
liquid collision.png

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `3e85bb34d0` Worked: (newest version of Blender that worked as expected) **Short description of error** Unless a liquid collision effector's Surface Thickness is set to at least 0.5 or set to "Is Planar" it is not used. **Exact steps for others to reproduce the error** I reference two examples for liquid and smoke+fire [examples ]] and there are several issues logged in [[ https:*blender.stackexchange.com/search?q=liquid+collision | Blender stackexchange ]], along with my [[ https://blender.stackexchange.com/a/209934/111042 | investigation ](http:*optionpeer.com/jimtpersonal/collisions.zip). A collision effector is ignored unless Surface Thickness is set to at least 0.5 or set to "Is Planar". However as [docs ](https://docs.blender.org/manual/en/latest/physics/fluid/type/effector.html) state Surface Thickness is "Additional area around the effector". In my first example "liquid collision.blend" the results (show in "liquid collision.png") shows how the extra Surface Thickness effects the liquid that becomes more confined in the container, whereas setting it to less than 0.5 will cause the liquid to fall through the container. The same is true in the "muzzle*.blend" file where the flash & smoke comes through the collision object unless Surface Thickness is set (incorrectly) to at least 0.5 [liquid collision.blend](https://archive.blender.org/developer/F9607491/liquid_collision.blend) [muzzle flash no projectile.blend](https://archive.blender.org/developer/F9607492/muzzle_flash_no_projectile.blend) ![liquid collision.png](https://archive.blender.org/developer/F9607493/liquid_collision.png)

Added subscriber: @jamestomk

Added subscriber: @jamestomk
James Tomkinson changed title from Mantaflow collisions not working properly to Mantaflow liquid collisions not working properly 2021-01-29 21:58:11 +01:00
Member

Added subscribers: @sebbas, @lichtwerk

Added subscribers: @sebbas, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Also not sure I understand collisions correctly in mantaflow:

@sebbas: does the effector need to cover a whole cell?
reason I am asking is:

  • you can also get it to work if you increase the solidify thickness considerably
  • you can also get it to work if you increase the domain resolution division considerably

@sebbas: also note that I get two crashes:

  • opening liquid collision.blend in a Debug build
# Blender 2.93.0, Commit date: 2021-01-31 14:53, Hash b10fac0432c6

# backtrace
./bin/blender(BLI_system_backtrace+0x26) [0xe1066d2]
./bin/blender() [0x3406a50]
./bin/blender() [0x3406c50]
/lib64/libc.so.6(+0x3da60) [0x7f0d20c7ba60]
./bin/blender(_ZN5Manta5ErrorC2ERKSs+0x82) [0xc6e7f4c]
./bin/blender(_ZNK5Manta8GridBase10checkIndexEiii+0x21f) [0xc701087]
./bin/blender(_ZNK5Manta8GridBase5indexEiii+0x2a) [0xc700d5e]
./bin/blender(_ZN5Manta4GridINS_8Vector3DIfEEE3setEiiiRS2_+0x3a) [0xc7af456]
./bin/blender() [0xcabc30e]
./bin/blender(_ZN5Manta14readObjectsVDBERKSsPSt6vectorIPNS_7PbClassESaIS4_EEf+0xd76) [0xcab9c45]
./bin/blender(_ZN5Manta4loadERKSsRSt6vectorIPNS_7PbClassESaIS4_EEf+0x27f) [0xc775768]
./bin/blender() [0xc775cb6]
./bin/blender(_PyMethodDef_RawFastCallKeywords+0x193) [0xcc5d343]
./bin/blender(_PyCFunction_FastCallKeywords+0x28) [0xcc5d538]
./bin/blender() [0x33f9a70]
./bin/blender(_PyEval_EvalFrameDefault+0x4b54) [0x33fe714]
./bin/blender(_PyEval_EvalCodeWithName+0x92d) [0xccfe3dd]
./bin/blender(_PyFunction_FastCallKeywords+0x89) [0xcc5cf79]
./bin/blender() [0x33f9835]
./bin/blender(_PyEval_EvalFrameDefault+0x4b54) [0x33fe714]
./bin/blender() [0x33f859b]
./bin/blender() [0x33f9835]
./bin/blender(_PyEval_EvalFrameDefault+0x4344) [0x33fdf04]
./bin/blender(_PyEval_EvalCodeWithName+0x92d) [0xccfe3dd]
./bin/blender(PyEval_EvalCodeEx+0x3e) [0xccfe65e]
./bin/blender(PyEval_EvalCode+0x1b) [0xccfe68b]
./bin/blender(PyRun_StringFlags+0x8f) [0xcd2f67f]
./bin/blender(_ZN5MANTA15runPythonStringESt6vectorISsSaISsEE+0xd5) [0xc6c5b89]
./bin/blender(_ZN5MANTA8readDataEP17FluidModifierDataib+0x590) [0xc6d52ec]
./bin/blender(manta_read_data+0x2f) [0xc6becfd]
./bin/blender() [0x393c172]
./bin/blender() [0x393c65d]
./bin/blender(BKE_fluid_modifier_do+0x93) [0x393c6f3]
./bin/blender() [0x3f7ab57]
./bin/blender(BKE_modifier_modify_mesh+0xe9) [0x34c4666]
./bin/blender() [0x3890ca8]
./bin/blender() [0x3891ad1]
./bin/blender() [0x3893ca6]
./bin/blender(makeDerivedMesh+0xaa) [0x3894238]
./bin/blender(BKE_object_handle_data_update+0x199) [0x3506c76]
./bin/blender(BKE_object_eval_uber_data+0x8a) [0x35075b4]
./bin/blender(_ZSt13__invoke_implIvRPFvP9DepsgraphP5SceneP6ObjectEJS1_RS3_RS5_EET_St14__invoke_otherOT0_DpOT1_+0x65) [0xcc213dd]
./bin/blender(_ZSt8__invokeIRPFvP9DepsgraphP5SceneP6ObjectEJS1_RS3_RS5_EENSt15__invoke_resultIT_JDpT0_EE4typeEOSC_DpOSD_+0x67) [0xcc1fa5a]
./bin/blender(_ZNSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES3_S5_EE6__callIvJOS1_EJLm0ELm1ELm2EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE+0xa0) [0xcc1dd7e]
./bin/blender(_ZNSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES3_S5_EEclIJS1_EvEET0_DpOT_+0x41) [0xcc1bcb7]
./bin/blender(_ZSt13__invoke_implIvRSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES4_S6_EEJS2_EET_St14__invoke_otherOT0_DpOT1_+0x37) [0xcc18fd9]
./bin/blender(_ZSt10__invoke_rIvRSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES4_S6_EEJS2_EENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EESF_E4typeEOSG_DpOSH_+0x37) [0xcc1583d]
./bin/blender(_ZNSt17_Function_handlerIFvP9DepsgraphESt5_BindIFPFvS1_P5SceneP6ObjectESt12_PlaceholderILi1EES5_S7_EEE9_M_invokeERKSt9_Any_dataOS1_+0x37) [0xcc128db]
./bin/blender(_ZNKSt8functionIFvP9DepsgraphEEclES1_+0x49) [0xcbee387]
./bin/blender() [0xcbed633]
./bin/blender() [0xcbed679]
./bin/blender(_ZZNK4TaskclEvENKUlvE_clEv+0x34) [0xe10cdbe]
./bin/blender() [0xe10d182]
./bin/blender() [0x398bbe5]
./bin/blender() [0xe10cf6a]
./bin/blender() [0xe10ce93]
./bin/blender(_ZNK4TaskclEv+0x20) [0xe10cde2]
./bin/blender() [0xe10d15e]
./bin/blender() [0x39992e5]
./bin/blender() [0x399959b]
./bin/blender() [0x398b8f7]
./bin/blender() [0x3993060]
./bin/blender() [0x399506c]
./bin/blender() [0x3995269]
/lib64/libpthread.so.0(+0x93f9) [0x7f0d213c73f9]
/lib64/libc.so.6(clone+0x43) [0x7f0d20d3f903]

# Python backtrace
  File "<string>", line 264 in fluid_file_import_s1
  File "<string>", line 72 in liquid_load_data_1
  File "<string>", line 1 in <module>

  • going in and out of editmode in a 2.93 Release build or 2.92 beta also crashes. (this might be related to #84649 (Quick liquid causing crash on scale operation) though)

Will confirm for now.

Also not sure I understand collisions correctly in mantaflow: @sebbas: does the effector need to cover a whole cell? reason I am asking is: - you can also get it to work if you increase the solidify thickness considerably - you can also get it to work if you increase the domain resolution division considerably @sebbas: also note that I get two crashes: - opening liquid collision.blend in a Debug build ``` # Blender 2.93.0, Commit date: 2021-01-31 14:53, Hash b10fac0432c6 # backtrace ./bin/blender(BLI_system_backtrace+0x26) [0xe1066d2] ./bin/blender() [0x3406a50] ./bin/blender() [0x3406c50] /lib64/libc.so.6(+0x3da60) [0x7f0d20c7ba60] ./bin/blender(_ZN5Manta5ErrorC2ERKSs+0x82) [0xc6e7f4c] ./bin/blender(_ZNK5Manta8GridBase10checkIndexEiii+0x21f) [0xc701087] ./bin/blender(_ZNK5Manta8GridBase5indexEiii+0x2a) [0xc700d5e] ./bin/blender(_ZN5Manta4GridINS_8Vector3DIfEEE3setEiiiRS2_+0x3a) [0xc7af456] ./bin/blender() [0xcabc30e] ./bin/blender(_ZN5Manta14readObjectsVDBERKSsPSt6vectorIPNS_7PbClassESaIS4_EEf+0xd76) [0xcab9c45] ./bin/blender(_ZN5Manta4loadERKSsRSt6vectorIPNS_7PbClassESaIS4_EEf+0x27f) [0xc775768] ./bin/blender() [0xc775cb6] ./bin/blender(_PyMethodDef_RawFastCallKeywords+0x193) [0xcc5d343] ./bin/blender(_PyCFunction_FastCallKeywords+0x28) [0xcc5d538] ./bin/blender() [0x33f9a70] ./bin/blender(_PyEval_EvalFrameDefault+0x4b54) [0x33fe714] ./bin/blender(_PyEval_EvalCodeWithName+0x92d) [0xccfe3dd] ./bin/blender(_PyFunction_FastCallKeywords+0x89) [0xcc5cf79] ./bin/blender() [0x33f9835] ./bin/blender(_PyEval_EvalFrameDefault+0x4b54) [0x33fe714] ./bin/blender() [0x33f859b] ./bin/blender() [0x33f9835] ./bin/blender(_PyEval_EvalFrameDefault+0x4344) [0x33fdf04] ./bin/blender(_PyEval_EvalCodeWithName+0x92d) [0xccfe3dd] ./bin/blender(PyEval_EvalCodeEx+0x3e) [0xccfe65e] ./bin/blender(PyEval_EvalCode+0x1b) [0xccfe68b] ./bin/blender(PyRun_StringFlags+0x8f) [0xcd2f67f] ./bin/blender(_ZN5MANTA15runPythonStringESt6vectorISsSaISsEE+0xd5) [0xc6c5b89] ./bin/blender(_ZN5MANTA8readDataEP17FluidModifierDataib+0x590) [0xc6d52ec] ./bin/blender(manta_read_data+0x2f) [0xc6becfd] ./bin/blender() [0x393c172] ./bin/blender() [0x393c65d] ./bin/blender(BKE_fluid_modifier_do+0x93) [0x393c6f3] ./bin/blender() [0x3f7ab57] ./bin/blender(BKE_modifier_modify_mesh+0xe9) [0x34c4666] ./bin/blender() [0x3890ca8] ./bin/blender() [0x3891ad1] ./bin/blender() [0x3893ca6] ./bin/blender(makeDerivedMesh+0xaa) [0x3894238] ./bin/blender(BKE_object_handle_data_update+0x199) [0x3506c76] ./bin/blender(BKE_object_eval_uber_data+0x8a) [0x35075b4] ./bin/blender(_ZSt13__invoke_implIvRPFvP9DepsgraphP5SceneP6ObjectEJS1_RS3_RS5_EET_St14__invoke_otherOT0_DpOT1_+0x65) [0xcc213dd] ./bin/blender(_ZSt8__invokeIRPFvP9DepsgraphP5SceneP6ObjectEJS1_RS3_RS5_EENSt15__invoke_resultIT_JDpT0_EE4typeEOSC_DpOSD_+0x67) [0xcc1fa5a] ./bin/blender(_ZNSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES3_S5_EE6__callIvJOS1_EJLm0ELm1ELm2EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE+0xa0) [0xcc1dd7e] ./bin/blender(_ZNSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES3_S5_EEclIJS1_EvEET0_DpOT_+0x41) [0xcc1bcb7] ./bin/blender(_ZSt13__invoke_implIvRSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES4_S6_EEJS2_EET_St14__invoke_otherOT0_DpOT1_+0x37) [0xcc18fd9] ./bin/blender(_ZSt10__invoke_rIvRSt5_BindIFPFvP9DepsgraphP5SceneP6ObjectESt12_PlaceholderILi1EES4_S6_EEJS2_EENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EESF_E4typeEOSG_DpOSH_+0x37) [0xcc1583d] ./bin/blender(_ZNSt17_Function_handlerIFvP9DepsgraphESt5_BindIFPFvS1_P5SceneP6ObjectESt12_PlaceholderILi1EES5_S7_EEE9_M_invokeERKSt9_Any_dataOS1_+0x37) [0xcc128db] ./bin/blender(_ZNKSt8functionIFvP9DepsgraphEEclES1_+0x49) [0xcbee387] ./bin/blender() [0xcbed633] ./bin/blender() [0xcbed679] ./bin/blender(_ZZNK4TaskclEvENKUlvE_clEv+0x34) [0xe10cdbe] ./bin/blender() [0xe10d182] ./bin/blender() [0x398bbe5] ./bin/blender() [0xe10cf6a] ./bin/blender() [0xe10ce93] ./bin/blender(_ZNK4TaskclEv+0x20) [0xe10cde2] ./bin/blender() [0xe10d15e] ./bin/blender() [0x39992e5] ./bin/blender() [0x399959b] ./bin/blender() [0x398b8f7] ./bin/blender() [0x3993060] ./bin/blender() [0x399506c] ./bin/blender() [0x3995269] /lib64/libpthread.so.0(+0x93f9) [0x7f0d213c73f9] /lib64/libc.so.6(clone+0x43) [0x7f0d20d3f903] # Python backtrace File "<string>", line 264 in fluid_file_import_s1 File "<string>", line 72 in liquid_load_data_1 File "<string>", line 1 in <module> ``` - going in and out of editmode in a 2.93 Release build or 2.92 beta also crashes. (this might be related to #84649 (Quick liquid causing crash on scale operation) though) Will confirm for now.
Philipp Oeser changed title from Mantaflow liquid collisions not working properly to Mantaflow liquid collisions not working properly (also crashes going in and out of editmode on the domain) 2021-02-01 12:10:15 +01:00

Added subscriber: @rlneumiller

Added subscriber: @rlneumiller

version: 2.93.0 Alpha, branch: master, commit date: 2021-01-31 14:53, hash: b10fac0432, type:
build date: 2021-02-01, 18:17:25
I'm not seeing the crash on Windows 10 1909 GeForce GTX 1660 Ti 461.09.

version: 2.93.0 Alpha, branch: master, commit date: 2021-01-31 14:53, hash: b10fac0432c6, type: build date: 2021-02-01, 18:17:25 I'm not seeing the crash on Windows 10 1909 GeForce GTX 1660 Ti 461.09.

I also don't see the repro (nothing happens when I "play" the simulation in either "liquid collision.blend" or "muzzle*.blend".
Perhaps more detail as to how to reproduce the issue is needed.

I also don't see the repro (nothing happens when I "play" the simulation in either "liquid collision.blend" or "muzzle*.blend". Perhaps more detail as to how to reproduce the issue is needed.
Sebastián Barschkis self-assigned this 2021-02-16 17:07:41 +01:00

Looked a bit into this issue. The crash seems to be resolved and so I'm adjusting the priority.

Looked a bit into this issue. The crash seems to be resolved and so I'm adjusting the priority.
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

After a whole afternoon of "playing around" with liquid collision objects and domain parameters, I'm thinking this is more of a documentation issue plus a lack of nuanced tutorials. I would be willing to take a stab at the user manual, which is never complete enough and I realize is only meant to "list" and put a simple description of parameters, rather than be some complete encyclopedia of workflow or usage. I used varieties of fluid collision objects like:

  • A collision cube with a minimum height where fluid would not pass through (at some Res Division)

A collision plane with a minimum surface thickness where fluid would not pass through (at some Res Division)

A collision plane with a minimum solidify thickness where fluid would not pass through (at some Res Division)

  • A domain with a larger Resolution Division that allowed for thinner collision objects

  • A domain with smaller Res Division but smaller particle radius where fluid would not pass through collision obj of thinner dimension

I think there should be some form of documentation that mentions these inter-dependencies. There certainly is some mention of Resolution Division. But the rest is Stack Exchange hunting and hit/miss that costs great amount of iterative bake time. I have perhaps also passed incomplete information on Stack Exchange on this issue.

Is there some way to convert this to a documentation ToDo?

fluid 2 92.blend

After a whole afternoon of "playing around" with liquid collision objects and domain parameters, I'm thinking this is more of a documentation issue plus a lack of nuanced tutorials. I would be willing to take a stab at the user manual, which is never complete enough and I realize is only meant to "list" and put a simple description of parameters, rather than be some complete encyclopedia of workflow or usage. I used varieties of fluid collision objects like: - A collision cube with a minimum height where fluid would not pass through (at some Res Division) # A collision plane with a minimum surface thickness where fluid would not pass through (at some Res Division) # A collision plane with a minimum solidify thickness where fluid would not pass through (at some Res Division) - A domain with a larger Resolution Division that allowed for thinner collision objects - A domain with smaller Res Division but smaller particle radius where fluid would not pass through collision obj of thinner dimension I think there should be some form of documentation that mentions these inter-dependencies. There certainly is some mention of Resolution Division. But the rest is Stack Exchange hunting and hit/miss that costs great amount of iterative bake time. I have perhaps also passed incomplete information on Stack Exchange on this issue. Is there some way to convert this to a documentation ToDo? [fluid 2 92.blend](https://archive.blender.org/developer/F10042460/fluid_2_92.blend)
James Tomkinson changed title from Mantaflow liquid collisions not working properly (also crashes going in and out of editmode on the domain) to Mantaflow liquid collisions not working properly 2021-04-27 23:26:06 +02:00
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:45:05 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85214
No description provided.