Page MenuHome

[Workbench] Wireframe rendering error (overlapping parts of wireframes don't render at all)
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-10 15:30, hash: rB1cb938ef2c92
Worked: version: 2.82, commit date: 2020-11-27, hash: rB4659fa547166

Short description of error
Wireframes in newest daily builds appear like this for me at least:


I tried to resolve the situation by reducing the view clipping to something minimal but it still doesn't help the situation. Many parts of the wireframe aren't drawn correctly and I suspect those areas are in places where there is another, "hidden" wireframe edge drawn behind them.
Viewport or Themes settings in the preferences don't alter the result, at least I couldn't find any helpful setting.

Exact steps for others to reproduce the error
Attached is the blender file from which I took the screenshot.

Related Objects

Duplicates Merged Here
T72865: Wireframe bug

Event Timeline

I can confirm having this issue also, doesn't look nice that for sure.

I also have this same issue, and have noticed it for some time, although it may be worse than it was before. In more dense meshes you can clearly see ALL the wires behind the surface are the source of the "breaks" in the wire overlay{F8270129}.

Yeap I also had this too, I reported it but wasn't sure if it was a addon causing it, which I think it wasn't, a quick fix was to enable In Front in the Viewport Display, then disable it would temporary fix it, but the issue will come back again.

@Germano Cavalcante (mano-wii) This was same has my report.

Edit*:

Same with 2.83 Alpha.

Seems to be something related to when enabling shadows in solid view, and having All Edges off will cause more artifacts, has above, enable In Front will fix it.

Germano Cavalcante (mano-wii) renamed this task from Wireframe rendering error (overlapping parts of wireframes don't render at all) to [Workbench] Wireframe rendering error (overlapping parts of wireframes don't render at all).Jan 12 2020, 3:43 PM
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.
Germano Cavalcante (mano-wii) triaged this task as High priority.
Germano Cavalcante (mano-wii) updated the task description. (Show Details)
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

Apparently this is a regression was introduced in some November commit.

Seems like after enabling/disabling the shadow option in the workbench lines are rendered. It only seems to be related to Workbench. the other modes render correctly.

Issue is related to how the stencil buffers are used during the wireframe drawing.

DRWState stencil_state = is_material_shmode ? 0 : DRW_STATE_STENCIL_EQUAL;

The most consistent drawing I get when removing the stencil test for all render modes, but that sounds like that the implementation does not take all options into account. I will assign it to Clement as he known the ideas behind this.

I don't know if I've just messed up other settings, but for me all the modes look pretty jagged/aliased and sometimes the silhouette lines appear broken because of that. And I was going to demonstrate those aliased edges (even though my AA-settings are on max), but I instead found a new glitch.

Eevee does this:


(It makes the mesh look like X-ray when "In Front" option is toggled. Workbench works as suspected / normally, although the problems that blenux showed in their video are still apparent.