Combine HSV node #52772

Closed
opened 2017-09-15 23:29:44 +02:00 by M · 6 comments

Combine HSV node appears to produce inaccurate results.

  1. Open a clean (incl. cache and configs) Blender instance.
  2. Select Cycles Render
  3. Select the cube in the scene and add a material
  4. Use Emission shader as Surface instead of Diffuse (doesn't matter really)
  5. Add Checker texture into color slot of Emission shader
  6. Select color H: 0.750 S: 1.000 V:1.000 as Color 1 in Checker texture node
  7. Add Combine HSV node, enter same values as above into Combine HSV node
  8. Plug in Combine HSV node to Color 2 input of Checker texture
  9. Preview/Render cube

Result: Checker texture appears as shades of purple/pink
Expected: Checker texture should not be visible, should be seen as solid purple color

Render Engine: Cycles
Feature Set: Supported
Device: CPU (where applicable) and GPU (where applicable)
Unexpected result in: Blender 2.71, 2.78c, 2.79 (the tested versions)
Expected result in: Blender 2.70

OS: Ubuntu 16.04

Might be related to: #41287

Combine HSV node appears to produce inaccurate results. 1) Open a clean (incl. cache and configs) Blender instance. 2) Select Cycles Render 3) Select the cube in the scene and add a material 4) Use Emission shader as Surface instead of Diffuse (doesn't matter really) 5) Add Checker texture into color slot of Emission shader 6) Select color H: 0.750 S: 1.000 V:1.000 as Color 1 in Checker texture node 7) Add Combine HSV node, enter same values as above into Combine HSV node 8) Plug in Combine HSV node to Color 2 input of Checker texture 9) Preview/Render cube Result: Checker texture appears as shades of purple/pink Expected: Checker texture should not be visible, should be seen as solid purple color Render Engine: Cycles Feature Set: Supported Device: CPU (where applicable) and GPU (where applicable) Unexpected result in: Blender 2.71, 2.78c, 2.79 (the tested versions) Expected result in: Blender 2.70 OS: Ubuntu 16.04 Might be related to: #41287
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @dlenber

Added subscriber: @dlenber
M changed title from Combine HSV to Combine HSV node 2017-09-15 23:48:51 +02:00
Sergey Sharybin was assigned by Joshua Leung 2017-09-16 07:37:49 +02:00

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Added subscriber: @brecht

Added subscriber: @brecht

This is in fact related on #42888, also 1549fea, c5927cd.

The issue here is that Blender interface considers HSV to be specified in linear space, which means typing (0.75, 1.0, 1.0) will convert color to linear space before storing it in shader. But Combine/Separate HSV operates in linear space, meaning there is no linearization involved when those nodes are converting HSV to RGB value.

This is just how Blender currently works, and there is no simple solution here without causing regressions. So thanks for the report, but it's not really a bug.

P.S. Maybe @brecht would love to revisit this at some rainy day tho :)

This is in fact related on #42888, also 1549fea, c5927cd. The issue here is that Blender interface considers HSV to be specified in linear space, which means typing (0.75, 1.0, 1.0) will convert color to linear space before storing it in shader. But Combine/Separate HSV operates in linear space, meaning there is no linearization involved when those nodes are converting HSV to RGB value. This is just how Blender currently works, and there is no simple solution here without causing regressions. So thanks for the report, but it's not really a bug. P.S. Maybe @brecht would love to revisit this at some rainy day tho :)
Author

Hello Sergey!

Thank you for taking your time to address this issue! Also thank you, your colleagues, all contributors, the bug reporters, the wonderful community and of course the man that started it all, Ton. You guys have given us a tool to express our ideas.

As far as this non-bug goes, I have to say that I don't quite understand what you wrote. Might I suggest that the various HSV input types are renamed until this is addressed (HSV Linear/HSV Non-Linear) or even if it is not addressed at all? This way we, the users, could understand from the UI itself that different results will be obtained from different HSV input types.

However you choose to proceed, don't mistake my suggestion for any critique. Blender is awesome.

As a last request regarding this issue: is there a formula through which I can produce the expected results, ie. I input 0.750 into an input field and through the use of various math nodes I obtain the hue value which will produce the expected results? I'm asking because you seem to understand what this issue is and I still don't despite reading your comment multiple times.

Hello Sergey! Thank you for taking your time to address this issue! Also thank you, your colleagues, all contributors, the bug reporters, the wonderful community and of course the man that started it all, Ton. You guys have given us a tool to express our ideas. As far as this non-bug goes, I have to say that I don't quite understand what you wrote. Might I suggest that the various HSV input types are renamed until this is addressed (HSV Linear/HSV Non-Linear) or even if it is not addressed at all? This way we, the users, could understand from the UI itself that different results will be obtained from different HSV input types. However you choose to proceed, don't mistake my suggestion for any critique. Blender is awesome. As a last request regarding this issue: is there a formula through which I can produce the expected results, ie. I input 0.750 into an input field and through the use of various math nodes I obtain the hue value which will produce the expected results? I'm asking because you seem to understand what this issue is and I still don't despite reading your comment multiple times.
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
2 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#52772
No description provided.