USDZ assets containing USDC files throw warning
See original GitHub issueDescribe the bug I have a threejs based WordPress Plugin (https://3ov.xyz) and was working to add the latest usdz supports (It’s working really well! Thanks for this update!) The assets provided in the PR were working really well for me so far.
I’m seeing issues with Apple’s sample assets from their site so there may be some edge cases not passing parse.
THREE.USDZLoader: No usda file found.
To Reproduce
Use the retro television asset from https://developer.apple.com/augmented-reality/quick-look/
Load asset into a scene and you should see a console warning and a blank scene THREE.USDZLoader: No usda file found.
In my code I am just using a simple useLoader
const usdz = useLoader( USDZLoader, url);
I’m still digging but not sure how best to debug as I’m pretty unfamiliar with the usdz file type.
Platform:
- Device: [Desktop, Mobile]
- OS: [MacOS]
- Browser: [Chrome, Firefox, Safari, Edge]
- Initial USDZ Three.js version: [144.0]
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
https://www.usdz-viewer.net/ uses autodesks opensourced USD fork which loads the USD binaries via WASM. Info here.
This will unlikely be easily merged into ThreeJS core, nor soon.
I have my own personal opinions about completely reinventing the USD stack, and it is indeed much more than just a file format. However the best bet for short term usdc decompiling in threejs is probably to look at https://github.com/syoyo/tinyusdz which has reverse engineered the binary format.
Leaving a link here for anyone else that may dig in the future. I found this threejs implementation of usdz: https://www.usdz-viewer.net/ and was able to load the
usdc
file inside ausdz
And the source of that loader for the viewer is here: https://github.com/ponahoum/three-usdz-loader