Cannot set the Color attribute to display an object through Geometry Nodes #109443

Open
opened 2023-06-28 14:33:37 +02:00 by Thomas-Hedden · 8 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98

Blender Version
Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3
Worked: version: 3.4.1

behavior changed in 6514bb05ea

Short description of error
Using the "Store Named Attribute" node setting the Attribute "Col" in geometry nodes, no longer sets the Vertexcolor of an object procedurally. When the Curve is converted to mesh and then the created "Col" Vertexcolor attribute is clicked, the colors show up.

In 3.4 and below this would override the vertexcolor attribute in "realtime" without converting the curve to mesh.

Exact steps for others to reproduce the error
On a Curve Object, add a geometry node

  • create "Store Named Attribute"
  • set the "Name" to "Col"
  • change the color
  • Set the Viewport shading to color "Attribute" (seeattached Images) to view the result

Attached file with example setup that used to overwrite the vertexcolor in 3.4.1, but no longer does in 3.5.1

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98 **Blender Version** Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` Worked: version: 3.4.1 behavior changed in 6514bb05ea **Short description of error** Using the "Store Named Attribute" node setting the Attribute "Col" in geometry nodes, no longer sets the Vertexcolor of an object procedurally. When the Curve is converted to mesh and then the created "Col" Vertexcolor attribute is clicked, the colors show up. In 3.4 and below this would override the vertexcolor attribute in "realtime" without converting the curve to mesh. **Exact steps for others to reproduce the error** On a Curve Object, add a geometry node - create "Store Named Attribute" - set the "Name" to "Col" - change the color - Set the Viewport shading to color "Attribute" (seeattached Images) to view the result Attached file with example setup that used to overwrite the vertexcolor in 3.4.1, but no longer does in 3.5.1
Thomas-Hedden added the
Status
Needs Triage
Type
Report
Priority
Normal
labels 2023-06-28 14:33:38 +02:00

I can confirm the problem.

It looks more like a Worbench UI issue since it is not possible to specify which attribute is to be displayed as Color attribute in an object of type Curve.

@HooglyBoogly, since you've already touched on the attribute system a few times, any idea if this switch from displaying black is intentional?

I can confirm the problem. It looks more like a Worbench UI issue since it is not possible to specify which attribute is to be displayed as Color attribute in an object of type Curve. @HooglyBoogly, since you've already touched on the attribute system a few times, any idea if this switch from displaying black is intentional?
Germano Cavalcante added
Status
Needs Info from Developers
and removed
Status
Needs Triage
labels 2023-06-28 20:52:21 +02:00
Member

This is a known issue for now. The workbench "Attribute" coloring uses the active color attribute, and due to some internal changes, the store named attribute node doesn't set the active color anymore. TBH it only worked by mistake before, but it is useful so I can see why people used it. In the meantime I'd recommend using material preview and a material that specifically references the attribute, or the viewer node.

This is a known issue for now. The workbench "Attribute" coloring uses the active color attribute, and due to some internal changes, the store named attribute node doesn't set the active color anymore. TBH it only worked by mistake before, but it is useful so I can see why people used it. In the meantime I'd recommend using material preview and a material that specifically references the attribute, or the viewer node.
Germano Cavalcante changed title from Writing of vertexcolor in curve objects via Geometry nodes no longer possible in 3.5.1 to Cannot set the Color attribute to display an object through Geometry Nodes 2023-06-28 22:00:01 +02:00

It looks more like a design issue for Workbench that needs to be discussed.
I'm confirming it as a Know Issue for now.

It looks more like a design issue for Workbench that needs to be discussed. I'm confirming it as a Know Issue for now.
Author

Hey thanks for looking into this! I’m mainly using this feature to write edge pointiness data into vertex color for material masks.

Hey thanks for looking into this! I’m mainly using this feature to write edge pointiness data into vertex color for material masks.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-06-29 09:12:28 +02:00
Author

Clicked the close issue button -.-

Clicked the close issue button -.-
Blender Bot added
Status
Confirmed
and removed
Status
Archived
labels 2023-06-29 09:13:04 +02:00
Member

In Solid viewport shading, with the Attribute mode, behavior changed in 6514bb05ea

For meshes, this has already been reported in #103551 (and I would bet that the issue here -- for curves -- also wont really be considered a bug, since for curves, the design of the active attribute cant really be met...)

Leaving up to @HooglyBoogly though to make a final decision here.

In Solid viewport shading, with the Attribute mode, behavior changed in 6514bb05ea5a138d897151db02cb0bad9fe01968 For meshes, this has already been reported in #103551 (and I would bet that the issue here -- for curves -- also wont really be considered a bug, since for curves, the design of the active attribute cant really be met...) Leaving up to @HooglyBoogly though to make a final decision here.
Member

Oh, I still had this tab open and did not notice there where comments already

Oh, I still had this tab open and did not notice there where comments already
Philipp Oeser added the
Module
Nodes & Physics
label 2023-07-05 11:43:38 +02:00

I'd like to share about the strange behavior of this issue.
It seems that the problem arises due to the generated Geometry.
That is, the Color Attribute set with the Store Named Attribute Node for the GroupInput's Geometry displays correctly.
Even when the GroupInput is combined with the JoinGeometryNode, it still displays correctly.
However, the outcome changes based on the input order to the JoinGeometry.
It only displays correctly when the GroupInput is the first input.
I hope sharing this strange behavior can help in resolving the issue.

I'd like to share about the strange behavior of this issue. It seems that the problem arises due to the generated Geometry. That is, the Color Attribute set with the Store Named Attribute Node for the GroupInput's Geometry displays correctly. Even when the GroupInput is combined with the JoinGeometryNode, it still displays correctly. However, the outcome changes based on the input order to the JoinGeometry. It only displays correctly when the GroupInput is the first input. I hope sharing this strange behavior can help in resolving the issue.
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#109443
No description provided.