Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 824
yogurtsyum Avatar asked Sep 15 '19 00:09

yogurtsyum


People also ask

Can OBJ be converted to STL?

Click on the green Add File(s) button, located in the main toolbar to open the file finder window. Find and select the OBJ files on your computer and click Open to bring them into Spin 3D to convert them to the STL file format. You can also drag and drop your OBJ files directly into the program to convert them as well.

Can blender convert STL to OBJ?

Using a CAD Program Another easy way to convert an STL to OBJ is within your preferred modeling program. Most CAD programs, such as Blender or Fusion 360, can import/export in both STL and OBJ. So one great way to convert is to import your STL into the program and then export the model as an OBJ file.


1 Answers

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/

like image 176
M. Bedi Avatar answered Oct 05 '22 03:10

M. Bedi