Object Capture: Exporting model as OBJ.

https://developer.apple.com/documentation/realitykit/photogrammetrysession/request/modelfile(url:detail:geometry:)

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.

Replies

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.