augmented-realityarkitusdz

How can I convert .obj or .stl to .usdz without Vectary?


Apple AR Quick Look apparently only supports .usdz files. Is there a 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.


Solution

  • 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/