Linked collection with smoke simulation cached doesn't work #76401

Closed
opened 2020-05-04 14:23:48 +02:00 by casimir perez · 10 comments

System Information
Operating system: Windows 10
Graphics card: RTX 2070 laptop

Blender Version
Broken: 2.82
Worked: IDK

Short description of error
Linked collection with smoke doesn't seems to load the cache properly or something.

Exact steps for others to reproduce the error

  • Create a scene with a quick effect smoke,
  • Save the file,
  • Bake the simulation.
  • Save the file again,
  • File -> New -> General
  • File -> Link the collection of the another file
    The domain doesn't load the cache
**System Information** Operating system: Windows 10 Graphics card: RTX 2070 laptop **Blender Version** Broken: 2.82 Worked: IDK **Short description of error** Linked collection with smoke doesn't seems to load the cache properly or something. **Exact steps for others to reproduce the error** - Create a scene with a quick effect smoke, - Save the file, - Bake the simulation. - Save the file again, - File -> New -> General - File -> Link the collection of the another file The domain doesn't load the cache
Author

Added subscriber: @casimirp

Added subscriber: @casimirp

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

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

Added subscriber: @mano-wii

Added subscriber: @mano-wii

@casimirp, I can confirm by linking the collection of another file but not when link the collection in another scene. So I edited the description.

@casimirp, I can confirm by linking the collection of another file but not when link the collection in another scene. So I edited the description.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:49 +01:00
Member

It looks like the fluid sim is loading the cache correctly, but the instancing code is not drawing/rendering the data. I'm not familiar with that code though.

It looks like the fluid sim is loading the cache correctly, but the instancing code is not drawing/rendering the data. I'm not familiar with that code though.
Member

Had a closer look again: This appears to be a deliberate "feature" in the drawing code. The fluid sim cache is loaded correctly, but the drawing code explicitly disables drawing of volume data for instanced geometry. I do not know whether that's a design decision (less viewport clutter?), a technical limitation (duplicate smoke caches break perhaps?), or a simple oversight.

@fclem Do you know anything about this?

The !from_dupli here and below disables volume drawing:

const bool draw_volume = !from_dupli &&

Simply removing the flag does not fix it, there are probably other places checking this condition and/or technical reasons that smoke overlay cannot be shown for instances.

Had a closer look again: This appears to be a deliberate "feature" in the drawing code. The fluid sim cache is loaded correctly, but the drawing code explicitly disables drawing of volume data for instanced geometry. I do not know whether that's a design decision (less viewport clutter?), a technical limitation (duplicate smoke caches break perhaps?), or a simple oversight. @fclem Do you know anything about this? The `!from_dupli` here and below disables volume drawing: https://projects.blender.org/blender/blender/src/commit/970ec097e382d28d24923b5970f085591784b31b/source/blender/draw/engines/overlay/overlay_extra.cc#L1612 Simply removing the flag does not fix it, there are probably other places checking this condition and/or technical reasons that smoke overlay cannot be shown for instances.

@LukasTonne This code is only for overlays. Which I think is wanted (we don't want the instanced objects to show data overlays). As to why it doesn't render by the render engine, that is a totally different question.

@LukasTonne This code is only for overlays. Which I think is wanted (we don't want the instanced objects to show data overlays). As to why it doesn't render by the render engine, that is a totally different question.
Member

@fclem Ah sorry, i got that wrong. But looks like the workbench engine (and presumably others) also has a check like this to disable fluid drawing for instances:

if (!(ob->base_flag & BASE_FROM_DUPLI)) {

I've traced it back to this ancient commit. It doesn't give any reasoning, not sure if it can be called a bug or not.
7a693626d6 (diff-def1a4647cacc16a16e0a5aa8ddfc7c032b35339)

@fclem Ah sorry, i got that wrong. But looks like the workbench engine (and presumably others) also has a check like this to disable fluid drawing for instances: https://projects.blender.org/blender/blender/src/commit/970ec097e382d28d24923b5970f085591784b31b/source/blender/draw/engines/workbench/workbench_engine.cc#L130 I've traced it back to this ancient commit. It doesn't give any reasoning, not sure if it can be called a bug or not. https://projects.blender.org/blender/blender/commit/7a693626d63a52acd12e80209b634711154a2f9d#diff-def1a4647cacc16a16e0a5aa8ddfc7c032b35339

I have no idea then. Might just be legacy behavior. It might break older files badly if we change this behavior. The best way to instanciate fluid sim is through the volume object I think.

I have no idea then. Might just be legacy behavior. It might break older files badly if we change this behavior. The best way to instanciate fluid sim is through the volume object I think.
Member

Ok, will consider it a feature then. At least it's neither a nodes nor a physics bug.

Ok, will consider it a feature then. At least it's neither a nodes nor a physics bug.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-07-15 12:00:24 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#76401
No description provided.