Z-fighting in wireframe moded #84592

Open
opened 2021-01-11 12:04:54 +01:00 by Michał Pęczak · 10 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0
Also tested with the latest 2.92 alpha build. Same results.

Short description of error
I experience Z-fighting in wireframe mode when there are overlapping faces.
Wireframe mode should only render edges. Z-fighting indicates that faces are rendered too, but it only happens when they partially overlap.

Exact steps for others to reproduce the error
Duplicate the default cube and move it slightly in one axis, so that faces of the two cubes partially overlap. Switch to wireframe mode and you will see faces flickering where they overlap. You won't see it if the two cubes fully overlap by staying roughly in the same spot.

wireframe glitch.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `3e85bb34d0` Also tested with the latest 2.92 alpha build. Same results. **Short description of error** I experience Z-fighting in wireframe mode when there are overlapping faces. Wireframe mode should only render edges. Z-fighting indicates that faces are rendered too, but it only happens when they partially overlap. **Exact steps for others to reproduce the error** Duplicate the default cube and move it slightly in one axis, so that faces of the two cubes partially overlap. Switch to wireframe mode and you will see faces flickering where they overlap. You won't see it if the two cubes fully overlap by staying roughly in the same spot. [wireframe glitch.blend](https://archive.blender.org/developer/F9559706/wireframe_glitch.blend)

Added subscriber: @michalpe

Added subscriber: @michalpe
Member

Added subscribers: @fclem, @filedescriptor

Added subscribers: @fclem, @filedescriptor
Member

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

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

I can reproduce this. I am not sure if this should be considered a bug or a limitation though. This is working as intended in some sense. @fclem any thoughts on this?

I can reproduce this. I am not sure if this should be considered a bug or a limitation though. This is working as intended in some sense. @fclem any thoughts on this?

I am actually not sure either. I first made a post on Right Click Select to change this but the community (way more advanced users than me; I'm just a Blender beginner) suggested posting it here.
It doesn't seem to block any native functionality of Blender. It just:

  1. looks ugly when you work in 2D, with maps for instance, and you are bound to have overlapping faces,
  2. might affect behaviour of CAD Transform add-on which has trouble snapping when there is overlapping geometry, so I started using wireframe mode but this glitch appeared.
I am actually not sure either. I first made a post on Right Click Select to change this but the community (way more advanced users than me; I'm just a Blender beginner) suggested posting it here. It doesn't seem to block any native functionality of Blender. It just: 1) looks ugly when you work in 2D, with maps for instance, and you are bound to have overlapping faces, 2) might affect behaviour of CAD Transform add-on which has trouble snapping when there is overlapping geometry, so I started using wireframe mode but this glitch appeared.

Added subscriber: @L0Lock

Added subscriber: @L0Lock

In what sense is it intended? To me, wireframe is supposed to show only wires, edge display. Here we see what would be part of a face display.

Since it seem to be a z-fighting thing, I guess there's a technical reason as to why it happens, but can't this be tackled?

This doesn't happen in the latest stable 2.79:

image.png

So is it introduced by 2.8's way of getting its wireframe mode from a full xray + wire?

In what sense is it intended? To me, wireframe is supposed to show only wires, edge display. Here we see what would be part of a face display. Since it seem to be a z-fighting thing, I guess there's a technical reason as to why it happens, but can't this be tackled? This doesn't happen in the latest stable 2.79: ![image.png](https://archive.blender.org/developer/F9578788/image.png) So is it introduced by 2.8's way of getting its wireframe mode from a full xray + wire?

Added subscriber: @AnityEx

Added subscriber: @AnityEx

my two cents: Z fighting dissapears when behind another object
left has a plane over / right normal view
image.png

some workaround i did was to parent a plane to camera and then lock camera to view
without plane
image.png
with plane
image.png

my two cents: Z fighting dissapears when behind another object left has a plane over / right normal view ![image.png](https://archive.blender.org/developer/F9583307/image.png) some workaround i did was to parent a plane to camera and then lock camera to view without plane ![image.png](https://archive.blender.org/developer/F9583312/image.png) with plane ![image.png](https://archive.blender.org/developer/F9583309/image.png)

Ok, so we have a workaround.
Though I think we need a real solution.
I can tell one serious limitation involved with it: Blender cannot snap through obscured faces (like SketchUp can do, for example). You can switch your view to x-ray or wireframe but when you grab any geometry and try to snap it to any other geometry that is placed behind a wall (plane), Blender won't snap. It just doesn't see snapping targets behind geometry, even though you can see them in viewport. This is a pain for architecture modelling where there's a ton of obscuring and overlapping geo.
So my thoughts are: make wireframe render truly as wireframe, so that snapping can be performed "through" faces.

Ok, so we have a workaround. Though I think we need a real solution. I can tell one serious limitation involved with it: Blender cannot snap through obscured faces (like SketchUp can do, for example). You can switch your view to x-ray or wireframe but when you grab any geometry and try to snap it to any other geometry that is placed behind a wall (plane), Blender won't snap. It just doesn't see snapping targets behind geometry, even though you can see them in viewport. This is a pain for architecture modelling where there's a ton of obscuring and overlapping geo. So my thoughts are: make wireframe render truly as wireframe, so that snapping can be performed "through" faces.
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:14:04 +01:00
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
4 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#84592
No description provided.