Skip to content

Add support for USD material interfaces#3061

Open
LouRohanNV wants to merge 1 commit intogoogle-deepmind:mainfrom
LouRohanNV:fixUsdMaterialInterfaces
Open

Add support for USD material interfaces#3061
LouRohanNV wants to merge 1 commit intogoogle-deepmind:mainfrom
LouRohanNV:fixUsdMaterialInterfaces

Conversation

@LouRohanNV
Copy link

@LouRohanNV LouRohanNV commented Jan 30, 2026

  • use GetValueProducingAttributes() for improved input resolution.
  • use std::filesystem to avoid leaking file handles

In this zip file there are 3 flattened (no layer structure) examples:

  • materials_no_interface.usda: no material interface, the Shader inputs contain the values (file, color, roughness, etc.)
  • materials_interface.usda: material interface, the Shader inputs are connected to inputs in the Material prim
  • materials_interface_instance.usda: material interface with instanced materials, the Shader inputs are connected to inputs in the Material prim and the Materials are instanced (this is a little more odd in these usda files because they've been flattened for this case)

materials_interface.zip

- use GetValueProducingAttributes() for improved input resolution.
- use std::filesystem  to avoid leaking file handles
Copy link
Collaborator

@havess havess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Super useful thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants