Color Picker in texture mode sampling incorrect values (sample merged OFF, sampling from another object) #88300
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#88300
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 462.31
Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash:
02948a2cab
Worked: ?
Short description of error
The color picker in "Texture Painting" mode seems to only sample the correct color when the look is set to Noneunder the ColorManagement->Look->"None" and if the Viewport Shading->RenderPass is set to DiffuseColor.
Otherwise, the color values are simply wrong, they are either too bright or too dark.
In the provided scene the issue is quite clear, but in more complex scenes with more complex lighting and post-processing the sampling becomes completely broken giving values that aren't even close to what is shown on screen.
Expected Behaviour
The way I would expect the color picker to work is that it either samples the color as I as a user see it on my viewport.
Or that it samples the source texture at the pixel I am sampling without any extra lighting applied to it. ( This should be easily toggleable behavior but that is more of a feature request )ColorPicker_WrongSampling.blend
Right now it seems to do neither.
Exact steps for others to reproduce the error
Sample the color from the other cube ( I recommend sampling the green since the meshes are close to each other making it easy to see the color difference ).
Added subscriber: @JJG
Here is a video I recorded of the problem to show to some friends where you can see the color picker doing all sorts of nonsense. That was before I made the reproduction steps.
#86196 seems related in so far that its talking about sampling in general behaving strangely, not specific to the 3D texture painting.There also appears to be an issue with the color picker sampling textures linearly despite what interpolation method is actually being used, in the videos case the texture interpolation is set to "Closest" but its using "Linear" instead. Should I make another ticket for this?{F10104126}*There also doesn't appear to be a way to make the embed display smaller, sorry for that.//
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
I can sort of confirm.
But first of all, here is the scenario that actually works as intended:
Sample Color
operator (not the eyedropper from the brush color), this operator has theSample Merged
option.However, this only seems to work correctly when sampling from the same object, when picking from another object, behavior seems to be as if the
Sample Merged
option is ON (meaning it will just sample the OpneGL pixel value -- including all shading on top).Will check on the case where we are picking from another object than is currently being painted on.
But @JJG: could you confirm that Sample Color works correctly for you when sampling from the same object?
Yes, please
Color Picker in texture mode sampling incorrect valuesto Color Picker in texture mode sampling incorrect values (sample merged OFF, sampling from another object)Added subscriber: @jonas-19
Will do later in the evening today.
Added subscribers: @mano-wii, @ideasman42
So here is a bit of code that would enable picking colors directly from the textures of other objects.
Has rough edges though, not sure if this would really be the way to go:
P2128: T88300_snippet
Will change this to TODO, current code was not really expecting this to work on objects other than the active.
(Of course, from the user perspective, this is totally unexpected)
Might be interesting to
CC @ideasman42
CC @mano-wii
@lichtwerk I can confirm that the sampling works as long as it is the same object but gives incorrect values when trying to sample another object.
Added subscriber: @KennethThomas