Skip to content

Preserve native object settings in exports and previews - #1418

Closed
cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/rigid-usd-preparationfrom
cvolkcvolk/refactor/native-object-export
Closed

cvolkcvolk wants to merge 2 commits into
cvolkcvolk/refactor/rigid-usd-preparationfrom
cvolkcvolk/refactor/native-object-export

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Export concrete scene objects using their native spawn configurations. Add a cached preview helper that preserves the same asset settings for review thumbnails.

Why this change?

Export currently reconstructs assets from their USD paths and a subset of settings. That can discard native selections or overrides and cannot represent primitive spawners. After #1417 and the earlier configuration and geometry changes, export can use the same configuration as simulation.

For example, an asset configured with a selected USD variant and custom material should export with both settings applied; a configured native cuboid should export without requiring a source USD file.

What changes?

  • Invoke the native spawner in the export stage with a copied configuration, preserving scale, material, physics, and variant settings.
  • Match simulation's rigid-body pose semantics when the body is nested beneath the asset root.
  • Cache concrete rigid-asset previews by configuration, so different settings produce different preview assets.
  • Require a concrete asset and fixed pose for export. This stage still rejects all RigidObjectSet instances; support for single-member sets follows in Use native spawning and cloning for rigid object sets #1419.

The preview helper is connected to heterogeneous members in #1419. This PR keeps the existing RigidObjectSet and YAML APIs; USD hierarchy preparation and runtime assignment remain separate responsibilities.

Validation

After syncing with main (2cc9e9766f): all-files pre-commit passed on this branch. At stack tip #1421, 168 CPU-compatible replay, inference, schema, and GUI tests passed (5 live-service/subprocess cases deselected). GPU simulation checks could not start because the existing container lost CUDA access.

Earlier validation:

6 native export and cached-preview tests passed (1 remote-scene test deselected). pre-commit passed. Full GUI rendering/video and remote kitchen export were not rerun.

Part 4/7 · Stack overview · Based on #1417 · Next: #1419

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Signed-off-by: Clemens Volk <cvolk@nvidia.com>
@cvolkcvolk

Copy link
Copy Markdown
Collaborator Author

Native export and previews aren't needed for asset selection. They will be proposed separately later. Closing.

@cvolkcvolk cvolkcvolk closed this Oct 12, 2026
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.

1 participant