kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.4k stars 526 forks source link

Add Support for USDZ File Format #355

Open jeff-tenovos opened 1 year ago

jeff-tenovos commented 1 year ago

The USDZ file format was open sourced a few years ago and is becoming a more popular file format. three.js provides a USDZLoader, and it would be great if the website viewer can include support for USDZ as well.

kovacsv commented 1 year ago

USDZ is a zip file, and the content can be either ascii or binary. Unfortunately the three.js USDZ import supports only the ascii format, but that's not very often used. I'd like to add USDZ as a supported format, but I didn't find any good USDZ library that can run in a browser.

jeff-tenovos commented 1 year ago

Thanks for the reply. That's interesting. I saw another npm.js package, three-usdz-loader, that also uses Three.js and is able to load USDZ files that include USDC. Have you taken a look at that package to see how it is utilizing Three.js to load these files?

jeff-tenovos commented 1 year ago

Hi, just following up to see if that package provided you with any insight on how it may be possible to render a USDZ file. Thanks!

jeff-tenovos commented 1 year ago

Hi, I was just curious to see if you had a chance to check out that library to see if it could be useful to you for the USDZ file support?

kovacsv commented 1 year ago

I've checked the library, and it seems it's using a webassembly version of Pixar's USDZ library, so it probably works. On the other hand I can't find the source code for webassembly generation, so I can't be sure what's in that file. I'll think a bit about this and check if I can integrate it in the library.

jeff-tenovos commented 1 year ago

That sounds like it has potential. Please update if you are willing and able to integrate the file into the library.

Isaina commented 10 months ago

Also to have usdz to dotBIm support would be great