Cycles: Vertex Color shader node is not handled properly/ignored if no vertex color is specified (should use the 'active_render' then) #73938
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#73938
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
Graphics card: AMD Radeon R9 200 series
Blender Version
Broken: 2.81a
The Vertex Color shader node is either ignored or not handled properly by the Cycles renderer. It works correctly in Eevee, and most (perhaps all) of the viewport rendering modes. In Cycles, the output of the Vertex Color node is always black. In order to have Cycles process vertex colours, it is necessary to use the old-style approach of creating an Attribute node and assigning it to the "Col" (default) attribute, or whatever the vertex colour data is named, if it is not the default.
Exact steps for others to reproduce the error
The Blender project at https://www.beneaththewaves.net/Blender_Debugging-Vertex_Colours-0001.7z (also attached to this ticket) contains a minimal reproduction of this issue. It contains two cubes which are identical except that one uses a material where the output colour is based on the Vertex Color node, and the other contains one which is based on the Attribute node set to "Col". It will appear to be correct in most (if not all) of the interactive views in Blender, as well as when rendered in Eevee. When rendered in Cycles, the cube on the left will appear 100% black. The Vertex Color output is also treated as zero in any more complex shading pipelines, when rendered in Cycles specifically.
Blender_Debugging-Vertex_Colours-0001.blend
Sample rendering in Cycles: (also available at https://www.beneaththewaves.net/Cycles_Vertex_Colours-0001.png)
Added subscriber: @blincoln
#74459 was marked as duplicate of this issue
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Archived'
Looks like the is no vertex color layer actually selected in the node?
(you need to pick one)
Blender_Debugging-Vertex_Colours-0001-corrected.blend
Assume this is not a bug, closing.
()feel free though to comment again if issues persist or if this was a misunderstanding...
If I need to pick one, why does the cube on the left render as expected without doing that in every other Blender component except Cycles? The behaviour is inconsistent, and the documentation doesn't mention this. It sure seems to me that something is flagging that vertex colour layer as the default, and Cycles is ignoring it.
Viewport (Material Preview):
Viewport (Render Preview):
Eevee:
Workbench:
This is true with imported Collada models whose vertex colour layer is not named "Col" as well - everything works fine in every Blender component without explicitly selecting a vertex colour layer, except Cycles. So, again, something seems to be marking one of them as the default and using that everywhere other than Cycles.
The reason I opened this ticket is that I had a complex project which became too memory-intensive to render in Eevee any longer with a 3GB video card. It rendered perfectly in Eevee up until that time, displayed correctly in every viewport mode, but all objects were 100% black when I switched to Cycles. I spent two days troubleshooting the problem, because there was no indication in the UI as to why Cycles was behaving differently. The only reason I even began to suspect vertex colours was that if I ran Blender in debugging mode, and enabled Open Shading Language, Blender would crash when rendering the project in Cycles, and the last message in the log was:
WARNING: Shader warning [node_vertex_color]: Invalid attribute.
Respectfully, the inconsistency is a bug. Cycles should handle the Vertex Color node the same way that every other Blender component does.
Changed status from 'Archived' to: 'Confirmed'
Hm, if nothing is provided in the
Vertex Color
Node, then theactive_render
(Camera icon) kicks in (so watever you choose there will be rendered - in Eevee but not in Cycles)For UVMaps this is a similar thing, if nothing is provided in the UV Map Node, then the
active_render
(Camera icon) kicks in (so watever you choose there will be rendered - in Eevee and for UVs also in Cycles)So to not only keep this consistent between Cycles and Eevee, but also for Cycles being consistent to itself, will reopen as valid bug.
Suggest to use whatever is set as
active_render
vertex color slot if nothing is provided in the Vertex Color node...Cycles: Vertex Color shader node is not handled properly/ignoredto Cycles: Vertex Color shader node is not handled properly/ignored if no vertex color is specified (should use the 'active_render' then)Changed status from 'Confirmed' to: 'Archived'
Thank you.
FWIW, I think that's what the other rendering components are doing, because the Vertex Color node is basically just a convenience feature so that users don't have to add an Attribute node, figure out the name of the active vertex colour layer, and enter it in the field. If one needs to enter the name of the vertex colour layer, there's no reason (as far as I can tell) to use the Vertex Color node instead of Attribute.
...and no, I did not intend to close this task, or claim it. My user permissions are restricted enough that apparently that will happen by default if I reply to the ticket, so I won't do that again.
Changed status from 'Archived' to: 'Confirmed'
This issue was referenced by blender/cycles@aaf5549c48
This issue was referenced by
65ea5020c4
Changed status from 'Confirmed' to: 'Resolved'
Added subscriber: @spiraloid-3