Grease Pencil doesn't treat color like the rest of Blender #50149
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#50149
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
linux mint
Blender Version
Broken: 2.78
05b181f
Short description of error
Grease Pencil doesn't treat color like the rest of blender
Exact steps for others to reproduce the error
The attached blend file grease_pencil_color_bug.blend has a material color and a grease pencil palette with a stroke color. Both are the same color:
the grease pencil color was copied from the material color.
The bug is that grease pencil displays (both in the viewport and in the color picker) a different color value from what the material does.
In the file, the stroke's blue component is
0.094
, whilst it is0.009
for the material. The same issue occurs when copying the freestyle stroke color to grease pencil stroke color, which suggests the bug is in how grease pencil represents color.Changed status to: 'Open'
Added subscriber: @flokkievids
Added subscriber: @antoniov
This is not a bug. Currently, grease pencil color is not affected by scene lights or any other scene attribute.
If you add a plane and set golor to R=1 G=0 B=0 and a palette color with the same color (pure red) and render an opengl, you get something like this:
As you can see in the top, the color of the plane is not pure red RGB= 0.7176, 0.0078, 0.0078, but the grease pencil color is RGB=1, 0, 0. You can get these values moving the mouse over the render image.
This color management is something we could investigate in future 2.8 Blender version using the new opengl functions, but today this is how works for several technical reasons.
(grease pencil color on the left, material color on the right)
My problem is that the above colors are the same to python, but obviously differ in the
g
component (and are displayed differently). They have the samehex, they have the same
hsv
components, but theg
component is off. That just seems strange.In the meantime, how can I convert between the two? For context, I'm working on the freestyle to grease pencil addon and trying to replicate a freestyle render as much as possible. Being slightly off in the colors isn't great.
Added subscriber: @JoshuaLeung
IIRC, on last check we weren't doing any of the fancy color management stuff yet. Previously, as a UI tool, this didn't matter so much, but now that GP is being used for art, we'll have to tackle this I think.
I'm guessing that what's happening is:
@JoshuaLeung Yes, the color gamma is the trick. I was doing some test and changing this value you can get the same color, but this is not a solution.
I agree, we need to include any type of color management as a request for Grease Pencil.
Added subscriber: @kevindietrich
Changed status from 'Open' to: 'Archived'
As noted by @antoniov already, this is not a bug, but rather a todo. So archiving this report. I also added a note in the wiki todo list about this.