Cryptomatte layers saved incorrectly with EXR DWA compression #96933
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
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#96933
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.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15
Blender Version
Broken: version: 3.2.0 Alpha, branch: master, commit date: 2022-03-30 23:25, hash:
8466fd4bd1
Description of error
Cryptomatte layers on a multilayer EXR (DWA) file will be saved as lossy which makes them unusable. Lossy compression in DWA is only meant for RGB layers.
Lossless cryptomatte (ZIP)
Lossy Cryptomatte (DWAB)
Apparently DWA handles these type of exceptions based on hardcoded layer names .
There's also the possibility of setting custom rules in the file. More info can be read in the commented section at EXR's ImfDwaCompressor.cpp file.
Cryptomatte example file in DWAB
Cryptomatte Example.zip
Added subscriber: @zanqdo
Added subscriber: @emilstefx
Added subscriber: @TomsSeglins
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Needs User Info'
Can you add simple .blend file?
A simple blend file of what?
Added subscriber: @PratikPB2123
Changed status from 'Needs User Info' to: 'Confirmed'
Thanks for file. I wasn't sure how to check, since output did look correct.
Added subscriber: @Raimund58
Added subscriber: @SteffenD
This issue was referenced by
cb9b6cefb3
This issue was referenced by
df751516e1
Changed status from 'Confirmed' to: 'Resolved'
This issue was referenced by
40194f7219
This issue was referenced by
06005b0870
Blender Version - 4.0.0 Beta
Just wanted to mention that this issue still appears to exist when writing an EXR with DWA compression from the File Output node.
If you save a multichannel EXR from the render buffer using
image > save as
, the file is written correctly and the Cryptomatte channel is not compressed. I've included a simple example to illustrate this.However, If the same render is saved via the FileOutput node, the cryptomatte channel is compressed like the initial example provided by @zanqdo.
I see there's some discussion about channel naming allowing this to flag if a channel is deemed compression worthy? Perhaps there is some trick to making this work with specific naming from the FileOutput node? As the channel naming structure is technically different between the images.
google group discussion
psyop discussion
I am using Nuke to read the resulting EXR.
Unfortunately, there is no trick to achieve lossless output for those passes in the file output node without modifying the code.
Ideally the node will somehow detect passes which needs to be stored lossless. Although, it might also be good to implement a checkbox on the node inputs to allow lossless storage of generated data.
That would be quite welcomed