USD export: Material bindings are lost when referenced

When an exported .usda is referenced from another file, the material bindings are lost.
This is because the geometry and materials are written under separate root prims.

■ Current output (Box.usda)
defaultPrim = “”
/Default/Box/… ← geometry
/Rhino/Materials/… ← materials

When referenced with @Box.usdaBox.usda@, /Rhino/Materials is out of scope, and the binding is ignored:
…refers to a path outside the scope of the reference from </Box_A>. Ignoring.

■ Expected output (Box_expected.usda)
defaultPrim = “Default”
/Default/Box/…
/Default/Materials/…

  • With geometry and materials under one root prim (/Default), both stay in scope when referenced, so the bindings are kept.
  • With that root prim set as defaultPrim, the file can be referenced simply as @Box_expected.usda@, without a prim path.

The USD Working Group’s asset structure guidelines also state:

USD assets must encapsulate all of the geometry and materials, in order to be efficiently referenced in a pipeline or workflow.
The materials themselves may be referenced from some global library, but their reference point must be underneath the asset’s root primitive.

■ Attachments

  • Box.usda: Rhino output (MeshBox + red material)
  • Box_expected.usda: Manually edited version
  • Scene_ref.usda: References both side by side
  • usdview_Scene_ref.png: Box_A (Box.usda) is gray, Box_B (Box_expected.usda) is red

Version: Rhino 9 BETA (9.0.26293.12303, 2026/10/20)
Export options: Default layer: Default / Model name: Box / Block handling: Embedded / Include user strings: on

Any feedback would be appreciated.

Scene_ref.usda (304 Bytes)

Box_expected.usda (2.6 KB)

Box.usda (2.6 KB)

Where are you trying to send the usd? Knowing the target app is helpful.

@scottd

Thanks for your reply.

My main targets are Unreal Engine 5 and Blender.

I used usdview only as a reference viewer to check the standard USD behavior.
Since this comes from how USD references work, I believe any app that references the file would see the same result.

I confirmed the same result in both apps with Scene_ref.usda:
Box_A (Box.usda) loses its material, while Box_B (Box_expected.usda) appears red.

I reported this, so we should be able to get it fixed

@scottd

Thank you for reporting this!

I found one more related case: block instances exported with Block handling: Separate files have the same issue.

Setup: a block definition BLK_Box (a MeshBox with a red material), with two instances placed.

Scene.usda references the block as:
prepend references = @BLK_Box.usda@</Default/Scene/Geometry/_____>

BLK_Box.usda has its materials under /Rhino/Materials, so the bindings are lost on both instances.

Note that moving the materials under the root prim alone would not fix this case,
because the reference points to </Default/Scene/Geometry/_____>, which would still exclude them.
The reference would also need to point to the root prim (or the defaultPrim, with no prim path).

Also, BLK_Box.usda uses the scene’s names (/Default/Scene/…) instead of the block’s own name.
A root prim named after the block (e.g. /BLK_Box, set as defaultPrim) would seem more natural.

Attached: Scene.usda and BLK_Box.usda, both exported from Rhino as-is
Export options: Default layer: Default / Model name: Scene / Block handling: Separate files / Include user strings: on

Hope this helps with the fix.

Scene.usda (1.6 KB)

BLK_Box.usda (2.8 KB)