GPencil: Z pass combine not work #78574

Closed
opened 2020-07-03 14:40:25 +02:00 by Yee Ta Ta · 13 comments

System Information
Windows 10 64bit , NVIDIA GTX1080,i7-6700k,Ram:32GB

WIN 10 ,GPU drivers all latest version.

Blender Version
Broken: Blender 2.83.1 LTS
Worked: 2.82a
Caused by 29f3af9527

Short description of error

In 2.8 version can see the Z combine is work

In 2.83.1 LTS version Z combine not work

000.png

001.png

Test_Depth.blend

**System Information** Windows 10 64bit , NVIDIA GTX1080,i7-6700k,Ram:32GB WIN 10 ,GPU drivers all latest version. **Blender Version** Broken: Blender 2.83.1 LTS Worked: 2.82a Caused by 29f3af9527 **Short description of error** In 2.8 version can see the Z combine is work In 2.83.1 LTS version Z combine not work ![000.png](https://archive.blender.org/developer/F8661501/000.png) ![001.png](https://archive.blender.org/developer/F8661497/001.png) [Test_Depth.blend](https://archive.blender.org/developer/F8661499/Test_Depth.blend)
Author

Added subscriber: @YeeTaTa

Added subscriber: @YeeTaTa

Added subscribers: @fclem, @antoniov

Added subscribers: @fclem, @antoniov

@fclem could you take a look? not sure if this is supported or not with the new engine.

@fclem could you take a look? not sure if this is supported or not with the new engine.
Antonio Vazquez changed title from Grease pencil Z combine not work to GPencil: Z pass combine not work 2020-07-04 17:34:42 +02:00
Member

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

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

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Since this is also related to depth, #81950 (Grease Pencil Ignores 'Stroke Placement: Stroke') is probably related

Since this is also related to depth, #81950 (Grease Pencil Ignores 'Stroke Placement: Stroke') is probably related
Author

Hi!

I forgot to mention that the bug file camera is using Orthographic.

And now i find same Z pass combine not work when camera is using Perspective.

System Information
Windows 10 64bit , NVIDIA GTX1080,i7-6700k,Ram:32GB

WIN 10 ,GPU drivers all latest version.

Blender Version
Broken: Blender 2.83.9 LTS

Short description of error

In 2.83.9 LTS version Z combine not work when camera is using Perspective.

20201125.png

New Origin File:20201125_test.blend

Do I need to reopen one post?

Hmm......May I ask if it is possible to fix this feature in the 2.83LTS update?Or only at 2.9?

Because in the current project, I very need this can work.

Thank you guys!

Hi! I forgot to mention that the bug file camera is using Orthographic. And now i find same Z pass combine not work when camera is using Perspective. **System Information** Windows 10 64bit , NVIDIA GTX1080,i7-6700k,Ram:32GB WIN 10 ,GPU drivers all latest version. **Blender Version** Broken: Blender 2.83.9 LTS **Short description of error** In 2.83.9 LTS version Z combine not work when camera is using Perspective. ![20201125.png](https://archive.blender.org/developer/F9371281/20201125.png) New Origin File:[20201125_test.blend](https://archive.blender.org/developer/F9371303/20201125_test.blend) Do I need to reopen one post? Hmm......May I ask if it is possible to fix this feature in the 2.83LTS update?Or only at 2.9? Because in the current project, I very need this can work. Thank you guys!

Added subscriber: @JamellMoore

Added subscriber: @JamellMoore

By sampling the depth pass from the Suzanne Gpencil object I can see that the z-depth may have been negated somewhere. The depth values are reading -0.340 rather than +0.340.

So to work around this until the bug is fixed you should be able to multiply the depth by -1.0 to get the correct result. Also ensure that you turn on transparency in your renders by going to render properties->film->transparency. I hope this works for your project file and not just the sample file.

I've uploaded a sample file, the same the one you supplied without references to images in the background.

Bug-#7857-GPencil-Z-pass-combine-work-around-preview.jpg

Bug-#7857-GPencil-Z-pass-combine-work-around.blend

By sampling the depth pass from the Suzanne Gpencil object I can see that the z-depth may have been negated somewhere. The depth values are reading -0.340 rather than +0.340. So to work around this until the bug is fixed you should be able to multiply the depth by -1.0 to get the correct result. Also ensure that you turn on transparency in your renders by going to render properties->film->transparency. I hope this works for your project file and not just the sample file. I've uploaded a sample file, the same the one you supplied without references to images in the background. ![Bug-#7857-GPencil-Z-pass-combine-work-around-preview.jpg](https://archive.blender.org/developer/F9474296/Bug-#7857-GPencil-Z-pass-combine-work-around-preview.jpg) [Bug-#7857-GPencil-Z-pass-combine-work-around.blend](https://archive.blender.org/developer/F9474299/Bug-#7857-GPencil-Z-pass-combine-work-around.blend)

I've just tested the possible work around in the 20201125_test.blend and it doesn't seem to be that the z-depth is negated. Instead of multiplying by -1 you can add or subtract a certain value. I did this and rendered an animation and it seems to work.

Bug-#7857-GPencil-Z-pass-combine-work-around-test.avi

It doesn't look like the offset is changing with distance but its difficult to tell from this example. I will do another test soon to try to narrow down the issue.

I've just tested the possible work around in the 20201125_test.blend and it doesn't seem to be that the z-depth is negated. Instead of multiplying by -1 you can add or subtract a certain value. I did this and rendered an animation and it seems to work. [Bug-#7857-GPencil-Z-pass-combine-work-around-test.avi](https://archive.blender.org/developer/F9475115/Bug-#7857-GPencil-Z-pass-combine-work-around-test.avi) It doesn't look like the offset is changing with distance but its difficult to tell from this example. I will do another test soon to try to narrow down the issue.
Author

Thank you, this method solved my problem, I didn't expect to be able to do this.

Thank you, this method solved my problem, I didn't expect to be able to do this.

This issue was referenced by d1ee8a0502

This issue was referenced by d1ee8a0502c0bb83ca7e4206a730226f56bd2c8e

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2021-02-01 14:01:24 +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
6 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#78574
No description provided.