GizmoAPI: Lines appear between triangles using "DEPTH_3D" option. #94791

Open
opened 2022-01-10 14:57:42 +01:00 by Demeter Dzadik · 10 comments
Member

System Information
Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56

Blender Version
Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-10 10:40, hash: 101fadcf6b

Short description of error
Whether using the built-in draw_preset_facemap() to draw face maps or the draw_custom_shape() function to draw based on a list of arbitrary vectors, as long as the GizmoGroup has the "DEPTH_3D" option to enable depth culling, see-through lines appear between the drawn triangles:
image.png

This doesn't seem to be affected by the widget's alpha color, and doesn't seem to be related to z-fighting, because it still happens when using a second mesh that has a Displace modifier and is hidden. But, it is purely cosmetic.

Exact steps for others to reproduce the error

CC @ideasman42

**System Information** Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-10 10:40, hash: `101fadcf6b` **Short description of error** Whether using the built-in `draw_preset_facemap()` to draw face maps or the `draw_custom_shape()` function to draw based on a list of arbitrary vectors, as long as the GizmoGroup has the "DEPTH_3D" option to enable depth culling, see-through lines appear between the drawn triangles: ![image.png](https://archive.blender.org/developer/F12799072/image.png) This doesn't seem to be affected by the widget's alpha color, and doesn't seem to be related to z-fighting, because it still happens when using a second mesh that has a Displace modifier and is hidden. But, it is purely cosmetic. **Exact steps for others to reproduce the error** - Prototype addon: [bone-gizmos.zip](https://archive.blender.org/developer/F12812489/bone-gizmos.zip) - Minimal test file: [ellie_mesh_gizmos.rigging_minimal.blend](https://archive.blender.org/developer/F12798941/ellie_mesh_gizmos.rigging_minimal.blend) - Mouse hover on the jacket sleeve CC @ideasman42
Author
Member

Added subscriber: @Mets

Added subscriber: @Mets
Author
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Demeter Dzadik changed title from GizmoAPI: Mouse interacts with back-most widget instead of front-most one. to GizmoAPI: Lines appear between triangles using "DEPTH_3D" option. 2022-01-10 15:35:26 +01:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Hm, two things:

  • Addon zip folder cannot be installed directly, need to put the subfolder in Addons
  • for me, it looks like this [which seems about right?]:
    image.png

Are you affected by some other drawing glitch (not sure why your mesh is all black?)

Hm, two things: - Addon zip folder cannot be installed directly, need to put the subfolder in Addons - for me, it looks like this [which seems about right?]: ![image.png](https://archive.blender.org/developer/F12812615/image.png) Are you affected by some other drawing glitch (not sure why your mesh is all black?)
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Could you check this again in a fresh build from https://builder.blender.org/download/daily/?
(just wanting to make sure we are on the same page)

I am on

**System Information**
Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44
version: 3.1.0 Alpha, branch: master, commit date: 2022-01-20 00:59, hash: `rBeb3ff1d6f9ca`
Could you check this again in a fresh build from https://builder.blender.org/download/daily/? (just wanting to make sure we are on the same page) I am on ``` **System Information** Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44 version: 3.1.0 Alpha, branch: master, commit date: 2022-01-20 00:59, hash: `rBeb3ff1d6f9ca` ```
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Nevermind, looking closer I can reproduce actually, sorry

Nevermind, looking closer I can reproduce actually, sorry
Member

Has this worked in previous versions btw.?

Has this worked in previous versions btw.?

Yes, this used to work in 2.8x: http://members.iinet.net.au/~ideasman42/random/facemap_28.ogv

The current the method of drawing causes some overlap that makes the edges increase in alpha, setting this as a known issue, while not ideal it's not preventing the feature from being usable.

Yes, this used to work in 2.8x: http://members.iinet.net.au/~ideasman42/random/facemap_28.ogv The current the method of drawing causes some overlap that makes the edges increase in alpha, setting this as a known issue, while not ideal it's not preventing the feature from being usable.
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:22:34 +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
3 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#94791
No description provided.