Regression: Gradient colors in a Grease Pencil material change depending on the visibility of other objects #98882
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#98882
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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.19044-SP0 64 Bits
Graphics card: GeForce GTX TITAN/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71
Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash:
e05e1e3691
Worked: version: 3.1.2
Short description of error
If I import a Grease pencil object that has a gradient radial fill into the scene, that fill won’t work. But if I turn off the visibility of another Grease pencil object, the visibility of the fill starts working. This behavior is the same for other imported Grease pencil objects. If there are several Grease pencil objects with a radial gradient in the scene, only one will work, the others must be disabled.
I asked other users to test this problem. They confirmed the problem.
Thank you! gradient_problem.mp4
Exact steps for others to reproduce the error
problem_gradient.blend I am waiting for your help.
Added subscriber: @Alex_Rom
Problem gradient radialto Regression: Gradient colors in a Grease Pencil material change depending on the visibility of other objectsChanged status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @mano-wii
Thanks for the report, I can confirm.
I'll look for the commit that introduced the problem.
Added subscriber: @antoniov
@mano-wii I don't know the draw code for this area and I cannot fix this bug. Could you handle it?
Added subscriber: @fclem
Doing some tests with
RenderDoc
I noticed that the value ofmatid
is wrong in:{https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl$71}
Moving back a bit the wrong value appears to be added in:
{https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl$128}
Comparing with the way to access a material in {https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl$34}, I tried the solution below and it seems to solve the problem:
If I have to guess, I'd say the problem was introduced in
eccb0b222e
.I'm not sure if that is the ideal solution, @fclem any thoughts?
@mano-wii It is the right fix. You can commit it.
This issue was referenced by
9410d7bd2e
This issue was referenced by
270ed1c716
Changed status from 'Confirmed' to: 'Resolved'
Added subscriber: @PratikPB2123
@mano-wii , what do you think about backporting your commit to 3.2?
In fact I forgot this important detail.
Thanks for reminding me
Done: #98661 (3.2: Potential candidates for corrective releases)