lighttransport / tinyusdz

Tiny, dependency-free USDZ/USDA/USDC library written in C++14
Other
511 stars 42 forks source link

[TODO] TinyUSDZLoader for Three.js #185

Open syoyo opened 2 months ago

syoyo commented 2 months ago

https://github.com/lighttransport/tinyusdz/tree/dev/sandbox/threejs

Background

Three.js has a USDZLoader, but it is written in pure JavaScript and cannot load full-spec of USDA and USDC(Binary). TinyUSDZLoader, based on WASM-compiled TinyUSDZ, will provide more better USD loading functionality.

NOTE

TinyUSDZ can be built with no-threading, so no need of SharedArrayBuffer & Atomics support in the browser.

Status

Work-in-progress

syoyo commented 2 months ago

Texturing is now possible

https://github.com/mrdoob/three.js/issues/29169

syoyo commented 2 months ago

Wasm demo hosted on github pages!

https://lighttransport.github.io/tinyusdz/index.html

(Requires 8MB USDZ model download, so take a time to render)