Grease Pencil is lit by World's Viewport Display Color, not by the actual World Color #89513

Open
opened 2021-06-28 16:09:52 +02:00 by Mikhail Cherkasov · 15 comments

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 442.92

Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: 84da05a8b8
Worked: (newest version of Blender that worked as expected)

Short description of error
Grease Pencil Objects change their color in Rendered Viewport Shading Mode and on the final render according to World's Viewport Display Color, not by actual World's Surface Color.

Exact steps for others to reproduce the error
Open a new scene.
Delete the cube and light.
Add Grease Pencil Monkey object.
Switch shading mode to "Rendered".
In the "Properties" area find "World Properties" and expand "Viewport Display" settings.
Play with the color value. In the viewport you'll see Monkey changing color according to your experiments.
Black color will bring drawing to complete hopeless darkness.
Try to render the image with tinted monkey in frame. You'll see the effect takes it's place on render as well.
Now play with World's Surface color. It doesn't do anything.Screenshot_3.png

**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 442.92 **Blender Version** Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: `84da05a8b8` Worked: (newest version of Blender that worked as expected) **Short description of error** Grease Pencil Objects change their color in Rendered Viewport Shading Mode and on the final render according to World's Viewport Display Color, not by actual World's Surface Color. **Exact steps for others to reproduce the error** Open a new scene. Delete the cube and light. Add Grease Pencil Monkey object. Switch shading mode to "Rendered". In the "Properties" area find "World Properties" and expand "Viewport Display" settings. Play with the color value. In the viewport you'll see Monkey changing color according to your experiments. Black color will bring drawing to complete hopeless darkness. Try to render the image with tinted monkey in frame. You'll see the effect takes it's place on render as well. Now play with World's Surface color. It doesn't do anything.![Screenshot_3.png](https://archive.blender.org/developer/F10204830/Screenshot_3.png)

Added subscriber: @film.cherkasov

Added subscriber: @film.cherkasov

This comment was removed by @film.cherkasov

*This comment was removed by @film.cherkasov*
Mikhail Cherkasov changed title from Grease Pencil is lit by World's viewport display color to Grease Pencil is lit by World's Viewport Display Color, not by actual World Color 2021-06-28 16:45:32 +02:00
Mikhail Cherkasov changed title from Grease Pencil is lit by World's Viewport Display Color, not by actual World Color to Grease Pencil is lit by World's Viewport Display Color, not by the actual World Color 2021-06-28 16:49:40 +02:00

Added subscribers: @fclem, @antoniov

Added subscribers: @fclem, @antoniov

@fclem Is this a know limitation?

@fclem Is this a know limitation?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Confirming for now, this seems wrong.

Confirming for now, this seems wrong.
Member

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Member

Hm, could be a limitation indeed (atm. gpencil_light_ambient_add is always called early on in GPENCIL_engine_init - and with the viewport color)

Hm, could be a limitation indeed (atm. `gpencil_light_ambient_add` is always called early on in `GPENCIL_engine_init` - and with the viewport color)

Added subscriber: @mendio

Added subscriber: @mendio

This is a workaround that helps to display the Gpencil object with more accurate colors in dark environments without affecting the lighting on meshes. Remember that Grease Pencil is designed for 2D art.

Maybe this workaround could be reviewed now that grease pencil objects are affected by lights and we could try to find a better solution to display the correct colors/lighting on Gpencil objects using World Color instead.

lighting.png

This is a workaround that helps to display the Gpencil object with more accurate colors in dark environments without affecting the lighting on meshes. Remember that Grease Pencil is designed for 2D art. Maybe this workaround could be reviewed now that grease pencil objects are affected by lights and we could try to find a better solution to display the correct colors/lighting on Gpencil objects using World Color instead. ![lighting.png](https://archive.blender.org/developer/F10205500/lighting.png)

Not sure if we must keep as is and leave this when using the new Eevee mode currently in development.

Not sure if we must keep as is and leave this when using the new Eevee mode currently in development.

exactly, this could be reviewed/updated in the new GPencil-Eevee development

exactly, this could be reviewed/updated in the new GPencil-Eevee development
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Just to add some precision, this is because the GPencil engine has no way to evaluate the world nodetree and the nodetree could be way more complex than just a solid color.

This is, unfortunately, going to remain a limitation. However, EEVEE's lighting of GPencil object will of course be the same as other object using the full nodetree.

Just to add some precision, this is because the GPencil engine has no way to evaluate the world nodetree and the nodetree could be way more complex than just a solid color. This is, unfortunately, going to remain a limitation. However, EEVEE's lighting of GPencil object will of course be the same as other object using the full nodetree.
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:25 +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
5 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#89513
No description provided.