Mantaflow: Cache not invalidated when moving domain #76911

Closed
opened 2020-05-20 14:58:03 +02:00 by Andrea Coppola · 14 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87

Blender Version
Broken: version: 2.83 (sub 17), branch: master, commit date: 2020-05-19 23:15, hash: dfe8195dfe
Worked: (newest version of Blender that worked as expected)

Short description of error
Hi, In Blender 2.83 beta, can't bake the "Fluid" simulations. So, when I create a new domain, scaling it, the smoke stay in the original position. The same problem appears when I use Liquid similation. Scaling or moving Domain the particles scale and move but don't consider the original position of the flow object. Can't adjust it without bake? How to solve it? How to restart the simulation considering the new Domain dimension and position? liquid.JPG smoke 283.JPG

Exact steps for others to reproduce the error

  • Create a liquid domain and an inflow object within it. Ensure the cache type is set to Replay.
  • Set the domain to show as wireframe in the viewport so you can see the particles within it.
  • Play 20-30 frames and observe particles behaving properly.
  • Move the domain down on the Z axis while keeping the inflow object within it.

Rewind to frame 1 and play again. Note that the fluid positions are still cached and calculated relative to the original domain position.

The only way to fix it is to set cache type to Final, start baking, then free all data, then go back to Replay cache type.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87 **Blender Version** Broken: version: 2.83 (sub 17), branch: master, commit date: 2020-05-19 23:15, hash: `dfe8195dfe` Worked: (newest version of Blender that worked as expected) **Short description of error** Hi, In Blender 2.83 beta, can't bake the "Fluid" simulations. So, when I create a new domain, scaling it, the smoke stay in the original position. The same problem appears when I use Liquid similation. Scaling or moving Domain the particles scale and move but don't consider the original position of the flow object. Can't adjust it without bake? How to solve it? How to restart the simulation considering the new Domain dimension and position? ![liquid.JPG](https://archive.blender.org/developer/F8544798/liquid.JPG) ![smoke 283.JPG](https://archive.blender.org/developer/F8544794/smoke_283.JPG) **Exact steps for others to reproduce the error** - Create a liquid domain and an inflow object within it. Ensure the cache type is set to Replay. - Set the domain to show as wireframe in the viewport so you can see the particles within it. - Play 20-30 frames and observe particles behaving properly. - Move the domain down on the Z axis while keeping the inflow object within it. # Rewind to frame 1 and play again. Note that the fluid positions are still cached and calculated relative to the original domain position. The only way to fix it is to set cache type to Final, start baking, then free all data, then go back to Replay cache type.
Author

Added subscriber: @blenderhighschool

Added subscriber: @blenderhighschool
Author

smoke 283.JPG

![smoke 283.JPG](https://archive.blender.org/developer/F8544802/smoke_283.JPG)
Author

I wondered that, deleting the cache in the panel in Blender, the problem is solved and the particles or the smoke start correctly around the Flow object.
So, I think that this is non a friendly method.
It's OK to remove the Bake buttons and the real time simulations, but maybe you can add a "RESET CACHE" button?
Thanx!
Andrea

I wondered that, deleting the cache in the panel in Blender, the problem is solved and the particles or the smoke start correctly around the Flow object. So, I think that this is non a friendly method. It's OK to remove the Bake buttons and the real time simulations, but maybe you can add a "RESET CACHE" button? Thanx! Andrea

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I don't understand the problem.
Could you provide a simple .blend file and describe the steps to reproduce the problem?

guideline for making bug reports: https://wiki.blender.org/wiki/Process/Bug_Reports

I don't understand the problem. Could you provide a simple .blend file and describe the steps to reproduce the problem? guideline for making bug reports: https://wiki.blender.org/wiki/Process/Bug_Reports

Added subscriber: @Nikhil.Net

Added subscriber: @Nikhil.Net

I can attach a blend file but I see what he is saying, and it is not related to Gas domains only - it also affects liquid domains. Here's what happens and I can replicate it 100% on 2.83 as of current build:

  • Create a liquid domain and an inflow object within it. Ensure the cache type is set to Replay.
  • Set the domain to show as wireframe in the viewport so you can see the particles within it.
  • Play 20-30 frames and observe particles behaving properly.
  • Move the domain down on the Z axis while keeping the inflow object within it.
  • Rewind to frame 1 and play again. Note that the fluid positions are still cached and calculated relative to the original domain position.
  • The only way to fix it is to set cache type to Final, start baking, then free all data, then go back to Replay cache type.

Some button or option to clear the replay cache is what OP is asking for, and I think that's a reasonable request. Or, the replay cache should reset at the start of playback at frame 1 if changes to the domain transform have occurred.

Currently, fiddling with domain settings and changing them back does force a cache reset, but that's not a clean way to handle this use case.

I can attach a blend file but I see what he is saying, and it is not related to Gas domains only - it also affects liquid domains. Here's what happens and I can replicate it 100% on 2.83 as of current build: - Create a liquid domain and an inflow object within it. Ensure the cache type is set to Replay. - Set the domain to show as wireframe in the viewport so you can see the particles within it. - Play 20-30 frames and observe particles behaving properly. - Move the domain down on the Z axis while keeping the inflow object within it. - Rewind to frame 1 and play again. Note that the fluid positions are still cached and calculated relative to the original domain position. - **The only way to fix it is to set cache type to Final, start baking, then free all data, then go back to Replay cache type**. Some button or option to clear the replay cache is what OP is asking for, and I think that's a reasonable request. Or, the replay cache should reset at the start of playback at frame 1 if changes to the domain transform have occurred. Currently, fiddling with domain settings and changing them back does force a cache reset, but that's not a clean way to handle this use case.
Author

Correct Nikhil.
I think that includIng into the final version 2.83 a reset button for the chache or force anyway the chache to reset automatically when restart the animation is a very reasonable solution.
Waiting.
Thank you

Correct Nikhil. I think that includIng into the final version 2.83 a reset button for the chache or force anyway the chache to reset automatically when restart the animation is a very reasonable solution. Waiting. Thank you

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @sebbas

Added subscriber: @sebbas

I wanted to tag @sebbas so he saw this, as he is one of the super-smart physics brains here! 😀

Sebastián,

Take a quick look at my comment above with steps to reproduce and I think you'll see right away what we are talking about.

I wanted to tag @sebbas so he saw this, as he is one of the super-smart physics brains here! 😀 Sebastián, Take a quick look at my comment above with steps to reproduce and I think you'll see right away what we are talking about.
Richard Antalik changed title from Can't adjust the smoke simulation scaling domain in blender 2.83 beta to Mantaflow: Cache not invalidated when moving domain 2020-05-25 11:46:44 +02:00

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

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

Closed as duplicate of #76095

Closed as duplicate of #76095
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
4 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#76911
No description provided.