Isolate File Encoding Colour Management #58805

Open
opened 2018-12-05 17:45:49 +01:00 by Troy Sobotka · 15 comments

Currently, a pixel pusher with the correct view set for an Apple Display [P3](https://archive.blender.org/developer/P3.txt) Display, ends up baking in the Display [P3](https://archive.blender.org/developer/P3.txt) transform into file encodes due to the way Blender encodes the file based off of the currently selected view.

Solution is to isolate the file encoding from the other output contexts such as displays and views.

Currently, a pixel pusher with the correct view set for an `Apple Display [P3](https://archive.blender.org/developer/P3.txt) Display`, ends up baking in the `Display [P3](https://archive.blender.org/developer/P3.txt)` transform into file encodes due to the way Blender encodes the file based off of the currently selected view. Solution is to isolate the file encoding from the other output contexts such as displays and views.
Author

Added subscriber: @troy_s

Added subscriber: @troy_s

Added subscriber: @brecht

Added subscriber: @brecht

This is not a bug per our bug tracker policy, nor does it have the required information:
https://developer.blender.org/maniphest/task/edit/form/1/

If you want to create a design task and work on this area that's fine, but it's not clear to me what your intent is here.

This is not a bug per our bug tracker policy, nor does it have the required information: https://developer.blender.org/maniphest/task/edit/form/1/ If you want to create a design task and work on this area that's fine, but it's not clear to me what your intent is here.
Author

Intent is that a person who saves a file using a proper transform doesn't end up with the proper file.

That's a bug, no?

Intent is that a person who saves a file using a proper transform doesn't end up with the proper file. That's a bug, no?

No, it's a limitation of the color management implementation, more of a to do item.

The design for this is not obvious as well, which settings are shared between display and output, which OpenColorIO settings or color spaces to use.

No, it's a limitation of the color management implementation, more of a to do item. The design for this is not obvious as well, which settings are shared between display and output, which OpenColorIO settings or color spaces to use.

Added subscriber: @Dogway

Added subscriber: @Dogway

I think currently this behavior only applies to byte type formats (ie EXR half-float unaffected)

I think currently this behavior only applies to byte type formats (ie EXR half-float unaffected)
Author

EXRs are designed to encode any type of data, which may include but is not limited to:

  • scene linear colour data
  • display linear colour data
  • scene nonlinear colour data, typically via a log-like transform
  • display nonlinear colour date
  • linear or nonlinear non-colour data such as depth, normals, cryptomattes, alpha occlusion, etc.

So while you are correct that the current behaviour is for byte encoded data, it would also technically impact EXRs based on the colour space input setting, as the saving of EXRs is based on the in-reference memory state.

For the colour data components, proper transform chains are required for all, even when saving from one already linearized format to another.

In terms of a design, a simple stack of transforms would suffice, with a “default” set via preferences. The preferences would be set by default based on OCIO default roles, and overridden where the audience has set a specific default.

EXRs are designed to encode any type of data, which may include but is not limited to: * scene linear colour data * display linear colour data * scene nonlinear colour data, typically via a log-like transform * display nonlinear colour date * linear or nonlinear non-colour data such as depth, normals, cryptomattes, alpha occlusion, etc. So while you are correct that the _current_ behaviour is for byte encoded data, it would also technically impact EXRs based on the colour space input setting, as the saving of EXRs is based on the in-reference memory state. For the colour data components, proper transform chains are required for all, even when saving from one already linearized format to another. In terms of a design, a simple stack of transforms would suffice, with a “default” set via preferences. The preferences would be set by default based on OCIO default roles, and overridden where the audience has set a specific default.

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

Added subscriber: @WilliamSchilthuis

Added subscriber: @WilliamSchilthuis
Member

Added subscriber: @Stefan_Werner

Added subscriber: @Stefan_Werner

Added subscriber: @Blackx

Added subscriber: @Blackx

Added subscriber: @baoyu

Added subscriber: @baoyu

a pixel pusher with the correct view set for an Apple Display P3 Display, ends up baking in the Display P3 transform into file encodes

For display referred file formats, it's the right strategy. While for exrs, blender as the image producer, should write the gamut metadata(I assume blender already did this since a patch some time ago).
As a recommandation: for the display referred file formats like jpg and pngs, blender should write a "srgb.icc" or "p3.icc" into the image file, since if not, a external composite software would have no clue the image's gamut.

> a pixel pusher with the correct view set for an Apple Display [P3](https://archive.blender.org/developer/P3.txt) Display, ends up baking in the Display [P3](https://archive.blender.org/developer/P3.txt) transform into file encodes For display referred file formats, it's the right strategy. While for exrs, blender as the image producer, should write the gamut metadata(I assume blender already did this since a patch some time ago). As a recommandation: for the display referred file formats like jpg and pngs, blender should write a "srgb.icc" or "p3.icc" into the image file, since if not, a external composite software would have no clue the image's gamut.

Added subscriber: @herbst

Added subscriber: @herbst
Philipp Oeser removed the
Interest
Core
label 2023-02-09 14:43:18 +01:00
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
9 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#58805
No description provided.