[Mantaflow] Wrong fluid mesh position #72644

Closed
opened 2019-12-22 17:09:44 +01:00 by Pavel Blend · 24 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: AMD Radeon HD 7560D ATI Technologies Inc. 4.5.13399 Core Profile Context 15.200.1062.1004

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2019-12-20 00:09, hash: c3782ebf44
Worked: (optional)

Short description of error
The liquid mesh has an incorrect position.

Exact steps for others to reproduce the error
If you bake the particles in this scene and then bake the mesh, you can see this error:
test_02.zip

**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: AMD Radeon HD 7560D ATI Technologies Inc. 4.5.13399 Core Profile Context 15.200.1062.1004 **Blender Version** Broken: version: 2.82 (sub 6), branch: master, commit date: 2019-12-20 00:09, hash: `c3782ebf44` Worked: (optional) **Short description of error** The liquid mesh has an incorrect position. **Exact steps for others to reproduce the error** If you bake the particles in this scene and then bake the mesh, you can see this error: [test_02.zip](https://archive.blender.org/developer/F8240463/test_02.zip)
Author

Added subscriber: @Pavel_Blend

Added subscriber: @Pavel_Blend

#76967 was marked as duplicate of this issue

#76967 was marked as duplicate of this issue

#76076 was marked as duplicate of this issue

#76076 was marked as duplicate of this issue

#73703 was marked as duplicate of this issue

#73703 was marked as duplicate of this issue
Author

01.jpg

![01.jpg](https://archive.blender.org/developer/F8240473/01.jpg)

Added subscriber: @juang3d

Added subscriber: @juang3d

This is happening because the domain pivot is not in the correct place.

I don't remember if it has to be in the geometry center or in the world center, but if you center the pivot and rebake the sim, everything should be in the correct place.

Having mantaflow to counteract a wrongly placed pivot is more like an improvement (a very welcome one, and possibly an easy one) than a bug IMHO :)

This is happening because the domain pivot is not in the correct place. I don't remember if it has to be in the geometry center or in the world center, but if you center the pivot and rebake the sim, everything should be in the correct place. Having mantaflow to counteract a wrongly placed pivot is more like an improvement (a very welcome one, and possibly an easy one) than a bug IMHO :)

Added subscriber: @Firepal

Added subscriber: @Firepal

image.png

![image.png](https://archive.blender.org/developer/F8242697/image.png)

Added subscribers: @sebbas, @mano-wii

Added subscribers: @sebbas, @mano-wii

If this worked in the previous fluid code, this could be considered a regression.
But it may also be a known limitation (in this case it would be nice to be described in the manual ).

@sebbas, what do you think, bug or limitation?

If this worked in the previous fluid code, this could be considered a regression. But it may also be a known limitation (in this case it would be nice to be described in the [manual ](https://docs.blender.org/manual/en/latest/physics/fluid/types/domain.html)). @sebbas, what do you think, bug or limitation?

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

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

I tested on the system from previous versions (without mantaflow), and the fluid position corresponded to the position of the objects used, even with the origin of the domain not in the center of it.
So it's a regression.

I tested on the system from previous versions (without mantaflow), and the fluid position corresponded to the position of the objects used, even with the origin of the domain not in the center of it. So it's a regression.

Added subscriber: @PGT2

Added subscriber: @PGT2

I had the problem as well with latest builds, i found a manual fix that i think would be easy to code.
Before baking set the domain origin to the world center.
Then in edit mode adjust size and position of where you want your domain to be.

After the baking is the done set the domain origin to center of volume (in later frames where it still a a cube, ea use a past frame or frame -1).
(One might use empties for those 2 positions if one needs to bake more then once).

Of course it should be solved in code, but the displacement is exactly solved with this workaround and might be coded as well

I had the problem as well with latest builds, i found a manual fix that i think would be easy to code. Before baking set the domain origin to the world center. Then in edit mode adjust size and position of where you want your domain to be. After the baking is the done set the domain origin to center of volume (in later frames where it still a a cube, ea use a past frame or frame -1). (One might use empties for those 2 positions if one needs to bake more then once). Of course it should be solved in code, but the displacement is exactly solved with this workaround and might be coded as well

Added subscriber: @NahuelBelich

Added subscriber: @NahuelBelich

Added subscribers: @ScottVanKirk, @ankitm

Added subscribers: @ScottVanKirk, @ankitm
Member

#76312 (Liquid simulation Particle/Mesh vanishes - Only Domain is rendered)
gets worse after render. Confirmed separately.

#76312 (Liquid simulation Particle/Mesh vanishes - Only Domain is rendered) gets worse after render. Confirmed separately.
Member

Added subscriber: @Vyach

Added subscriber: @Vyach

Added subscriber: @CrossmindStudio

Added subscriber: @CrossmindStudio

to get the fluid mesh at right position, the original has to in the exact center of the domain object.
Else the mesh is offset by a margin of origin offset( from center).

to get the fluid mesh at right position, the original has to in the exact center of the domain object. Else the mesh is offset by a margin of origin offset( from center).
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jacques Lucke self-assigned this 2020-05-27 13:06:40 +02:00
Member

This has been fixed by b44101950d.

This has been fixed by b44101950d.
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
No Assignees
11 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#72644
No description provided.