Mantaflow gas emission by texture image sequences not updating #71713
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#71713
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362 64 Bits
Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-09 10:40, hash:
002f5b826c
Worked: 2.79b latest
Short description of error
Auto refresh for image sequences broken (image texture node, texture for smoke masking)
Video example bug.mp4
Exact steps for others to reproduce the error
Open:
bug.blend
Bake Image Sequence
(if you have not generated the images before).Added subscriber: @ponomarovmax
Added subscriber: @JacquesLucke
Changed status from 'Needs Triage' to: 'Needs User Info'
Is this still an issue with Mantaflow in the newest builds from https://builder.blender.org/download/?
Yes.
As result: different frame picked "randomly" as texture without animation during playback.
After blender restart sometimes other frame could be loaded.
Looks like it takes frame that was on timeline whan blender saved file and closed.
P.S.
Most common way to use dynamic paint texture to control smoke density - some kind of car crash with dynamic fire and smoke source based on cars collision.
With blender 2.80+ it's impossible because of broken image texture caching system.
P.S.S.
New video demo with newest blender version.
caching_bug.mp4
Changed status from 'Needs User Info' to: 'Needs Triage'
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm.
Used to work on the previous system.
Added subscriber: @BeckersC
Added subscriber: @lichtwerk
Looked into this (this has taken more time than anticipated, learned one thing or the other) and I think I have a fix.
Auto refresh for image sequences not updatesto Mantaflow gas emission by texture image sequences not updatingChanged status from 'Confirmed' to: 'Needs User Info'
Added subscriber: @sebbas
OK, after a lot of digging (and being on the wrong track for quite some time), it turns out this is actually working.
Taking a step back and contemplating:
I was carefully checking depsgraph refreshes of textures, images and ImageUser framenumbers and even made a patch to force-refresh the ImageUsers framenumber for the texture used in the fluid flow:
(but this was my fault not paying attention to enable
Auto Refresh
in the used texture from the texture tab [about 1:30 in the first video], each image use has its own ImageUser, so it is not enough to enableAuto Refresh
in the Shader Editor on that sequence -- and without this option ON, the dependency graph will not update the framenumber on this ImageUser. I can hardly think of a situation where I would not want to update the image sequence, so I think this option should actually be always ON and hidden, but this is a whole different story)P1888: T71713_snippet
But again: After all, this patch is not neccessary and I have made sure that this is working from scratch in 2.92 and also from the file
bug.blend
posted hereIn 2.92:
bug.blend
optionally (for a bit more reliable cache handling/invalidation)
WARNING: in both cases it might be mandatory to restart blender and/or removing the cache directory before the bake/replay cache actually works correctly.
This does not seem to be related to the use of image sequences as flow emission source though and can be seen in other situations as well (@sebbas: correct me if I am wrong)
So since this was a bit back and forth, I would like others to confirm this is actually working for them as well [from scratch or from the steps I have provided after opening the example file posted here] before closing this report.
@ponomarovmax : can you confirm?
@lichtwerk Tried to repeat bug with original bug.blend file (also used your last recomendations):
Then I created new scene (same setup).
Baked new dynamic paint images, created Smoke physics setup with Texture.
And... it actualy worked as it expected.
Then I enabled Dissolve in Dyn. Paint, rebaked images again and flow rate changed as it expected.
I think with Mantaflow implementation something changed and now everything works fine (original bug was found in old blender fluid engine).
Now seems everything works OK.
Changed status from 'Needs User Info' to: 'Resolved'
Thx getting back!
Lets close this then, if issues creep up again, please keep reporting!