Del #63163

Closed
opened 2019-03-31 20:55:21 +02:00 by Troy Sobotka · 24 comments

Del

Del
Author

Added subscriber: @troy_s

Added subscriber: @troy_s

Added subscriber: @brecht

Added subscriber: @brecht

Please use the bug submission template and follow the reporting guidelines:
https://developer.blender.org/maniphest/task/edit/form/1/

Particularly, mention the exact Blender version and provide exact steps to reproduce the problem.

Please use the bug submission template and follow the reporting guidelines: https://developer.blender.org/maniphest/task/edit/form/1/ Particularly, mention the exact Blender version and provide exact steps to reproduce the problem.
Author

This comment was removed by @troy_s

*This comment was removed by @troy_s*

Added subscriber: @intracube

Added subscriber: @intracube

Screenshot was from me.
extra details:

System Information
Operating system: SUSE Leap 15.0
Graphics card: NVidia GTX 560ti (official drivers)

Blender Version
Broken: 2.80, a4869df4c9, x86_64 linux, 2019-03-31 (buildbot)
Worked: -

Short description of error
Using OCIO configurations and LUTS besides the ones officially bundled (eg filmic_blender) causes the rendered 3d viewport values to skew - especially visible towards display referred peak values. Mid ranges seem unaffected.

note: This is only a realtime rendered 3d viewport issue. Applies to Cycles/Eevee. Final renders are unaffected.

Exact steps for others to reproduce the error

  • download blender_filmic and install: https://github.com/sobotka/filmic-blender
  • create an emission shader on a plane in Cycles or Eevee. set a value of (1.00, 0.00, 0.00)
  • do a final render
  • set a 3d viewport to rendered mode
  • compare outputs
  • note that 3d rendered viewport hits around (248, 1, 1) instead of (255, 0, 0)
Screenshot was from me. extra details: **System Information** Operating system: SUSE Leap 15.0 Graphics card: NVidia GTX 560ti (official drivers) **Blender Version** Broken: 2.80, a4869df4c9d2, x86_64 linux, 2019-03-31 (buildbot) Worked: - **Short description of error** Using OCIO configurations and LUTS besides the ones officially bundled (eg filmic_blender) causes the rendered 3d viewport values to skew - especially visible towards display referred peak values. Mid ranges seem unaffected. note: This is only a realtime rendered 3d viewport issue. Applies to Cycles/Eevee. Final renders are unaffected. **Exact steps for others to reproduce the error** - download blender_filmic and install: https://github.com/sobotka/filmic-blender - create an emission shader on a plane in Cycles or Eevee. set a value of (1.00, 0.00, 0.00) - do a final render - set a 3d viewport to rendered mode - compare outputs - note that 3d rendered viewport hits around (248, 1, 1) instead of (255, 0, 0)

I can repro the issue in ociodisplay v1.1.0, but not in master. So it seems to be a bug in OpenColorIO that we can fix by upgrading.

v1.1.0 is the latest official release and master is v2 in development, with API breaking changes and potential instability. So upgrading is not entirely trivial. Some info here:
https://github.com/imageworks/OpenColorIO/blob/master/docs/tsc/meetings/2019-03-04.md

I can repro the issue in `ociodisplay` v1.1.0, but not in master. So it seems to be a bug in OpenColorIO that we can fix by upgrading. v1.1.0 is the latest official release and master is v2 in development, with API breaking changes and potential instability. So upgrading is not entirely trivial. Some info here: https://github.com/imageworks/OpenColorIO/blob/master/docs/tsc/meetings/2019-03-04.md
Brecht Van Lommel changed title from Real-time Viewer Broken GPU Transforms to Inaccurate GPU color management for custom OCIO config 2019-04-02 20:01:52 +02:00
Troy Sobotka changed title from Inaccurate GPU color management for custom OCIO config to Inaccurate GPU color management 2019-04-02 21:34:43 +02:00
Brecht Van Lommel changed title from Inaccurate GPU color management to Inaccurate GPU color management for custom OCIO config 2019-04-02 21:50:14 +02:00

As far as I know this does not happen with the builtin config, so please leave the more descriptive title.

As far as I know this does not happen with the builtin config, so please leave the more descriptive title.
Author

This comment was removed by @troy_s

*This comment was removed by @troy_s*

So a case where a user has specified a custom config rather than the Blender builtin one.

So a case where a user has specified a custom config rather than the Blender builtin one.
Author

This comment was removed by @troy_s

*This comment was removed by @troy_s*

The config.ocio and its default sRGB transform as bundled with Blender work fine as far as I can tell. Perhaps because it has a larger output range than 0..1 which somehow sidesteps the problem.

Editing the builtin config to use a different sRGB transform could of course show the bug, but then it's a different config.

Since the same bug happens in ociodisplay with your filmic config, it seems the bug is in OpenColorIO and not Blender. I don't see any indication of the Blender GPU code being broken. There may be a way to work around the bug in your filmic config, so that it also works in other apps integrating OpenColorIO that presumably have the same problem if they support GPU acceleration.

We're not likely to spend time fixing a bug in OpenColorIO v1 if v2 is coming out soon enough.

