Paint Mask Selection wireframe is broken when the mesh is subdivided by either Subdivision or Multires modifiers #75567

Closed
opened 2020-04-10 04:15:55 +02:00 by Frozen_Death_Knight · 13 comments

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

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-08 21:23, hash: 1239cab11f

Short description of error
Paint Mask Selection wireframe is broken when the mesh is subdivided by either Subdivision or Multires modifiers:

image.png
image.png

Exact steps for others to reproduce the error
#75567.blend

  • Open file
  • inspect broken Paint mask selection wireframe
  • goes away if modifier (subd or multires) is disabled

Original report:

When I opened up one of my files that I wanted to vertex paint, I noticed some really serious rendering artefacts that prevented me from seeing and painting the vertices. Here are images showing the issue. MultiRes/SubSurf and no modifiers create rendering problems on this model, but strangely enough I don't have these problems on every sculpt. I don't know yet the true cause of these bugs.
Broken Vertex Painting 2.png Broken Vertex Painting.png

Here is a file with a piece of the model I had a problem with. Tried making it as small as possible.

Broken Vertex Painting.blend

To start finding the problem you first need to go into Vertex Paint Mode. The mesh should be all white with wireframes showing despite the option being toggled off in Viewport Overlays. Toggle Viewport Overlays settings on and off and try to change the settings and nothing works except when you disable Viewport Overlays completely.

