Regression: Vertex Color From Weight ignores destination Color Attribute selection #98861

Closed
opened 2022-06-13 21:27:22 +02:00 by Jakub Jaszewski · 17 comments

Blender Version
Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-05-12 23:29, hash: 427a2c920a
Worked: version: 3.1.2

Short description of error
Blender ignores chosen destination attribute when transfering vertex weights into Color Attributes. Instead to selected attribute it writes to first Color Attribute in the list.

Exact steps for others to reproduce the error

  • Open attached file
  • Select the Vertex Group "RIGHT"
  • Select the Color Attribute (formerly Vertex Color) "col_RIGHT"
  • Go to {nav Paint > Vertex Color from Weight}
    Blender will write color information to "col_LEFT".

vert_col_from_weight.blend

**Blender Version** Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-05-12 23:29, hash: `427a2c920a` Worked: version: 3.1.2 **Short description of error** Blender ignores chosen destination attribute when transfering vertex weights into Color Attributes. Instead to selected attribute it writes to first Color Attribute in the list. **Exact steps for others to reproduce the error** - Open attached file - Select the Vertex Group "RIGHT" - Select the Color Attribute (formerly Vertex Color) "col_RIGHT" - Go to {nav Paint > Vertex Color from Weight} Blender will write color information to "col_LEFT". [vert_col_from_weight.blend](https://archive.blender.org/developer/F13157520/vert_col_from_weight.blend)

Added subscriber: @silex

Added subscriber: @silex
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

try to transfer vertex weight from vertex group "RIGHT" to vertex color attribute named "col_RIGHT"

how exactly are you trying to do this?

> try to transfer vertex weight from vertex group "RIGHT" to vertex color attribute named "col_RIGHT" how exactly are you trying to do this?

Vertex Paint mode have option to convert vertex weights to color. You can find it in 'Paint' menu in the top bar -> 'Vertex Color from Weight'.

https://docs.blender.org/manual/en/3.1/sculpt_paint/vertex_paint/editing.html

Vertex Paint mode have option to convert vertex weights to color. You can find it in 'Paint' menu in the top bar -> 'Vertex Color from Weight'. https://docs.blender.org/manual/en/3.1/sculpt_paint/vertex_paint/editing.html
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

This is probably because the vertex_paint_from_weight function only works for byte color attributes, and it also relies on ED_mesh_color_ensure, which only works with the face corner domain.

I think this function's implementation should be replaced with use of the attribute API for MeshComponent. D15169 is also a bit related.

This is probably because the `vertex_paint_from_weight` function only works for byte color attributes, and it also relies on `ED_mesh_color_ensure`, which only works with the face corner domain. I think this function's implementation should be replaced with use of the attribute API for `MeshComponent`. [D15169](https://archive.blender.org/developer/D15169) is also a bit related.
Member

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

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

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

Thanks for the report.
I can confirm the problem in the current master.
It looks like a regression.
I'll look for the commit that introduced the problem.


System Information
Operating system: macOS-12.2-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 76.3

Thanks for the report. I can confirm the problem in the current master. It looks like a regression. I'll look for the commit that introduced the problem. --- **System Information** Operating system: `macOS-12.2-arm64-arm-64bit 64 Bits` Graphics card: `Apple M1 Apple 4.1 Metal - 76.3`
Germano Cavalcante changed title from Vertex Color From Weight ignores destination Color Attribute selection to Regression: Vertex Color From Weight ignores destination Color Attribute selection 2022-06-17 15:59:52 +02:00
Member

Technically it's not really a regression, since it will still work for any attribute that fits the old "vertex color" definition (byte color, face corner domain).
A newly default color attribute does not fit the old definition, but any previously existing "vertex colors" would.

Technically it's not really a regression, since it will still work for any attribute that fits the old "vertex color" definition (byte color, face corner domain). A newly default color attribute does *not* fit the old definition, but any previously existing "vertex colors" would.

I'm having trouble understanding what still works.
In the attached file both attributes are Face Corner > Byte Color
And the transfer from Vertex Group to Color Attribute works as long as the attribute is first on the stack.

The regression I see is that in 3.1.2 it would always transfer to the selected Vertex Color, but in 3.2.0 it is always to the first Color Attribute

I'm having trouble understanding what still works. In the attached file both attributes are `Face Corner` > `Byte Color` And the transfer from Vertex Group to Color Attribute works as long as the attribute is first on the stack. The regression I see is that in 3.1.2 it would always transfer to the selected Vertex Color, but in 3.2.0 it is always to the first Color Attribute
Member

Ah, makes sense, I think I missed that part.

Ah, makes sense, I think I missed that part.
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

#98975 and #98960 seems to be the same core issue, I will not merge them for now until we are sure.

#98975 and #98960 seems to be the same core issue, I will not merge them for now until we are sure.
Member

Closed as duplicate of #98975

Closed as duplicate of #98975
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#98861
No description provided.