-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USDZExport creates an empty (visually) USDZ file from a GLTF created in the browser #22454
Comments
Do you mind sharing the USDZ file in this thread? Besides, does it work if you import the glTF into the |
Exporting from Three.js editor does not work. :( (Had to send a link because the file uploader here doesn't like either file) https://github.com/jeffscottward/r3f-to-ar/blob/82532378a626f78a766b5b543ed0b6f5997e4f9c/public/scene.gltf Again here is the exporter code for each. https://github.com/jeffscottward/r3f-to-ar/blob/main/src/exporters/gltfExporter.js |
It seems it does not work because you assign |
I'll take care of this 👍 |
Great! I figured it wasn't me given the simplicity. |
USDZ only supports |
But we can fake |
Hmm without docs, or a pointer to USDz native docs, I wouldn't know thats the case. |
Maybe we can add a warning somewhere at the following place to inform users if they are exporting meshes with an unsupported material?
|
that would be the best - feature detection warnings/errors in console. |
@Mugen87 is this an enhancement (assuming meaning low priority) or a bug? |
Any progress on this? |
Done. 6e4f7a5 |
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)
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
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"
The text was updated successfully, but these errors were encountered: