What is the easiest way to convert .obj or .stl to .usdz?

yogurtsyum picture yogurtsyum · Sep 15, 2019 · Viewed 11.4k times · Source

Apple AR Quick Look apparently only supports .usdz files. So, what is the easiest way to convert an .obj or .stl to .usdz?

I googled this first but the most popular result was to use a free tool called Vectary, but when I actually tried to use it, it wasn’t free.

Thanks.

Answer

M. Bedi picture M. Bedi · Sep 17, 2019

With iOS 13 & Reality Kit, Apple has released a USDZ converter that does not require Xcode; the converter is a Python based tool. I have been using it the last few days to convert various files gltf, obj files.

Download link:

https://developer.apple.com/download/more/?=USDPython

Example usage:

usdzconvert someobject.obj  

You will want to edit paths for your environment variables.

Or double click the file which is in the top level of the folder:

USD.command

to launch a shell with the environment variables set.

And within Xcode 11, you can export SCN files to USDZ files.

It is well worth watching the WWDC 2019 video; it is just over 30 minutes:

https://developer.apple.com/videos/play/wwdc2019/602/