Stream zero-decode scenes and Stitch shards
Decode UORC streams in WebAssembly and shard snapshots across Stitch peers.
The data in this figure
| Step | What happens |
|---|---|
| 1. LOD0 proxy | 1/8 scale · bounds + NavMesh |
| 2. LOD1 medium | 2/8 scale · pavilion + observer |
| 3. LOD2 high | 5/8 scale · XPBD + vehicle rig |
| 4. LOD3 lossless | 8/8 scale · SHA-256 UORC |
| 5. LOD4 ultra HD | 16/8 scale · vaulted Citadel |
Decode UORC natively inside the browser worker
Verdant Engine compiles uorc_decompress to wasm32-unknown-unknown without shipping the five-megabyte search tables.
Cold boot stays under the 120 KiB mobile budget while verdant-uorc.wasm decodes scene-stream.uorc on demand.
Zero-decode UORC and codec tiers
| Stage or tier | Representation | Scratch memory |
|---|---|---|
| Portable UORC stream | 4 self-delimiting UORC-SHA256-CHAIN-v1 frames | Stateless uorc_decompress::run |
| Tier 0 · Geometry | CodedMatrix Grid 16-entry codebook | 0 bytes float scratch |
| Tier 1 · Animation & SLM | Packed<Grid, 2> 4-bit nibbles | 0 bytes float scratch |
| Tier 2 · IBL harmonics | Runs<Grid, 16> sparse stream | 0 bytes float scratch |
Shard worlds with Foundry Prism ID and Stitch parity
Sign input journals with your device-held Foundry Prism ID and split snapshots into three STCH shards: half A, half B, and parity A XOR B.
Any two distinct Stitch shards reconstruct the exact world snapshot and verify its SHA-256 object commitment.
let [a, b, parity] = shard_bytes_to_stitch_fragments(&uorc_bytes)?;
let recovered = recover_bytes_from_stitch_pair(&a, &parity)?;
Words on this page 2
- UORC
- Universal Object Reference Compression: progressive SHA-256 chain-verified multi-frame compression streaming 3D scenes up to lossless resolution.
- world snapshot
- A deterministic binary save of tick count, streaming LOD rank, and entity transforms protected by a 32-byte SHA-256 digest.