I am wokring on a project using Greasepencil to add detail to 3D geometry.
Everything looks fine in the viewport, but as soon as I render, some of the strokes that are close to 3D objects start to disappear behind them, while others just appear very jagged.
What is the difference between the grease pencil rendering in the viewport and the render? And is there any way I can make grease pencil render behave like it does in the viewport?
It just seem that when rendering Blender calculates the depth of the grease pencil strokes differently than in viewport.
In the past I've usually fixed this by moving the strokes further away from the surfaces, but this is not optimal, especially when the object is not going to be viewed from just one angle.
Viewport rendering is not a great solution for me because I intend to do some compositing in Blender.