question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

USDZ assets containing USDC files throw warning

See original GitHub issue

Describe 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:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Vochselcommented, Sep 2, 2022

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.

1reaction
antpbcommented, Sep 1, 2022

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 a usdz

And the source of that loader for the viewer is here: https://github.com/ponahoum/three-usdz-loader

Read more comments on GitHub >

github_iconTop Results From Across the Web

Let's discuss USDZ Converter in de… | Apple Developer Forums
However, USDZ Converter and the intermediate USDA file generated is pretty helpful. ... There is no warning about RAM exceeding iOS. ... Default...
Read more >
Creating USD files for Apple devices - Apple Developer
Validate your USD assets. USD files that aren't well-formed may not work correctly. Validate that your assets conform to the USD specification before...
Read more >
Working with USD - WWDC19 - Videos - Apple Developer
Gain a deeper understanding of how USD assets are created and learn about delivering usdz content for use with ARKit and RealityKit.
Read more >
AR Quick Look and USDZ - Netguru
The first file in USDZ archive is the USD file (here: USDC; it contains model, animation, and material definitions). Remaining files ...
Read more >
What Is USDZ and How To Convert Your 3D Model to USDZ
USDZ stands for Universal Scene Description. It is a file format for 3D models, introduced by Apple in collaboration with Pixar for its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found