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.

USDZExport creates an empty (visually) USDZ file from a GLTF created in the browser

See original GitHub issue

Continuation from previously filed issue

Describe the bug

Trying to create a GLTF in the browser and convert it to USDZ without needing to download a GLTF file first. TLDR; On-the-fly-USDZ creation and download

It successfully creates a GLTF in memory, loads the GLTF after wrapping in blob, and exports the usdz file (in theory).

I can see the object as GLTF in the Three.js editor and Apple’s Reality Convertor but not in any QuickLook view (phone or Finder)

gltf-w-r3f rc usdz-empty

Source of export here: https://github.com/jeffscottward/r3f-to-ar/blob/main/src/exporters/usdzExporter.js Repo here: https://github.com/jeffscottward/r3f-to-ar

To Reproduce

git clone https://github.com/jeffscottward/r3f-to-ar/
yarn && yarn start

Click the model - it should download 2 files, 1 gltf and 1 usdz

Platform:

Device: Laptop OS: MacOS Browser: Chrome Three.js version: “^0.132.2”

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mrdoobcommented, Aug 30, 2021

I’ll take care of this 👍

1reaction
mrdoobcommented, Nov 15, 2021

Maybe we can add a warning somewhere at the following place to inform users if they are exporting meshes with an unsupported material?

https://github.com/mrdoob/three.js/blob/183ae6afcdb6323d6a2075811073ed8767d6c2fc/examples/jsm/exporters/USDZExporter.js#L20

Done. https://github.com/mrdoob/three.js/commit/6e4f7a5fa7f1944e941019a655ae50868f2a883a

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for USD and USDZ formats #14219 - GitHub
It's a valid feature request but I personally don't understand Apple/Pixar. Why are they introducing a new file format and not just using...
Read more >
usdz texture issue (using usdz_converter) - Apple Developer
Hi all, I'm having a hard time to create .usdz file with texture using usdz_converter. The converter itself works ok and generates .usdz...
Read more >
What you need to know about AR quicklooks on iOS - Variant
iOS quicklooks can be launched by either USDZ (Universal Scene ... Variant dynamically generates USDZ files from your uploaded GLTF files on ...
Read more >
Converted file from threejs-usdzExporter not shown on Iphone
I have used THREE.js GLTFLoader to load glb file then I used USDZ Exporter to export it to usdz then when I tried...
Read more >
glTF, GLB, and USDZ - Sketchfab Help Center
GLB is a binary container format of glTF. It bundles all the textures and mesh data into a single file. USDZ is a...
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