Material node 'Color Attribute' does not find attribute if geometry nodes generate geometry other than Mesh #117536

Open
opened 2024-01-26 11:09:33 +01:00 by Nisim Joseph · 7 comments

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33

Blender Version
Broken: versions: 3.6.x and 4.0.x
Worked: none

Short description of error
When we add color attributes to the output of Geometry Nodes, we can access these attributes in the Shader Editor.
However, if the geometry generated for the object is something other than Mesh, the Color Attribute node does not find these attributes and turns red (even though they exist).
See the attached screencast video that shows the issue:

Exact steps for others to reproduce the error

  • Open attached .blend file
  • In the Geometry Node Editor, connect the Points node to the Set Material node

Not that the Color Attribute node in the Shader Editor has a red input indicating that it is invalid.

**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: versions: 3.6.x and 4.0.x Worked: none **Short description of error** When we add color attributes to the output of Geometry Nodes, we can access these attributes in the Shader Editor. However, if the geometry generated for the object is something other than `Mesh`, the `Color Attribute` node does not find these attributes and turns red (even though they exist). See the attached screencast video that shows the issue: <video src="/attachments/3f8f76c6-d534-4df1-b004-fc87d09f1eae" controls></video> **Exact steps for others to reproduce the error** - Open attached .blend file - In the Geometry Node Editor, connect the Points node to the Set Material node Not that the `Color Attribute` node in the Shader Editor has a red input indicating that it is invalid.
Nisim Joseph added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-01-26 11:09:34 +01:00

Thank you for the report. However, according to the manual:

If the active object has no mesh, a warning will be displayed.

Since the generated geometry is of type "Point Cloud" and not "Mesh", the behavior you have described seems to be expected.

Not a bug AFAICS, closing.

Feel free to comment if there is misunderstanding.


EDIT: no warning is displayed.

Thank you for the report. However, according to the [manual](https://docs.blender.org/manual/en/4.1/render/shader_nodes/input/vertex_color.html#properties): > If the active object has no mesh, a warning will be displayed. ~~Since the generated geometry is of type "Point Cloud" and not "Mesh", the behavior you have described seems to be expected.~~ ~~Not a bug AFAICS, closing.~~ ~~Feel free to comment if there is misunderstanding.~~ --- EDIT: no warning is displayed.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2024-01-26 15:46:13 +01:00
Author

ok, so how to use it if I do want to use the Points node and get it as Mesh?
can you guide me on how to handle this?

ok, so how to use it if I do want to use the Points node and get it as Mesh? can you guide me on how to handle this?

Analyzing better, the reason for this behavior is not exactly because the geometry is Point Cloud type. It's more because the UI does no find the specified attributes in the Mesh.
This already goes into issues that are outside my expertise.
Maybe this is something that hasn't been implemented for generated Point Clouds?

Cc. @JacquesLucke, @HooglyBoogly

Analyzing better, the reason for this behavior is not exactly because the geometry is Point Cloud type. It's more because the UI does no find the specified attributes in the Mesh. This already goes into issues that are outside my expertise. Maybe this is something that hasn't been implemented for generated Point Clouds? Cc. @JacquesLucke, @HooglyBoogly
Member

This is a limitation of the various attribute selectors in many places. Currently the one in the color attribute node just looks in the active object's evaluated mesh. This might still work, but the button will show with a red alert. It's probably worth changing this attribute selector to be more of a "suggestion" like attribute name fields in geometry nodes where you can still type in any string you want. It's hard to get a complete view on all the attributes for the UI.

A workaround for now would be using the "Attribute" node instead of the "Color Attribute" node.

This is a limitation of the various attribute selectors in many places. Currently the one in the color attribute node just looks in the active object's evaluated mesh. This might still work, but the button will show with a red alert. It's probably worth changing this attribute selector to be more of a "suggestion" like attribute name fields in geometry nodes where you can still type in any string you want. It's hard to get a complete view on all the attributes for the UI. A workaround for now would be using the "Attribute" node instead of the "Color Attribute" node.
Germano Cavalcante changed title from Output Attribute is not recognize while Geometry Nodes "Points" is used to Material node 'Color Attribute' does not find attribute if geometry nodes generate geometry other than Mesh 2024-01-26 22:08:59 +01:00

In that case, I think we can confirm the issue.

In that case, I think we can confirm the issue.
Germano Cavalcante added
Status
Confirmed
and removed
Status
Needs Info from Developers
labels 2024-01-26 22:09:47 +01:00
Member

I'm not sure actually, AFAIK this is expected behavior. Not that it's good behavior, but "fixes" would be things like "Point Cloud: Add color attributes list" or "Nodes: Improve attribute selection to consider all evaluated geometry". Not exactly bug fixes.

I'm not sure actually, AFAIK this is expected behavior. Not that it's good behavior, but "fixes" would be things like "Point Cloud: Add color attributes list" or "Nodes: Improve attribute selection to consider all evaluated geometry". Not exactly bug fixes.
Germano Cavalcante added
Type
Known Issue
and removed
Type
Report
labels 2024-01-26 23:06:12 +01:00
Author

Thank you.
Any chance it will be handled in the future?
It looks like it is an issue that needs to be addressed.

Thank you. Any chance it will be handled in the future? It looks like it is an issue that needs to be addressed.
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#117536
No description provided.