The config.ocio and its default sRGB transform as bundled with Blender work fine as far as I can tell. Perhaps because it has a larger output range than 0..1 which somehow sidesteps the problem. Editing the builtin config to use a different sRGB transform could of course show the bug, but then it's a different config. Since the same bug happens in `ociodisplay` with your filmic config, it seems the bug is in OpenColorIO and not Blender. I don't see any indication of the Blender GPU code being broken. There may be a way to work around the bug in your filmic config, so that it also works in other apps integrating OpenColorIO that presumably have the same problem if they support GPU acceleration. We're not likely to spend time fixing a bug in OpenColorIO v1 if v2 is coming out soon enough.
Author

This comment was removed by @troy_s

*This comment was removed by @troy_s*

Well, I have clear evidence of the bug being in OpenColorIO since it's also broken in ociodisplay. You only seem to be speculating that it must work because it's a basic transform. So the conclusion to me is clear, which is that it's not a bug in the Blender code unless someone proves otherwise.

Well, I have clear evidence of the bug being in OpenColorIO since it's also broken in `ociodisplay`. You only seem to be speculating that it must work because it's a basic transform. So the conclusion to me is clear, which is that it's not a bug in the Blender code unless someone proves otherwise.

In #63163#653815, @brecht wrote:
The config.ocio and its default sRGB transform as bundled with Blender work fine as far as I can tell. Perhaps because it has a larger output range than 0..1 which somehow sidesteps the problem.

Yep, I modified the bundled srgb.spi1d to match the same range as the one provided by blender_filmic and the same issue then appears. So as you say, possibly the extension at the top end of the LUT hides the issue.

Since the same bug happens in ociodisplay with your filmic config, it seems the bug is in OpenColorIO and not Blender.

I can't reproduce the bug with ociodisplay set to Image ColorSpace->sRGB OETF + Transform->sRGB OETF - but, if ociodisplay is left with the default ('Linear') Image ColorSpace, then OCIO v1.1.0 does have reduced highlights, which look suspiciously similar to the issue in Blender, although not exactly the same values (240, 1, 1).

OCIO master (2019-04-04) hits peak display values and looks correct:

ociodisplay_1.1.0_vs_master_2019-04-04.png

But if this is related, why is Blender using the Linear path for display instead of sRGB/sRGB?

Source test image:
colour_block_testchart.png

> In #63163#653815, @brecht wrote: > The config.ocio and its default sRGB transform as bundled with Blender work fine as far as I can tell. Perhaps because it has a larger output range than 0..1 which somehow sidesteps the problem. Yep, I modified the bundled srgb.spi1d to match the same range as the one provided by blender_filmic and the same issue then appears. So as you say, possibly the extension at the top end of the LUT hides the issue. > Since the same bug happens in `ociodisplay` with your filmic config, it seems the bug is in OpenColorIO and not Blender. I can't reproduce the bug with ociodisplay set to `Image ColorSpace->sRGB OETF + Transform->sRGB OETF` - but, if ociodisplay is left with the default ('Linear') Image ColorSpace, then OCIO v1.1.0 does have reduced highlights, which look suspiciously similar to the issue in Blender, although not exactly the same values (240, 1, 1). OCIO master (2019-04-04) hits peak display values and looks correct: ![ociodisplay_1.1.0_vs_master_2019-04-04.png](https://archive.blender.org/developer/F6911799/ociodisplay_1.1.0_vs_master_2019-04-04.png) But if this is related, why is Blender using the Linear path for display instead of sRGB/sRGB? Source test image: ![colour_block_testchart.png](https://archive.blender.org/developer/F6911809/colour_block_testchart.png)

But if this is related, why is Blender using the Linear path for display instead of sRGB/sRGB?

Rendering works in Linear color space, that's what we need to convert from.

> But if this is related, why is Blender using the Linear path for display instead of sRGB/sRGB? Rendering works in Linear color space, that's what we need to convert from.

Just tried v1.1.1 as it was released yesterday. Unfortunately the same behaviour as 1.1.0.

Just tried v1.1.1 as it was released yesterday. Unfortunately the same behaviour as 1.1.0.
Author

This comment was removed by @troy_s

*This comment was removed by @troy_s*

Huh, @intracube posted a screenshot confirming it doesn't work in ociodisplay?

If sRGB -> sRGB works that's irrelevant, that's not the transform needed and it's a no-op.

Huh, @intracube posted a screenshot confirming it doesn't work in ociodisplay? If sRGB -> sRGB works that's irrelevant, that's not the transform needed and it's a no-op.
Author

This comment was removed by @troy_s

*This comment was removed by @troy_s*

If you select the same color space for Image ColorSpace and Transform in ociodisplay, like Image ColorSpace->sRGB OETF + Transform->sRGB OETF, that's a no-op.

Please stop wasting my time and make an effort to understand what is going on here, instead of claiming I'm wrong without any logical explanation.

If you select the same color space for Image ColorSpace and Transform in ociodisplay, like `Image ColorSpace->sRGB OETF + Transform->sRGB OETF`, that's a no-op. Please stop wasting my time and make an effort to understand what is going on here, instead of claiming I'm wrong without any logical explanation.
Troy Sobotka changed title from Inaccurate GPU color management for custom OCIO config to Del 2019-04-04 22:37:16 +02:00
Author

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Added subscriber: @Acrivec

Added subscriber: @Acrivec

Wow, a rage quit in bugtracker.

Wow, a rage quit in bugtracker.
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
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#63163
No description provided.