0
$\begingroup$

my grease pencil is appearing infront of other objects, z pass is checked and stroke depth order is set to 3d location. In viewport everything appears to be fine, but as soon as i render the image strokes appear infront of the object Blender file: https://www.mediafire.com/file/4asy6ckxvnnfuav/RoomWith_shader.blend/file

enter image description here enter image description here

$\endgroup$
3
  • $\begingroup$ Showing just an image with the problem is not often enough. Please edit the question and add a screenshot of how it looks like in different view, how it is supposed to look like and if possible an example blend file with the issue. $\endgroup$ Commented Oct 28, 2023 at 1:21
  • $\begingroup$ Hi, and thank you for the reply, i edited the post to add image from another view, not sure how to upload a blender file, ill add it to my post as soon as ill figure it out $\endgroup$
    – Nwarp
    Commented Oct 28, 2023 at 6:49
  • $\begingroup$ Blender file added $\endgroup$
    – Nwarp
    Commented Oct 28, 2023 at 6:58

1 Answer 1

1
$\begingroup$

There are 3 View Layers.

The names of the View Layers are "View Layer", "Masking" and "Cube". You are using Compositing for the final render with View Layers - "Masking" and "Cube"

If compositing is disabled and only "View Layer" is rendered - there is no issue with the baked grease pencil shadow.

When comparing all View Layers - it seems there is only one difference in the render settings that may have caused the issue:

enter image description here

The Z value pass is turned off for both "Masking" and "Cube" View Layers

enter image description here

Enabling that option for both "Masking" and "Cube" View Layers seems to resolve the problem when rendering with Compositing enabled.

enter image description here

I hope that helped.

$\endgroup$
2
  • $\begingroup$ It worked, thank you very much! $\endgroup$
    – Nwarp
    Commented Oct 28, 2023 at 13:37
  • $\begingroup$ Hi Nwarp, you're welcome. $\endgroup$ Commented Oct 28, 2023 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .