Texture painting uses wrong values from picker #77736

Closed
opened 2020-06-10 20:28:50 +02:00 by Sam Van Hulle · 9 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: 211b6c29f7

Short description of error
Colour picking while painting in the Image Editor commits the linear RGB values as colour managed - which causes their linear counterparts to differ from what we chose.
While this is desirable for colour channels like Base Color, SSS, and Emission, it's the polar opposite of what we need for data channels like Roughness, where we know exactly what linear values we want, and no conversion should ever happen.
It's as simple as placing a dropdown in the colour picker, offering us the choice between linear and display space.

Untitled.png

Exact steps for others to reproduce the error

  1. Create a 32-bit float image data block in the Image Editor, set its mode to Paint.
  2. Since we're painting a 1D data channel, pick a grayscale 'colour' of 0.5
  3. Paint on the canvas. The Image Editor now assumes we want to store what we see.
  4. Switch the Image Editor mode from Paint to View and hold RMB over the gray pixels.
  5. Their colour managed values are 0.5, but their linear values are now 0.214
**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19 **Blender Version** Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: `211b6c29f7` **Short description of error** Colour picking while painting in the Image Editor commits the *linear* RGB values as *colour managed* - which causes their linear counterparts to differ from what we chose. While this is desirable for colour channels like Base Color, SSS, and Emission, it's the polar opposite of what we need for data channels like Roughness, where we know exactly what linear values we want, and no conversion should ever happen. It's as simple as placing a dropdown in the colour picker, offering us the choice between linear and display space. ![Untitled.png](https://archive.blender.org/developer/F8606526/Untitled.png) **Exact steps for others to reproduce the error** 1. Create a 32-bit float image data block in the Image Editor, set its mode to Paint. 1. Since we're painting a 1D data channel, pick a grayscale 'colour' of 0.5 1. Paint on the canvas. The Image Editor now assumes we want to store what we see. 1. Switch the Image Editor mode from Paint to View and hold RMB over the gray pixels. 1. Their colour managed values are 0.5, but their linear values are now 0.214
Author

Added subscriber: @frameshift

Added subscriber: @frameshift

#99082 was marked as duplicate of this issue

#99082 was marked as duplicate of this issue

#88646 was marked as duplicate of this issue

#88646 was marked as duplicate of this issue

Added subscriber: @brecht

Added subscriber: @brecht

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

Changed status from 'Needs Triage' to: 'Archived'
Brecht Van Lommel self-assigned this 2020-06-11 19:45:34 +02:00

This kind of suggestion is outside the scope of the bug tracker:
https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

This kind of suggestion is outside the scope of the bug tracker: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
Author

@brecht I disagree. Feature requests are scoped to obviously missing things that generally would be nice to have - hence that page's reference to Right-Click Select etc.
The only feature request I see here is that mention of a dropdown - which is a mere suggestion on how to fix the error. It's the error I'm reporting - how exactly it gets solved is up to you.
The error at hand is that Blender only allows colour picking in one space. This results in output that's unexpectedly wrong in many cases. To the vast majority of users, that will look like nothing but a bug.

It just dawned on me that it's probably not limited to texture painting: everywhere the colour picker is used, display space coordinates are returned, right? That would make this probably better discussed in #72424.

But I would never call something this essential a feature request.

@brecht I disagree. Feature requests are scoped to obviously missing things that generally would be nice to have - hence that page's reference to Right-Click Select etc. The only feature request I see here is that mention of a dropdown - which is a mere suggestion on how to fix the error. It's the *error* I'm reporting - how exactly it gets solved is up to you. The error at hand is that Blender only allows colour picking in one space. This results in output that's unexpectedly wrong in many cases. To the vast majority of users, that will look like nothing but a bug. It just dawned on me that it's probably not limited to texture painting: everywhere the colour picker is used, display space coordinates are returned, right? That would make this probably better discussed in #72424. But I would never call something this essential a feature request.
Member

Added subscribers: @JamellMoore, @OmarEmaraDev

Added subscribers: @JamellMoore, @OmarEmaraDev
Member

Added subscriber: @Harti

Added subscriber: @Harti
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#77736
No description provided.