Page MenuHome

Mesh Primitive nodes don't display shader in Object mode.
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.92

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-17 23:14, hash: rB30b5fd1a3cd5
Worked: (newest version of Blender that worked as expected)

Short description of error
No materials show on objects with Mesh Primitive nodes involved while in Object mode.
Materials can be displayed in edit mode.

Exact steps for others to reproduce the error
Open a new Blend file, create a new geo nodes tree and add a Mesh primitive node.
Add a shader and view in object and edit mode.


Event Timeline

That is because the material is referenced by the mesh that is passed into geometry nodes and not by the object itself by default. The primitive node has no knowledge about these materials currently.

Currently, the solution is have the object reference the material (instead of the mesh). Then, whatever mesh comes out of geometry nodes will use the material of the object.

I hope that we can improve the material handling in geometry nodes soonish, but that won't make it into 2.93.

I'm closing this, because it is not a bug.