Cycles: Attribute node renders black when some reserved standard attribute names are used #87494

Open
opened 2021-04-14 16:37:08 +02:00 by Germano Cavalcante · 26 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001

Blender Version
Broken: 2.79 - 2.93.0 Alpha, branch: master, commit date: 2021-04-14 02:19, hash: 6776b74d0a
Worked: Never?

Short description of error
In Cycles, the Attribute node returns black when an attribute name is reserved (such as "color" or "temperature").
The attribute can be created from the attribute panel or through Geometry Nodes.

Seems like any these attribute names could cause the issue:
https://projects.blender.org/blender/blender/src/branch/main/intern/cycles/scene/attribute.cpp#L320-L392

Exact steps for others to reproduce the error

  • Open attached file
  • Display render preview (note that the object is black)
  • Change the name on the node attribute and Vertex Color to "color2" (or switch to node having "temp" attribute)
    Now the node attribute works

vcol_cycles_name_bug.blend
temperature_attribute_shader_handling.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001 **Blender Version** Broken: 2.79 - 2.93.0 Alpha, branch: master, commit date: 2021-04-14 02:19, hash: `6776b74d0a` Worked: Never? **Short description of error** In Cycles, the Attribute node returns black when an attribute name is reserved (such as "color" or "temperature"). The attribute can be created from the attribute panel or through Geometry Nodes. Seems like any these attribute names could cause the issue: https://projects.blender.org/blender/blender/src/branch/main/intern/cycles/scene/attribute.cpp#L320-L392 **Exact steps for others to reproduce the error** - Open attached file - Display render preview (note that the object is black) - Change the name on the node attribute and Vertex Color to "color2" (or switch to node having "temp" attribute) Now the node attribute works [vcol_cycles_name_bug.blend](https://archive.blender.org/developer/F9933464/vcol_cycles_name_bug.blend) [temperature_attribute_shader_handling.blend](https://projects.blender.org/attachments/8bb74567-193d-4a5e-8e06-8ff2215390d4)
Author
Member

Added subscriber: @mano-wii

Added subscriber: @mano-wii

#101880 was marked as duplicate of this issue

#101880 was marked as duplicate of this issue

#101037 was marked as duplicate of this issue

#101037 was marked as duplicate of this issue

#100193 was marked as duplicate of this issue

#100193 was marked as duplicate of this issue

#99582 was marked as duplicate of this issue

#99582 was marked as duplicate of this issue

#93531 was marked as duplicate of this issue

#93531 was marked as duplicate of this issue

#95168 was marked as duplicate of this issue

#95168 was marked as duplicate of this issue

#94988 was marked as duplicate of this issue

#94988 was marked as duplicate of this issue

#92116 was marked as duplicate of this issue

#92116 was marked as duplicate of this issue

#87373 was marked as duplicate of this issue

#87373 was marked as duplicate of this issue
Author
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member
Apparently this is related to built-in attributes as seen in https://blender.stackexchange.com/questions/14262/what-can-you-call-from-the-attribute-node#14267
Author
Member

Added subscribers: @slowburn, @CharlieJolly

Added subscribers: @slowburn, @CharlieJolly

I just wanted to clarify that this is not limited to vertex colors. Thanks to a recently added feature, custom attributes created in geometry nodes can be used directly in Cycles without the need for vertex colors: https://developer.blender.org/rB3a6d6299d
Maybe the fix will apply to GN as well, but I think it would be good if you could modify the name or description of this task to indicate that it also affects geometry nodes, since you closed my task.

I just wanted to clarify that this is not limited to vertex colors. Thanks to a recently added feature, custom attributes created in geometry nodes can be used directly in Cycles without the need for vertex colors: https://developer.blender.org/rB3a6d6299d Maybe the fix will apply to GN as well, but I think it would be good if you could modify the name or description of this task to indicate that it also affects geometry nodes, since you closed my task.
Member

Added subscribers: @barakooda, @EAW

Added subscribers: @barakooda, @EAW

Added subscribers: @1029910278, @HooglyBoogly

Added subscribers: @1029910278, @HooglyBoogly
Added subscribers: @MysteryPancake, @kevindietrich, @lichtwerk
Philipp Oeser changed title from Attribute node does not work in Cycles when referencing a Vertex Color named "color" to Attribute node does not work in Cycles (renders black) when some reserved standard attribute names (such as "color") are used 2022-01-24 12:39:52 +01:00
Author
Member

Added subscribers: @OrestisKonstantinidis, @null

Added subscribers: @OrestisKonstantinidis, @null
Member

Added subscriber: @shadow_creeper

Added subscriber: @shadow_creeper
Contributor

Removed subscriber: @MysteryPancake

Removed subscriber: @MysteryPancake
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Added subscriber: @Matthias-Schafer

Added subscriber: @Matthias-Schafer
Author
Member

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Contributor

Added subscriber: @dupoxy

Added subscriber: @dupoxy
Contributor

still true it seems ... I was about to fill a new bug report using this file: reT87494.blend
Capture d’écran 2023-01-25 à 19.10.50.png

still true it seems ... I was about to fill a new bug report using this file: [reT87494.blend](https://archive.blender.org/developer/F14197973/reT87494.blend) ![Capture d’écran 2023-01-25 à 19.10.50.png](https://archive.blender.org/developer/F14197976/Capture_d_e_cran_2023-01-25_a__19.10.50.png)
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:28 +01:00
Pratik Borhade changed title from Attribute node does not work in Cycles (renders black) when some reserved standard attribute names (such as "color") are used to Cycles: Attribute node renders black when some reserved standard attribute names are used 2023-08-07 10:27:56 +02:00
Member

This is also valid for "temperature" attribute (I've included those changes in title/description).
ada738ac7c has fixed the EEVEE part of it but cycles still renders black output.

This is also valid for "temperature" attribute (I've included those changes in title/description). ada738ac7cfaea3de986e9837cf33905a59762cd has fixed the EEVEE part of it but cycles still renders black output.
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
10 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#87494
No description provided.