Grease Pencil: Holdout Material should work across different GPencil objects #120560

Open
opened 2024-04-12 12:07:26 +02:00 by Lukas W · 6 comments

System Information
Operating system: Ubuntu 23.10
Graphics card: nVidia GeForce MX150

Blender Version
Broken: 4.1
Worked: never

Short description of error

Activating the checkbox "Holdout" on a Grease Pencil material successfully hides strokes and fills within the same objects according to layer order, but does not meaningfully affect those in another object.

Exact steps for others to reproduce the error
Render the attached file gp_holdout.blend . Note that line crossing the vowel in both the words "Front" and "Back" is invisible inside the counter of the letter. Note that none of the strokes in the object "Back" is hidden inside the "o" of "Front", however. Toggle "Stroke Depth Order" on both of the objects and re-render to confirm that this is not remedied by this setting.

Reasoning
The design of Blender and Grease Pencil encourages putting backgrounds and characters into different objects.
Compositing of 2D animation might require separate passes with strokes and fills only. Simply moving all fills to another View Layer is helpful, but leaves an incorrect pass for the strokes, because strokes in the back are not correctly hidden by fills in the front. This can be solved using Holdout materials for scenes with a single GP object, but not for scenes using multiple, overlapping GP objects.

Proposed solution
Add two toggles to Material -> Surface -> Fill under "Holdout" with the name "Affects" "same object" (checked by default) and "other objects" (unchecked by default). Draw accordingly. Whether GP Holdout materials also affect non-GP objects can depend on what is more convenient to implement.

**System Information** Operating system: Ubuntu 23.10 Graphics card: nVidia GeForce MX150 **Blender Version** Broken: 4.1 Worked: never **Short description of error** Activating the checkbox "Holdout" on a Grease Pencil material successfully hides strokes and fills within the same objects according to layer order, but does not meaningfully affect those in another object. **Exact steps for others to reproduce the error** Render the attached file gp_holdout.blend . Note that line crossing the vowel in both the words "Front" and "Back" is invisible inside the counter of the letter. Note that none of the strokes in the object "Back" is hidden inside the "o" of "Front", however. Toggle "Stroke Depth Order" on both of the objects and re-render to confirm that this is not remedied by this setting. **Reasoning** The design of Blender and Grease Pencil encourages putting backgrounds and characters into different objects. Compositing of 2D animation might require separate passes with strokes and fills only. Simply moving all fills to another View Layer is helpful, but leaves an incorrect pass for the strokes, because strokes in the back are not correctly hidden by fills in the front. This can be solved using Holdout materials for scenes with a single GP object, but not for scenes using multiple, overlapping GP objects. **Proposed solution** Add two toggles to Material -> Surface -> Fill under "Holdout" with the name "Affects" "same object" (checked by default) and "other objects" (unchecked by default). Draw accordingly. Whether GP Holdout materials also affect non-GP objects can depend on what is more convenient to implement.
Lukas W added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-04-12 12:07:26 +02:00
Author

Related report: #89879

Related report: #89879
Member

Hi, thanks for the report. Can confirm.
cc @antoniov

Hi, thanks for the report. Can confirm. cc @antoniov
Pratik Borhade added
Module
Grease Pencil
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-04-15 07:58:49 +02:00

IIRC this is by design and the hold out works by object, @fclem can you confirm?

IIRC this is by design and the hold out works by object, @fclem can you confirm?

I can confirm. The holdout only exists because we needed to support holes in fills. It might even be removed if we add support for that at the geometry level.

I can confirm. The holdout only exists because we needed to support holes in fills. It might even be removed if we add support for that at the geometry level.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-04-15 10:26:49 +02:00
Author

In that case I do agree it should be removed, at least as a user-facing option. Stroke holdouts and coloured holdouts make little sense, if their only purpose is to create fully transparent holes on the same layer.

BTW, other software packages use blend modes to achieve the effect that Holdout has now. TVPaint has the "Erase" mode, for example, as I am sure others have as well under different names. Blend modes in Grease Pencil already act within the current object only, so the result of a new erasure blend mode would be more intuitive than the current Holdout material option.

In that case I do agree it should be removed, at least as a user-facing option. Stroke holdouts and coloured holdouts make little sense, if their only purpose is to create fully transparent holes on the same layer. BTW, other software packages use blend modes to achieve the effect that Holdout has now. TVPaint has the "Erase" mode, for example, as I am sure others have as well under different names. Blend modes in Grease Pencil already act within the current object only, so the result of a new erasure blend mode would be more intuitive than the current Holdout material option.

Blend modes in Grease Pencil already act within the current object only, so the result of a new erasure blend mode would be more intuitive than the current Holdout material option.

That does sounds way more intuitive and easier to implement (and manage) in the renderer. I believe this is the way to move this feature. Ping @filedescriptor

> Blend modes in Grease Pencil already act within the current object only, so the result of a new erasure blend mode would be more intuitive than the current Holdout material option. That does sounds way more intuitive and easier to implement (and manage) in the renderer. I believe this is the way to move this feature. Ping @filedescriptor
YimingWu reopened this issue 2024-04-16 05:01:32 +02:00
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2024-04-16 05:01:35 +02:00
YimingWu added
Status
Needs Info from Developers
and removed
Status
Needs Triage
labels 2024-04-16 05:01:42 +02: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
4 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#120560
No description provided.