Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conversion from USDZ file to glTF file

I am currently trying to work with AR in android but I have been given models in .usdz format. So far I have been looking for a way to convert this file into one that works with android (.fbx .obj .gltf), preferably being .gltf.

Can someone tell me if there is some support to this kind of conversion?

From what I have researched there is a support to convert files the other way around, meaning from .obj .fbx to .unsz.

like image 867
Sergio Pardo Avatar asked Mar 20 '19 05:03

Sergio Pardo


2 Answers

Updated: May 10, 2022.


Now USDZ to glTF conversion is possible

At first, you need to install Autodesk Maya 2020 | 2022 | 2023 with Maya USD plug-in.

Then unzip a USDZ zero-compressed archive to get a binary USDC (sometimes ascii USDA) file format and a set of textures. You need to import USDC into Maya. And if you need you can edit those PNG or JPG textures.


Unzipping a USDZ file in macOS

  • In macOS Finder change the suffix of USDZ file to ZIP.
  • Uncompress ZIP file using Archive_Utility.app or RAR_Extractor.app.

enter image description here

  • In Autodesk Maya (with pre-installed USD plugin) import USDC model.
  • Edit USDC model.
  • Use Babylon exporter to produce a glTF format.
like image 81
Andy Jazz Avatar answered Oct 10 '22 23:10

Andy Jazz


Recording this for posterity.

You can convert a USDZ file to GLB easily through the following steps.

  1. Open said USDZ file in XCode.
  2. File -> Export... , select Digital Asset Exchange (DAE)
  3. From here you can choose any other tool like https://products.aspose.app/3d/conversion/dae-to-glb or https://github.com/KhronosGroup/COLLADA2GLTF (it's just much easier to find DAE to GLB convertors.)

Voila. However, do note that while on iOS quick look obeys your pivot point origin, but on Android Scene Viewer does not.

like image 21
danieltan95 Avatar answered Oct 10 '22 22:10

danieltan95