Colorpicker: Hue is not saved if Saturation is on 0 #88261

Open
opened 2021-05-13 18:53:06 +02:00 by Julien Kaspar · 10 comments
Member

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-05-12 23:52, hash: 06e62adfb8

Short description of error
This is an interesting papercut I noticed a lot. When you start changing the hue of a color but the saturation is on 0, it won't remember that hue if you close and reopen the color picker.
This can be annoying at times, especially when using the Square (SV + H) color picker layout.
My guess is that this is because the values that are actually stored for the color are the RGB values and not the HSV values.
So if a color is (0.5, 0.5, 0.5) and you change the hue, it is meaningless.
But perhaps this can still be improved since other painting applications are actually saving the HSV values and artists would expect Blender to remember what Hue is chosen even if the color is essentially grey.

Exact steps for others to reproduce the error
This can be easily shown by changing the hue on a color with 0 saturation. The 2 hue sliders are of course not actually changing the color but they are also disconnected and not remembered.
But once there is a bit of saturation this is fixed.

2021-05-13 18-50-05.mp4

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-05-12 23:52, hash: `06e62adfb8` **Short description of error** This is an interesting papercut I noticed a lot. When you start changing the hue of a color but the saturation is on 0, it won't remember that hue if you close and reopen the color picker. This can be annoying at times, especially when using the Square (SV + H) color picker layout. My guess is that this is because the values that are actually stored for the color are the RGB values and not the HSV values. So if a color is (0.5, 0.5, 0.5) and you change the hue, it is meaningless. But perhaps this can still be improved since other painting applications are actually saving the HSV values and artists would expect Blender to remember what Hue is chosen even if the color is essentially grey. <video src="https://archive.blender.org/developer/F10095109/2021-05-13_18-50-05.mp4" title="2021-05-13 18-50-05.mp4" controls></video> **Exact steps for others to reproduce the error** This can be easily shown by changing the hue on a color with 0 saturation. The 2 hue sliders are of course not actually changing the color but they are also disconnected and not remembered. But once there is a bit of saturation this is fixed. [2021-05-13 18-50-05.mp4](https://archive.blender.org/developer/F10095109/2021-05-13_18-50-05.mp4)
Author
Member

Added subscriber: @JulienKaspar

Added subscriber: @JulienKaspar

Added subscribers: @ideasman42, @iss

Added subscribers: @ideasman42, @iss

I guess this is papercut, but not sure how complicated to resolve. @ideasman42 do you think this would be possible to implement so we can make this task TODO?

I guess this is papercut, but not sure how complicated to resolve. @ideasman42 do you think this would be possible to implement so we can make this task TODO?
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

I recall seeing that there is a piece of code that assigns epsilon instead of 0 to saturation to prevent this from occurring. I’ll see if I can track it down.

I recall seeing that there is a piece of code that assigns epsilon instead of 0 to saturation to prevent this from occurring. I’ll see if I can track it down.

Fairly sure this was reported before, this was an attempt to resolve this issue although it didn't really work out D9370.

Ensuring some small level of saturation isn't great as it means users can't set the grey colors.

We could handle this as a kind of run-time storage, similar to menu-memory, where a block's unique name + button-identifier is used to store the hue for re-use when the color popup is activated again.

Fairly sure this was reported before, this was an attempt to resolve this issue although it didn't really work out [D9370](https://archive.blender.org/developer/D9370). Ensuring some small level of saturation isn't great as it means users can't set the grey colors. We could handle this as a kind of run-time storage, similar to menu-memory, where a block's unique name + button-identifier is used to store the hue for re-use when the color popup is activated again.

@ideasman42 Thanks for info. Since code is working as intended, do you think we should confirm this task as TODO? Otherwise I will have to close this as feature request.

@ideasman42 Thanks for info. Since code is working as intended, do you think we should confirm this task as TODO? Otherwise I will have to close this as feature request.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

This is a papercut & known issue in my opinion. We generally try to keep such things open in the UI module to not sweep issues under the rug.

This is a papercut & known issue in my opinion. We generally try to keep such things open in the UI module to not sweep issues under the rug.
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:23:28 +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
6 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#88261
No description provided.