Grease pencil over geometry occlussion problems #92052

Open
opened 2021-10-08 19:39:46 +02:00 by Daniel Salazar · 11 comments
Member

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Broken: version: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash: a791bdabd0
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-06 22:38, hash: 439c9b0b84

Short description of error
GP lines get incorrect occlussion in the render while looking fine in the viewport

Exact steps for others to reproduce the error
The problem displays differently in the following 2 scenarios:

This file has a grease pencil stroke close over (but not really touching at all) a piece of geometry
GP Aliasing.blend
Viewport Rendering
image.png
Render
The line looks jagged in the render
image.png

This file has a grease pencil drawing far behind a piece of geometry
Occlussion.blend
Viewport
image.png
Render
The drawing that should be occluded is completely visible
image.png

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Broken: version: 2.93.5, branch: master, commit date: 2021-10-05 12:04, hash: `a791bdabd0` Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-06 22:38, hash: `439c9b0b84` **Short description of error** GP lines get incorrect occlussion in the render while looking fine in the viewport **Exact steps for others to reproduce the error** The problem displays differently in the following 2 scenarios: This file has a grease pencil stroke close over (but not really touching at all) a piece of geometry [GP Aliasing.blend](https://archive.blender.org/developer/F10883197/GP_Aliasing.blend) Viewport Rendering ![image.png](https://archive.blender.org/developer/F10883422/image.png) Render *The line looks jagged in the render* ![image.png](https://archive.blender.org/developer/F10883388/image.png) This file has a grease pencil drawing far behind a piece of geometry [Occlussion.blend](https://archive.blender.org/developer/F10883198/Occlussion.blend) Viewport ![image.png](https://archive.blender.org/developer/F10883458/image.png) Render *The drawing that should be occluded is completely visible* ![image.png](https://archive.blender.org/developer/F10883464/image.png)
Author
Member

Added subscriber: @zanqdo

Added subscriber: @zanqdo

Added subscribers: @fclem, @antoniov

Added subscribers: @fclem, @antoniov

@fclem I think this is a know issue of the current Antialiasing algorithm. right?

@fclem I think this is a know issue of the current Antialiasing algorithm. right?
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Occlussion-Warning-GP.png
Upon rendering the Occlusion file, there is a warning that the Combined and Z passes must be turned on to render Grease Pencil.
Turning both passes on results in the GEO correctly occluding the GP.

GP-AA-50mm.png
In the first file, adjusting the Camera's Focal Length from 195.8 mm to the default 50mm zoom (and adjusting its position to compensate) gives me the expected result. Perhaps the longer focal length is the source of unaccounted floating point precision loss?


Tested using 3.0.0 hash 886196b888

![Occlussion-Warning-GP.png](https://archive.blender.org/developer/F10895659/Occlussion-Warning-GP.png) Upon rendering the Occlusion file, there is a warning that the Combined and Z passes must be turned on to render Grease Pencil. Turning both passes on results in the GEO correctly occluding the GP. ![GP-AA-50mm.png](https://archive.blender.org/developer/F10896082/GP-AA-50mm.png) In the first file, adjusting the Camera's Focal Length from 195.8 mm to the default 50mm zoom (and adjusting its position to compensate) gives me the expected result. Perhaps the longer focal length is the source of unaccounted floating point precision loss? --- Tested using 3.0.0 hash 886196b88817

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

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Author
Member

In #92052#1232812, @EAW wrote:
Occlussion-Warning-GP.png
Upon rendering the Occlusion file, there is a warning that the Combined and Z passes must be turned on to render Grease Pencil.
Turning both passes on results in the GEO correctly occluding the GP.

Thank you. I would have never noticed it there. It doesn't even print to the console. I would think the renderer would need to force render the zbuffer in this case?

> In #92052#1232812, @EAW wrote: > ![Occlussion-Warning-GP.png](https://archive.blender.org/developer/F10895659/Occlussion-Warning-GP.png) > Upon rendering the Occlusion file, there is a warning that the Combined and Z passes must be turned on to render Grease Pencil. > Turning both passes on results in the GEO correctly occluding the GP. Thank you. I would have never noticed it there. It doesn't even print to the console. I would think the renderer would need to force render the zbuffer in this case?
Member

Added subscriber: @icappiello

Added subscriber: @icappiello
Member

@antoniov, @fclem any update about this?
The focal lenght issue is really annoying. It forces us to render a separate pass for GP in viewport render.
In 3D/2D hybrid animation wider focal lenght like 120 or even 200 are not so unusual as in other cases.

@antoniov, @fclem any update about this? The focal lenght issue is really annoying. It forces us to render a separate pass for GP in viewport render. In 3D/2D hybrid animation wider focal lenght like 120 or even 200 are not so unusual as in other cases.

Added subscriber: @vderosa

Added subscriber: @vderosa
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:23 +01:00

Upon rendering the Occlusion file, there is a warning that the Combined and Z passes must be turned on to render Grease Pencil.
Turning both passes on results in the GEO correctly occluding the GP.

It seems that at least in 3.4.1 and in 3.5.0 enabling that following the on screen warning ("To render grease pencil, enable combined and z passes") has the exact opposite effect.

Look at attached images

System Information
Operating system: macOS-13.3-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Pro 1.2

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: (newest version of Blender that worked as expected)

Exact steps for others to reproduce the error
open attached blend file and hit render image.

Tested also on
version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: 55485cb379, type: release
build date: 2022-12-20, 00:48:52
platform: 'macOS-13.3-arm64-arm-64bit'

> Upon rendering the Occlusion file, there is a warning that the Combined and Z passes must be turned on to render Grease Pencil. Turning both passes on results in the GEO correctly occluding the GP. It seems that at least in 3.4.1 and in 3.5.0 enabling that following the on screen warning ("To render grease pencil, enable combined and z passes") has the exact opposite effect. Look at attached images **System Information** Operating system: macOS-13.3-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Pro 1.2 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: (newest version of Blender that worked as expected) **Exact steps for others to reproduce the error** open attached blend file and hit render image. Tested also on version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: 55485cb379f7, type: release build date: 2022-12-20, 00:48:52 platform: 'macOS-13.3-arm64-arm-64bit'
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
7 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#92052
No description provided.