[Workbench] Wireframe rendering error (overlapping parts of wireframes don't render at all) #73046

Closed
opened 2020-01-11 15:59:56 +01:00 by Ilari Männistö · 16 comments

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: 1cb938ef2c
Worked: version: 2.82, commit date: 2020-11-27, hash: 4659fa5471

Short description of error
Wireframes in newest daily builds appear like this for me at least:
image.png
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.
wireframe-error.blend

**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: `1cb938ef2c` Worked: version: 2.82, commit date: 2020-11-27, hash: `4659fa5471` **Short description of error** Wireframes in newest daily builds appear like this for me at least: ![image.png](https://archive.blender.org/developer/F8269890/image.png) 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. [wireframe-error.blend](https://archive.blender.org/developer/F8269895/wireframe-error.blend)

Added subscriber: @Lattapotta

Added subscriber: @Lattapotta

#72865 was marked as duplicate of this issue

#72865 was marked as duplicate of this issue

Added subscriber: @JustinWebster

Added subscriber: @JustinWebster

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

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

Added subscriber: @jl5086

Added subscriber: @jl5086

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}. Ymi0objcN1.mp4

blender_wRC24MfKcG.jpg

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](https://archive.blender.org/developer/F8270129/blender_wRC24MfKcG.jpg)}. [Ymi0objcN1.mp4](https://archive.blender.org/developer/F8270108/Ymi0objcN1.mp4) ![blender_wRC24MfKcG.jpg](https://archive.blender.org/developer/F8270124/blender_wRC24MfKcG.jpg)

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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.

@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.

Blender 2020-01-12 14-41-57.mp4

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. @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. [Blender 2020-01-12 14-41-57.mp4](https://archive.blender.org/developer/F8271799/Blender_2020-01-12_14-41-57.mp4)

Added subscriber: @Dogway

Added subscriber: @Dogway
Germano Cavalcante changed title 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) 2020-01-12 15:43:08 +01:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

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

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

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Jeroen Bakker self-assigned this 2020-01-13 11:29:21 +01:00
Member

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.

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.
Jeroen Bakker removed their assignment 2020-01-13 12:18:49 +01:00
Clément Foucault was assigned by Jeroen Bakker 2020-01-13 12:18:49 +01:00

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:
wireframe-eevee-workbench.gif
(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.

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: ![wireframe-eevee-workbench.gif](https://archive.blender.org/developer/F8275637/wireframe-eevee-workbench.gif) (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.

This issue was referenced by b8bdb8e9e9

This issue was referenced by b8bdb8e9e99d33fc16d69307330d160abbba923e

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73046
No description provided.