Grease Pencil Line Keeps Showing Thru

elephantguitarguy_neck.blend (180.6 KB)


I have the grease pencil properties for the grey finger nails on the elephant set to Not In Front, but it keeps showing thru the guitar prop I made.

enable z pass

He already have the Z pass enabled.

Hi, if you select: View layer > single layer the fingers don’t show through in render.
Also if you select layer001 in render layout it disappears:

I found that if you hide your Empties in the render, it fixes the issue. This looks like a bug you could probably report.

Depth pass is enabled in ViewLayer.001 that is correctly rendered.
It is disabled in ViewLayer that is problematic.

So, enabling Depth pass in Viewlayer fix the issue.

That is normal behaviour. Grease Pencil is rendered in a post-processing pass, rendered after render of solid objects.
So, if Depth pass is not enabled, drawn Grease Pencil Strokes, that are not generated by a Line Art modifier, can not be rendered occluded by solid geometry, because the info is missing to generate Grease Pencil pass.

But depth pass was enabled.

No it is not on the other view layer

Thanks didn’t notice that. :+1:

Yes i can see now. Hopefully @Dan_Christmas will also see this soon. :rofl:
i don’t use layers/grease pencil very often, learnt something new. Thanks.

Enabling Depth fixed everything, thank you so much!