Writes a SceneModel to a Pixar USDZ (.usdz) package.

Emits an ASCII USD (.usda) root layer wrapped in a stored, 64-byte-aligned ZIP. Unlike USDZLoader (which needs the browser-only tinyusdz wasm to read binary Crate), the exporter is pure JS and runs anywhere — Node included.

v1 writes mesh geometry (points, triangles, normals), per-mesh transforms, and UsdPreviewSurface materials (base colour, opacity, metallic, roughness). Textures, instancing via USD references, and binary .usdc output are not covered yet.

Hierarchy (View Summary)

Constructors

Properties

defaultVersion: string

The default supported schema version.

encoders: { [key: string]: ModelEncoder }

An encoder for each supported schema version.

fileDataType: string

Data type of the file written by this Exporter.

format: string

The exported model file format.

versions: string[]

List of supported schema versions.

Methods