Open ArzhMael opened 1 year ago
(*) I did manually convert the .usdz file into a .zip file else if I don't do that - and use .usdz archive or extracted folder - I get invalid zip file error.
Do you mind sharing the original USDZ file in this thread?
Here is a link to the complete repo. Thanks for your time ! https://github.com/Armel-WonderWalls/Import_USDZ_Test
I can confirm that the asset RoomBureau.usdz
can be displayed with preview on macOS but not with the three.js
editor.
I'm not sure what's going wrong so far but it seems the asset is in a format that USDZLoader
does currently not support.
Okay.
I don't know if it may help but the asset has been generated using Apple's RoomPlan API.
prepend references
is an array of wall references that three.js
doesn't support. Actually the parser would need an implementation for [
first.
Here's another usdz that the editor couldn't load. room.zip
When changing the room0.usda by replacing the array with a direct reference to asset wall0.usda, I get the same error than OP.
Edit: This also is Apple Roomplan output.
Hey all,
I have managed to get a RoomPlan generated USDZ file loaded and rendering by patching the USDZLoader
This was just for a technical POC so it's very experimental, but it is possible! Good chance it breaks other stuff, and won't support all use cases, but for me I just wanted to render a CapturedRoom
exported with the model export option
I've attached the room I was loading - fairly basic & no furniture - RoomModel.usdz.zip
Patch can be found in my gist
Just a couple of changes were required
prepend references
field in some of my .usda
files being an array of asset paths instead of a single asset pathBufferGeometry
with the mergeGeometries
utilHope this helps move things forward 😄
Description
I get the following error while trying to use
USDZLoader.load()
on a .usdz fileturned into a .zip file(*)or a .zip file.(*) I did manually convert the .usdz file into a .zip file else if I don't do that - and use .usdz archive or extracted folder - I getseems it was due to a typo, but both the .zip and .usdz files still return me the same TypeError.invalid zip file
error.Reproduction steps
npx vite
USDZLoader.load()
using path to .zip fileCode
Live example
Screenshots
No response
Version
9.5.0
Device
Desktop
Browser
Chrome
OS
Windows