If you start painting on the model (i.e. black) the paint will not appear on the model. If you enable MultiRes in the modifier window you will notice the broken rendering of the vertex paint with dark lines drawn all across the model.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.50 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-08 21:23, hash: `1239cab11f` **Short description of error** Paint Mask Selection wireframe is broken when the mesh is subdivided by either `Subdivision` or `Multires` modifiers: ![image.png](https://archive.blender.org/developer/F8462632/image.png) ![image.png](https://archive.blender.org/developer/F8462634/image.png) **Exact steps for others to reproduce the error** [#75567.blend](https://archive.blender.org/developer/F8462636/T75567.blend) - Open file - inspect broken Paint mask selection wireframe - goes away if modifier (subd or multires) is disabled Original report: When I opened up one of my files that I wanted to vertex paint, I noticed some really serious rendering artefacts that prevented me from seeing and painting the vertices. Here are images showing the issue. MultiRes/SubSurf and no modifiers create rendering problems on this model, but strangely enough I don't have these problems on every sculpt. I don't know yet the true cause of these bugs. ![Broken Vertex Painting 2.png](https://archive.blender.org/developer/F8461143/Broken_Vertex_Painting_2.png) ![Broken Vertex Painting.png](https://archive.blender.org/developer/F8461213/Broken_Vertex_Painting.png) Here is a file with a piece of the model I had a problem with. Tried making it as small as possible. [Broken Vertex Painting.blend](https://archive.blender.org/developer/F8461144/Broken_Vertex_Painting.blend) To start finding the problem you first need to go into Vertex Paint Mode. The mesh should be all white with wireframes showing despite the option being toggled off in Viewport Overlays. Toggle Viewport Overlays settings on and off and try to change the settings and nothing works except when you disable Viewport Overlays completely. If you start painting on the model (i.e. black) the paint will not appear on the model. If you enable MultiRes in the modifier window you will notice the broken rendering of the vertex paint with dark lines drawn all across the model.

#75599 was marked as duplicate of this issue

#75599 was marked as duplicate of this issue

Added subscriber: @Frozen_Death_Knight

Added subscriber: @Frozen_Death_Knight
Frozen_Death_Knight changed title from Broken vertex painting with MultiRes/SubSurf and invisible vertex painting with permanent visible wireframes to Broken vertex painting with MultiRes/SubSurf and without modifier the mesh has completely invisible vertex painti with permanently visible wireframes 2020-04-10 04:17:12 +02:00
Frozen_Death_Knight changed title from Broken vertex painting with MultiRes/SubSurf and without modifier the mesh has completely invisible vertex painti with permanently visible wireframes to Broken vertex painting with MultiRes/SubSurf and without modifiers the mesh has completely invisible vertex paint with permanently visible wireframes 2020-04-10 04:17:44 +02:00

Added subscriber: @zeauro

Added subscriber: @zeauro

I can reproduce the two problems on ubuntu 18.04 64 bits. Nvidia Titan Black with master d3cda49 .

First bug is related to wireframe lines from Face Selection Paint Mask.
Those Wireframe Lines are messed up by subdivision.
The bug appears when mesh has a subdivision or a multires modifier and Paint Mask is enabled.
If preview level is set to 0, wireframe lines are correct. But at a superior level, they are pointing to left bottom corner of Viewport.
It is the case with Vertex Paint Mode and Weight Paint.
There are no wire at all in Texture Paint mode that use only an overlay coloring faces for Paint Mask.
But this overlay is also affected by subdivision. Instead of being propagated at an higher level of subdivision, it is simply gone.

Second bug is related to Masks and Face Sets overlays from Sculpt mode.
First, create a mask or a face set is created in Sculpt mode.
Then, switch to vertex paint mode or weight paint mode.
There is no problem if mesh is subdivided by a modifier. But if there is no modifier, there are artifacts.
Some faces may be black. Others became colored tris in vertex paint mode.
In weight paint mode, colors other than blue may be black.
Then, go back to sculpt mode to disable Face Sets and Masks overlays.
And finally, switch again to vertex paint mode. -> glitches are gone.

It looks like overlays (non pertinent in Vertex or Weight Paint mode) are still active in a viewport when switching from Sculpt mode to Vertex or Weight Paint mode.
That does not happen if you switch from one workspace dedicated to Sculpt mode to another dedicated to a Paint mode.

I can reproduce the two problems on ubuntu 18.04 64 bits. Nvidia Titan Black with master d3cda49 . First bug is related to wireframe lines from Face Selection Paint Mask. Those Wireframe Lines are messed up by subdivision. The bug appears when mesh has a subdivision or a multires modifier and Paint Mask is enabled. If preview level is set to 0, wireframe lines are correct. But at a superior level, they are pointing to left bottom corner of Viewport. It is the case with Vertex Paint Mode and Weight Paint. There are no wire at all in Texture Paint mode that use only an overlay coloring faces for Paint Mask. But this overlay is also affected by subdivision. Instead of being propagated at an higher level of subdivision, it is simply gone. Second bug is related to Masks and Face Sets overlays from Sculpt mode. First, create a mask or a face set is created in Sculpt mode. Then, switch to vertex paint mode or weight paint mode. There is no problem if mesh is subdivided by a modifier. But if there is no modifier, there are artifacts. Some faces may be black. Others became colored tris in vertex paint mode. In weight paint mode, colors other than blue may be black. Then, go back to sculpt mode to disable Face Sets and Masks overlays. And finally, switch again to vertex paint mode. -> glitches are gone. It looks like overlays (non pertinent in Vertex or Weight Paint mode) are still active in a viewport when switching from Sculpt mode to Vertex or Weight Paint mode. That does not happen if you switch from one workspace dedicated to Sculpt mode to another dedicated to a Paint mode.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Can confirm.

For the second issue (vertexpaint / weightpaint overlays broken after using sculpt masks), we already have #74694 (Vertex and weight paint mode broken after using sculpt mode mask tools) open.

Can confirm. For the second issue (vertexpaint / weightpaint overlays broken after using sculpt masks), we already have #74694 (Vertex and weight paint mode broken after using sculpt mode mask tools) open.
Member

will try to strip the report down to the first issue [paint mask selection overlay wires messed up by subd/multires]...

will try to strip the report down to the first issue [paint mask selection overlay wires messed up by subd/multires]...
Philipp Oeser changed title from Broken vertex painting with MultiRes/SubSurf and without modifiers the mesh has completely invisible vertex paint with permanently visible wireframes to Paint Mask Selection wireframe is broken when the mesh is subdivided by either `Subdivision` or `Multires` modifiers 2020-04-10 13:15:29 +02:00
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Bisected to 57d8bde088

CC @Jeroen-Bakker

Bisected to 57d8bde088 CC @Jeroen-Bakker
Jeroen Bakker self-assigned this 2020-04-11 11:35:36 +02:00

This issue was referenced by a703bbb4d7

This issue was referenced by a703bbb4d71c200aa02d7bdc741ad3b5cab38509
Member

Added subscriber: @demmordor

Added subscriber: @demmordor
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges added this to the 2.83 LTS milestone 2023-02-08 16:38:06 +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
5 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#75567
No description provided.