Geonode Modifier outputting black vertex color #84779

Closed
opened 2021-01-16 14:07:41 +01:00 by DorianB · 4 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2021-01-12 20:03, hash: 719bea0d6d

Short description of error
When filling a new attr with Vector/Bool/Color type named with the same name of a vertex-color and a vertex-group, vertex-color rendering will be black when in vertex-paint mode within the openGL viewport

Capture d’écran 2021-01-16 135307.png
Capture d’écran 2021-01-16 135332.png

expected behavior:

  • geonode could write a vertex-color attr.
 If it can write vg's, there's no logical reasons it shouldn't be able to write a vcol, isn't it?  It would make sense depending on the attr type, *Boolean/Float* can only be vg and *Vector/Color type* could only be vcol.

** for example:

  • user choose to fill a new attr with bool or float type -> if vg with same name of the attr found, the vg would fill automatically with the attr values (current behavior)
  • user choose to fill a new attr with Vector/Color type -> if vcol with same name of the attr found, the vcol would fill automatically RGB depending on given vectors
  • OR geonode completely ignore vertex color, thus vcol shouldn't go black in viewport (only for now I suppose? i hope attr to vcol will be supported later)

Exact steps for others to reproduce the error

  1. create a subdivided plane
  2. add a new vg called "Col"
  3. add a new vcol called "Col" and draw something
  4. create a new geonode modifier, fill a new attr with an attribute fill node, choose an attr named "Col", if choosing filling with type Vector/Color/Bool/
  5. go in vertex-color mode, it will render everything in black

File available below
attr_affecting_vcol.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2021-01-12 20:03, hash: `719bea0d6d` **Short description of error** When filling a new attr with Vector/Bool/Color type named with the same name of a vertex-color **and** a vertex-group, vertex-color rendering will be black when in vertex-paint mode within the openGL viewport ![Capture d’écran 2021-01-16 135307.png](https://archive.blender.org/developer/F9581870/Capture_d_écran_2021-01-16_135307.png) ![Capture d’écran 2021-01-16 135332.png](https://archive.blender.org/developer/F9581871/Capture_d_écran_2021-01-16_135332.png) **expected behavior:** - geonode could write a vertex-color attr. ``` If it can write vg's, there's no logical reasons it shouldn't be able to write a vcol, isn't it? It would make sense depending on the attr type, *Boolean/Float* can only be vg and *Vector/Color type* could only be vcol. ``` ** for example: - user choose to fill a new attr with bool or float type -> if vg with same name of the attr found, the vg would fill automatically with the attr values (current behavior) - user choose to fill a new attr with Vector/Color type -> **if vcol with same name of the attr found, the vcol would fill automatically RGB depending on given vectors** - *OR* geonode completely ignore vertex color, thus vcol shouldn't go black in viewport (only for now I suppose? i hope attr to vcol will be supported later) **Exact steps for others to reproduce the error** 1) create a subdivided plane 2) add a new vg called "Col" 3) add a new vcol called "Col" and draw something 4) create a new geonode modifier, fill a new attr with an attribute fill node, choose an attr named "Col", if choosing filling with type Vector/Color/Bool/ 5) go in vertex-color mode, it will render everything in black File available below [attr_affecting_vcol.blend](https://archive.blender.org/developer/F9581878/attr_affecting_vcol.blend)
Author

Added subscriber: @dodododorian

Added subscriber: @dodododorian
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

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

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

This is not a bug, even though I understand the confusion.

The issue is that the Attribute Fill node deletes the existing attribute (which is a vertex group internally) and creates a new attribute with the new type (they cannot exist at the same time due to a name conflict). This new attribute won't be a vertex group internally (no new attribute will be created as vertex group currently). The vertex weight edit mode cannot display the group, because it does not exist on the evaluated mesh. It might be possible to display the original vertex group without edits in the viewport somehow.

The fundamental issue is that Blender had very specialized attribute types (vertex groups, vertex colors, etc.) and now we are slowly moving towards a more generic attribute system that allows various attribute types (integer, float, color, ...) on various domains (vertex, corner, edge, ...). The viewport cannot draw these more generic attributes yet. For the future we have planned an Attribute Edit Mode that can edit all the different kinds of attributes.

In general you can't rely on the fact that vertex group that is used by geometry nodes, will come out as vertex group as well. It might be converted to the "new" system implicitly. Hence you see black.

I think the situation will improve once more parts of Blender are aware of the more generic attribute system. This will not be implemented as a bug fix but as general feature development, therefore I'm closing this.

This is not a bug, even though I understand the confusion. The issue is that the Attribute Fill node deletes the existing attribute (which is a vertex group internally) and creates a new attribute with the new type (they cannot exist at the same time due to a name conflict). This new attribute won't be a vertex group internally (no new attribute will be created as vertex group currently). The vertex weight edit mode cannot display the group, because it does not exist on the evaluated mesh. It might be possible to display the original vertex group without edits in the viewport somehow. The fundamental issue is that Blender had very specialized attribute types (vertex groups, vertex colors, etc.) and now we are slowly moving towards a more generic attribute system that allows various attribute types (integer, float, color, ...) on various domains (vertex, corner, edge, ...). The viewport cannot draw these more generic attributes yet. For the future we have planned an Attribute Edit Mode that can edit all the different kinds of attributes. In general you can't rely on the fact that vertex group that is used by geometry nodes, will come out as vertex group as well. It might be converted to the "new" system implicitly. Hence you see black. I think the situation will improve once more parts of Blender are aware of the more generic attribute system. This will not be implemented as a bug fix but as general feature development, therefore I'm closing this.
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
2 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#84779
No description provided.