Cryptomatte EXR Output Bit Depth should always be 32bit. #88049

Closed
opened 2021-05-05 10:33:08 +02:00 by Saku Partamies · 18 comments

System Information
Operating system: Windows 10
Graphics card: RTX 2080

Blender Version
Broken: 2.92 release

Short description of error

I am not sure if this is considered as a bug, but as it is inconsistency in EXR file saving I report it here.

If Half Float format is selected in EXR output Cryptomatte layers are saved as 16bit , but Cryptomatte must be 32bit to be usable. This should follow same logic as Z-Depth which is always saved as 32bit even if the EXR setting is Half Float (16bit). So, Cryptomatte layers should be possible to be saved as 32bit in EXR no matter what is the main bit depth of the output file. This would be expected to avoid pipeline problems from 3D to compositing.

Attached image shows saved layer bit depths.

Exact steps for others to reproduce the error

  1. Open attached blender_render_output_bit-depth.blend -file and render animation. File has just 1 frame animation range prepared for saving example files.
  2. It saves 2 files to /tmp/ -folder: One from Output Properties and one from Compositor File Output
  3. Open rendered files in image viewer that allows to see information of saved layers in EXR files (DJV).
  4. See bit depths of saved layers in images to see that Z-Depth is 32bit in Half Float image and Cryptomatte is 16bit.
    blender_render_output_bit-depth_layers_Cryptomatte.jpg
    blender_render_output_bit-depth.blend
**System Information** Operating system: Windows 10 Graphics card: RTX 2080 **Blender Version** Broken: 2.92 release **Short description of error** I am not sure if this is considered as a bug, but as it is inconsistency in EXR file saving I report it here. If Half Float format is selected in EXR output Cryptomatte layers are saved as 16bit , but Cryptomatte must be 32bit to be usable. This should follow same logic as Z-Depth which is always saved as 32bit even if the EXR setting is Half Float (16bit). So, Cryptomatte layers should be possible to be saved as 32bit in EXR no matter what is the main bit depth of the output file. This would be expected to avoid pipeline problems from 3D to compositing. Attached image shows saved layer bit depths. **Exact steps for others to reproduce the error** 1) Open attached **blender_render_output_bit-depth.blend** -file and render animation. File has just 1 frame animation range prepared for saving example files. 2) It saves 2 files to /tmp/ -folder: One from Output Properties and one from Compositor File Output 3) Open rendered files in image viewer that allows to see information of saved layers in EXR files (DJV). 4) See bit depths of saved layers in images to see that Z-Depth is 32bit in Half Float image and Cryptomatte is 16bit. ![blender_render_output_bit-depth_layers_Cryptomatte.jpg](https://archive.blender.org/developer/F10054561/blender_render_output_bit-depth_layers_Cryptomatte.jpg) [blender_render_output_bit-depth.blend](https://archive.blender.org/developer/F10054563/blender_render_output_bit-depth.blend)
Author

Added subscriber: @SakuP

Added subscriber: @SakuP

#98986 was marked as duplicate of this issue

#98986 was marked as duplicate of this issue
Saku Partamies changed title from Cryptomatte EXR Output Bit Depth should be always 32bit. to Cryptomatte EXR Output Bit Depth should always be 32bit. 2021-05-05 10:38:58 +02:00
Member

Added subscribers: @Jeroen-Bakker, @brecht, @lichtwerk

Added subscribers: @Jeroen-Bakker, @brecht, @lichtwerk
Philipp Oeser self-assigned this 2021-05-05 11:54:27 +02:00
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

I can do the change, but would like additional confirmation from @Jeroen-Bakker and/or @brecht if this is the way to go.
(not this originally came up in #87988 (Open EXR layer bit depths differ in Output Properties and Compositor File Output))

I can do the change, but would like additional confirmation from @Jeroen-Bakker and/or @brecht if this is the way to go. (not this originally came up in #87988 (Open EXR layer bit depths differ in Output Properties and Compositor File Output))
Member

Cryptomatte hashes can only be stored in 32 bits and with lossless compression or no compression enabled. Otherwise that are unusable.

Now that we have the metadata we can make this easier to detect. Haven’t looked at the technicalities of this but would be a good addition

Cryptomatte hashes can only be stored in 32 bits and with lossless compression or no compression enabled. Otherwise that are unusable. Now that we have the metadata we can make this easier to detect. Haven’t looked at the technicalities of this but would be a good addition
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

I agree metadata would be better than, doing it based purely on pass names is not going to work in general.

But even that is not possible to make fully automatic, you can't always guess form the node setup if it's color or data. So every input still needs manual control I think, though it could auto detect by default for the most common cases.

I agree metadata would be better than, doing it based purely on pass names is not going to work in general. But even that is not possible to make fully automatic, you can't always guess form the node setup if it's color or data. So every input still needs manual control I think, though it could auto detect by default for the most common cases.
Philipp Oeser removed their assignment 2021-08-30 12:27:38 +02:00
Member

Think I wont have time for this, will step down since there is another patch around.

Think I wont have time for this, will step down since there is another patch around.

Added subscriber: @Carlosan

Added subscriber: @Carlosan

Added subscriber: @PierreRisch

Added subscriber: @PierreRisch
Member

Added subscribers: @Renderbicks, @PratikPB2123

Added subscribers: @Renderbicks, @PratikPB2123

+++ Adding important note +++

Besides 32bit Cryptomattes have to be saved losslessly. Cryptomattes will be broken and useless when saved to DWAA/B.

If a mix of DWAA/B and lossless isn't possible in a MultiLayer OpenEXR, Cryptomates must be saved separately (what Redshift is doing) in a lossless format.

**+++ Adding important note +++** Besides 32bit Cryptomattes have to be saved losslessly. Cryptomattes will be broken and useless when saved to DWAA/B. If a mix of DWAA/B and lossless isn't possible in a MultiLayer OpenEXR, Cryptomates must be saved separately (what Redshift is doing) in a lossless format.

Added subscriber: @Mots

Added subscriber: @Mots

This issue was referenced by cb9b6cefb3

This issue was referenced by cb9b6cefb3c01d3f759a16252aca59fa4607dd24

This issue was referenced by df751516e1

This issue was referenced by df751516e1f64bbc78b02582c631c3cdd0bc032d

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sergey Sharybin self-assigned this 2022-09-01 10:38:10 +02:00

This issue was referenced by 40194f7219

This issue was referenced by 40194f72191fc629b96ce619540b3f0f5da0ccfc
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
12 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#88049
No description provided.