if the path given is a file path that contains a .usdz extension, then it will be saved as .usdz, or else if we provide a folder, it will save as OBJ; I tried it, but no use. Right before saving, it shows the folder that will be saved, but after I click on done and check the folder, it's always empty.
Object Capture: Exporting model as OBJ.
I have the same issue. The documentation seems to show that just giving the path URL should create OBJ object assets by default, if the file with .usdz
extension isn't specified.
But I tried to run the object capture being connected to Xcode and the debug logger gives an error (apparently thrown from inside the API) saying :
"Output URL must be specify a '.usdz' extension file!"
The folder is created without any assets. There seems to be a mismatch in what the documentation says and how the API is implemented.
I solved the issue. The URL provided to the .modelfile should be a directory. However, this cannot be auto detected. When you append components to create url, you need to call this explicitly: folderURL.appendingPathComponent("Models/", isDirectory: true)