Writing to an attribute that is also a vertexgroup results in black when used in a shader #95610

Closed
opened 2022-02-08 13:02:39 +01:00 by rob · 14 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-07 22:08, hash: 229d0ace02
Worked: (newest version of Blender that worked as expected)

Caused by b8a634cb1d

Short description of error
When adding a color in the output of the Geometry nodes group and i add this color in the attribute node in the shader editor, it does not appear.

When opening the included Blender file, switch to material view and the plane shows black. This should be a black and white plane because i added a setup to apply this black and white color in geo nodes. When opening the Blend file in Blender 3.0, it works.

path_3.1.blend

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-07 22:08, hash: `229d0ace02` Worked: (newest version of Blender that worked as expected) Caused by b8a634cb1d **Short description of error** When adding a color in the output of the Geometry nodes group and i add this color in the attribute node in the shader editor, it does not appear. When opening the included Blender file, switch to material view and the plane shows black. This should be a black and white plane because i added a setup to apply this black and white color in geo nodes. When opening the Blend file in Blender 3.0, it works. [path_3.1.blend](https://archive.blender.org/developer/F12855626/path_3.1.blend)
Author

Added subscriber: @RobTuytel

Added subscriber: @RobTuytel
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

Seems like the .blend file is missing?

Seems like the .blend file is missing?
Author

path_3.1.blend

the file is now included

[path_3.1.blend](https://archive.blender.org/developer/F12855626/path_3.1.blend) the file is now included
Member

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

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

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

I can confirm. Broke between 5920de9247f2 - 48fbf0baea88
@lichtwerk , can you check?
I suspect issue came with e7912dfa19 or b8a634cb1d

(I get an assert when opening this file on debug build)

I can confirm. Broke between `5920de9247f2 - 48fbf0baea88` @lichtwerk , can you check? I suspect issue came with e7912dfa1959 or b8a634cb1dff (I get an assert when opening this file on debug build)
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Yep, caused by b8a634cb1d

Since that commit enabled writing to vertex colors again, the situation is a bit hairy though.
The example file writes a color to an attribute that is also a vertexgroup.
This never ends up in the vertexgroup (only if you change the type to float).
And vertexgroups themselves were never really readable in a shader tree I think?
So it seems at one point we could write a color to an attribute (that was also a vertexgroup, and this was somehow ignored and only seen as an attribute in the shader tree)

Also this example file does not really use the vertexgroup anyways, so when removing it, the attribute works again in the shader tree.

Not really sure what the best solution here would be? Have vertexgroups be readable in the shadertree also?
CC @JacquesLucke

Yep, caused by b8a634cb1d Since that commit enabled writing to vertex colors again, the situation is a bit hairy though. The example file writes a **color** to an attribute that is also a vertexgroup. This never ends up in the vertexgroup (only if you change the type to float). And vertexgroups themselves were never really readable in a shader tree I think? So it seems at one point we could write a color to an attribute (that was also a vertexgroup, and this was somehow ignored and only seen as an attribute in the shader tree) Also this example file does not really use the vertexgroup anyways, so when removing it, the attribute works again in the shader tree. Not really sure what the best solution here would be? Have vertexgroups be readable in the shadertree also? CC @JacquesLucke
Philipp Oeser changed title from Attribute color does not appear on mesh to Writing to an attribute that is also a vertexgroup results in black when used in a shader 2022-02-09 10:36:25 +01:00
Member

Haven't checked in detail right now, but it's probably related to D14051.

Haven't checked in detail right now, but it's probably related to [D14051](https://archive.blender.org/developer/D14051).

This issue was referenced by 7313a84c5a

This issue was referenced by 7313a84c5acb401817f1c44cfd8bf22428f34424
Member

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Jacques Lucke self-assigned this 2022-02-09 15:54:12 +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#95610
No description provided.