Expand description
Native Rust implementation of Universal Scene Description (USD).
Reads and writes .usda (text), .usdc (binary), and .usdz (packaged)
files without any C++ dependencies.
§Modules
| Module | Purpose |
|---|---|
sdf | Core data model — Value, Path, Spec, AbstractData trait, mutable Data, and schema field keys. |
usda | Text format. TextReader parses and TextWriter emits .usda files. |
usdc | Binary format. CrateData parses and CrateWriter emits .usdc files. |
usdz | Archive format. Archive reads and ArchiveWriter emits .usdz packages. |
ar | Asset resolution. Resolver trait maps asset paths (@...@) to physical locations; DefaultResolver searches the filesystem. |
layer | Layer collection. Collector recursively loads all layers from a root file. |
pcp | Prim Cache Population — the composition engine. Implements LIVRPS strength ordering, per-prim index caching, and namespace mapping via MapFunction. |
usd | Composed stage API. Stage merges opinions across layers using LIVERPS strength ordering. |
expr | Variable expression parser and evaluator for USD’s \…`` expression syntax. |
math | Shared 4×4 row-major matrix helpers used by the schema layer. |
schemas | Domain-schema readers (UsdPhysics, UsdSkel, …) — non-core extensions, feature-gated. |
§Quick start
use openusd::usd;
let stage = usd::Stage::open("scene.usda").unwrap();
stage.traverse(|prim_path| {
println!("{prim_path}");
}).unwrap();Re-exports§
pub use layer::Collector;pub use layer::DependencyKind;
Modules§
- ar
- Asset resolution framework.
- expr
- Variable expression tokenizer and parser.
- layer
- Layer stack collection.
- math
- Small 4×4 matrix helpers shared by the schema layer.
- pcp
- Prim Cache Population (PCP) — the composition engine.
- schemas
- Domain-schema readers — the non-core extensions that ride on top
of the spec-level
sdf/usdmachinery. - sdf
- Scene description foundations.
- usd
- High-level USD composition and authoring APIs.
- usda
- Text file format (
usda) reader. - usdc
- Binary file format (
usdc) implementation. - usdz
- USDZ archive format reader and writer.