Expand description
Native Rust implementation of Universal Scene Description (USD).
Reads .usda (text), .usdc (binary), and .usdz (packaged) files without
any C++ dependencies.
§Modules
| Module | Purpose |
|---|---|
sdf | Core data model — Value, Path, Spec, AbstractData trait, and schema field keys. |
usda | Text format reader. TextReader parses .usda files into AbstractData. |
usdc | Binary format reader. CrateData parses .usdc files into AbstractData. |
usdz | Archive format reader. Archive extracts layers from .usdz packages. |
ar | Asset resolution. Resolver trait maps asset paths (@...@) to physical locations; DefaultResolver searches the filesystem. |
layer | Layer collection. collect_layers 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. |
stage | Composed stage. Stage merges opinions across layers using LIVERPS strength ordering. |
expr | Variable expression parser and evaluator for USD’s \…`` expression syntax. |
§Quick start
use openusd::Stage;
let stage = Stage::open("scene.usda").unwrap();
stage.traverse(|prim_path| {
println!("{prim_path}");
}).unwrap();Re-exports§
pub use layer::DependencyKind;pub use stage::Stage;pub use stage::StageBuilder;
Modules§
- ar
- Asset resolution framework.
- expr
- Variable expression tokenizer and parser.
- layer
- Layer stack collection.
- pcp
- Prim Cache Population (PCP) — the composition engine.
- sdf
- Scene description foundations.
- stage
- Composed USD stage.
- usda
- Text file format (
usda) reader. - usdc
- Binary file format (
usdc) implementation. - usdz
- USDZ archive format reader.
Structs§
- f16
- A 16-bit floating point type implementing the IEEE 754-2008 standard
binary16a.k.a “half” format.
Enums§
- Composition
Error - A recoverable error encountered during stage composition.