Mantaflow: changing 'upres' value for noise destroys sim bake (using 'modular' cache) #78243

Closed
opened 2020-06-25 09:19:49 +02:00 by Mark Spink · 16 comments

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

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: 211b6c29f7
Worked: 2.82a and previous versions

Short description of error
[Any change from the default upres value in Domain settings kills/frees the sim bake]

Exact steps for others to reproduce the error
[Bake the attached, then check 'noise'; if you then change the upres setting at all you will lose the bake, and have to re-bake before you can bake the noise pass.

I don't know if this is a fault or a feature, but it certainly isn't an improvement to the 'modular' cache workflow (if anything it's back to the old 2.79/2.8 smoke sim 'do everything at once, and if it's not what you want- do the whole thing again' type of workflow). And it's not how the upres setting behaved in 2.82a or previous incarnations of Mantaflow in Blender.

I'd say this is a great shame if it is a feature, as the ability to bake the sim, then try different upres settings was, what I previously thought was fantastic, compared to the 'old' smoke sim.

NoiseUpRes_KillsBake_2.83.mp4

Here's the difference between 2.82a (first) and 2.83-

[{F8642311}]

I also tried this in 2.9 Alpha (24th June build) and it behaves the same as 2.83 release version, i.e. not like 2.82a or previous versions.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14 **Blender Version** Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: `211b6c29f7` Worked: 2.82a and previous versions **Short description of error** [Any change from the default upres value in Domain settings kills/frees the sim bake] **Exact steps for others to reproduce the error** [Bake the attached, then check 'noise'; if you then change the upres setting at all you will lose the bake, and have to re-bake before you can bake the noise pass. I don't know if this is a fault or a feature, but it certainly isn't an improvement to the 'modular' cache workflow (*if anything it's back to the old 2.79/2.8 smoke sim 'do everything at once, and if it's not what you want- do the whole thing again' type of workflow*). And it's not how the upres setting behaved in 2.82a or previous incarnations of Mantaflow in Blender. I'd say this is a great shame if it *is* a feature, as the ability to bake the sim, then try different upres settings was, what I previously thought was fantastic, compared to the 'old' smoke sim. [NoiseUpRes_KillsBake_2.83.mp4](https://archive.blender.org/developer/F8642321/NoiseUpRes_KillsBake_2.83.mp4) Here's the difference between 2.82a (first) and 2.83- [{[F8642311](https://archive.blender.org/developer/F8642311/UpresFactorDestroysBake_2.83.blend)}] I also tried this in 2.9 Alpha (24th June build) and it behaves the same as 2.83 release version, i.e. not like 2.82a or previous versions.
Author

Added subscriber: @marks-4

Added subscriber: @marks-4

#77713 was marked as duplicate of this issue

#77713 was marked as duplicate of this issue
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

Not totally sure, but to me clearing the sim also seems unneccessary?

@sebbas: shouldnt the following actually be enough?
P1489: #78243 proposed solution



diff --git a/source/blender/makesrna/intern/rna_fluid.c b/source/blender/makesrna/intern/rna_fluid.c
index b4fa791362f..5bb727c739b 100644
--- a/source/blender/makesrna/intern/rna_fluid.c
+++ b/source/blender/makesrna/intern/rna_fluid.c
@@ -1547,7 +1547,7 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna)
                            "The noise simulation is scaled up by this factor (compared to the "
                            "base resolution of the domain)");
   RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
-  RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_domain_reset");
+  RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_noisecache_reset");
 
   prop = RNA_def_property(srna, "noise_type", PROP_ENUM, PROP_NONE);
   RNA_def_property_enum_sdna(prop, NULL, "noise_type");
@@ -1555,7 +1555,7 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna)
   RNA_def_property_ui_text(
       prop, "Noise Method", "Noise method which is used during the high-res simulation");
   RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
-  RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_domain_reset");
+  RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_noisecache_reset");
 
   prop = RNA_def_property(srna, "use_noise", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_DOMAIN_USE_NOISE);

It is a bit hard to test atm, since after the VDB cache commits, the noise baking seems to be broken...?
Anyways, I tested this on a commit before 9fe64948ab, and it seems to work fine (I might be missing something though...)

Not totally sure, but to me clearing the sim also seems unneccessary? @sebbas: shouldnt the following actually be enough? [P1489: #78243 proposed solution](https://archive.blender.org/developer/P1489.txt) ``` diff --git a/source/blender/makesrna/intern/rna_fluid.c b/source/blender/makesrna/intern/rna_fluid.c index b4fa791362f..5bb727c739b 100644 --- a/source/blender/makesrna/intern/rna_fluid.c +++ b/source/blender/makesrna/intern/rna_fluid.c @@ -1547,7 +1547,7 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna) "The noise simulation is scaled up by this factor (compared to the " "base resolution of the domain)"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); - RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_domain_reset"); + RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_noisecache_reset"); prop = RNA_def_property(srna, "noise_type", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "noise_type"); @@ -1555,7 +1555,7 @@ static void rna_def_fluid_domain_settings(BlenderRNA *brna) RNA_def_property_ui_text( prop, "Noise Method", "Noise method which is used during the high-res simulation"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); - RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_domain_reset"); + RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_noisecache_reset"); prop = RNA_def_property(srna, "use_noise", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_DOMAIN_USE_NOISE); ``` It is a bit hard to test atm, since after the VDB cache commits, the noise baking seems to be broken...? Anyways, I tested this on a commit before 9fe64948ab, and it seems to work fine (I might be missing something though...)
Member

In #78243#965562, @lichtwerk wrote:
It is a bit hard to test atm, since after the VDB cache commits, the noise baking seems to be broken...?

see #78272 (Mantaflow - Bake not showing (when noise is used))

> In #78243#965562, @lichtwerk wrote: > It is a bit hard to test atm, since after the VDB cache commits, the noise baking seems to be broken...? see #78272 (Mantaflow - Bake not showing (when noise is used))
Author

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Mark Spink self-assigned this 2020-07-02 03:05:20 +02:00
Author

This comment was removed by @marks-4

*This comment was removed by @marks-4*
Author

Marked as resolved by mistake! Sorry! Can't change it back to 'open'...

Marked as resolved by mistake! Sorry! Can't change it back to 'open'...
Member

Changed status from 'Resolved' to: 'Confirmed'

Changed status from 'Resolved' to: 'Confirmed'
Added subscriber: @Iago-Diogo-de-Vasconcelos-Mota
Member

Added subscribers: @YuraKharitonow, @Arken, @JacquesLucke

Added subscribers: @YuraKharitonow, @Arken, @JacquesLucke

Added subscriber: @Lazza

Added subscriber: @Lazza

I've tried today to play with resolutions of particles in liquid and noise in gas and after the commit by @sebbas in https://developer.blender.org/rBdbcc74f8010f685156cf6416454a772f66fb6dfa he seems to have fixed every cache problem in mantaflow. Go take a look and mark as Resolved.

I've tried today to play with resolutions of particles in liquid and noise in gas and after the commit by @sebbas in https://developer.blender.org/rBdbcc74f8010f685156cf6416454a772f66fb6dfa he seems to have fixed every cache problem in mantaflow. Go take a look and mark as Resolved.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Ok good, closing now!

Ok good, closing now!
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
7 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#78243
No description provided.