Maniphest T93171

material index isn't re-captured after realize instances node (unlike other attributes (uv_map)
Closed, Archived

Assigned To
None
Authored By
michael campbell (3di)
Nov 18 2021, 12:54 AM
Tags
  • BF Blender
  • Geometry Nodes
Subscribers
Jacques Lucke (JacquesLucke)
michael campbell (3di)

Description

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

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-11 18:53, hash: rB0533f2851e7e
Worked: (newest version of Blender that worked as expected)

open below file and change the material index on the set material index node. After the realize instances node the value is not retrieved (unlike the uv_map attribute).

Event Timeline

michael campbell (3di) created this task.Nov 18 2021, 12:54 AM
michael campbell (3di) added a project: Geometry Nodes.Nov 18 2021, 1:00 AM
Jacques Lucke (JacquesLucke) closed this task as Archived.Nov 19 2021, 9:40 AM
Jacques Lucke (JacquesLucke) added a subscriber: Jacques Lucke (JacquesLucke).

The Realize Instances node (just like the Join Geometry) node is allowed to change material indices. This is required for correct behavior when merging multiple geometries with different materials. You can't rely on the material index remaining stable here. Just use the Set Material node instead of dealing with material indices manually. I'm starting to think it was a mistake to add the Set Material Index node.

Ref T93177.