Page MenuHome

Grease Pencil Overlap problem
Closed, ResolvedPublic

Description

Operating system: Windows 10 b17763.134
Graphics card: AMD Vega 64 (Strix)

Broken: 2.80, 9149e894210, 2018-12-16

When applying a grease pencil visual effect, the grease pencil object loses the effect when overlapping another grease pencil opject.

In this example I have a GP rain layer with a blur, when the rain overlaps another GP object in the background the place where it overlaps loses the blur effect in the final render.

I've opened the file in multiple builds with the same effect.

Pic attached.

Event Timeline

Can you make a simple blend file that demonstrates this issue?

I made a simple blend file but the behavior is a little different, the white foreground GPlines dissappear when over a dark BG GP object and a blur visual effect applied.

If you look at it from the side you can see the white lines that are not affected by the blur effect a little bit.

Also I opened my main problem blend file on an nvidia 1080 windows 10 machine and the problem exists there too.

I have tested and the blur works with overlap objects. We need a simple file to reproduce the problem or to verify if this is a technical limitation.

Anyway, I think this is related to T59425.

@Tom Nelson (tomnel) Anyway, while we fix the z-depth problem (T59425), you can fix it separating the rain in a new GP object and verifying the rain origin is in front of other objects origin (it's the same where are the strokes, the important is where is the origin).

Thanks Antonio,
There is a simple blend file attached above. In it there are two GP objects, a black circle and in front of the circle a bunch of white lines with a blur effect.
For me the white lines disappear or lose the blur effect when in front of the dark circle GP object.
That doesn’t show up for you?

I will check again but I believe the origin of the lines is in front of the dark circle.

@Tom Nelson (tomnel) I see now the problem, it looks the z-depth is not working as expected when apply blur.

@Tom Nelson (tomnel) Try to change the depth ordering of the rain to Front.

I need investigate about this, it looks a precision problem when use blur because the blured areas are too "low" values and the code is clipping it.

This comment was removed by Tom Nelson (tomnel).
Tom Nelson (tomnel) added a comment.EditedDec 18 2018, 9:34 PM

Setting the depth ordering worked for the viewport (thanks!), but not the render output.
Taking a close look at the render it looks like the blur is ok but the opacity is not so where the rain overlays another GP object the opacity jumps to 100%

I am using a GP modifier to lower the opacity

I have done some changes in 0d7fe55d0e76 commit. You don't need put in Front.

Still need to improve render.

Antonio Vazquez (antoniov) lowered the priority of this task from 90 to 50.

Can confirm, working in viewport, not in render. thanks!

Tom Nelson (tomnel) changed the task status from Unknown Status to Resolved.Mar 3 2019, 11:52 PM

Appears to be working in render now. thanks!