Writing to an attribute that is also a vertexgroup results in black when used in a shader #95610
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#95610
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Added subscriber: @RobTuytel
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs User Info'
Seems like the .blend file is missing?
path_3.1.blend
the file is now included
Changed status from 'Needs User Info' to: 'Needs Triage'
Added subscriber: @PratikPB2123
I can confirm. Broke between
5920de9247f2 - 48fbf0baea88
@lichtwerk , can you check?
I suspect issue came with
e7912dfa19
orb8a634cb1d
(I get an assert when opening this file on debug build)
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Added subscriber: @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
Attribute color does not appear on meshto Writing to an attribute that is also a vertexgroup results in black when used in a shaderHaven't checked in detail right now, but it's probably related to D14051.
This issue was referenced by
7313a84c5a
Changed status from 'Needs Developer To Reproduce' to: 'Resolved'