I am getting my hands dirty with the new ARKit2 object scanning and recognition tool that was part of WWDC 2018 Demos. All details can be found here.
https://developer.apple.com/documentation/arkit/scanning_and_detecting_3d_objects
Once the scanning process is completed this app exports the scanned object file as arobject to iOS files app.
I cannot find answers on apple sites or developer forums on the following:
As noted in Apple's Scanning and Detecting 3D Objects doc:
An
ARReferenceObject
contains only the spatial feature information needed for ARKit to recognize the real-world object, and is not a displayable 3D reconstruction of that object.
An .arobject
file is simply an instance of the ARReferenceObject
class in serialized filesystem form, so this advice applies to both.
There's nothing displayable about a reference object — it's opaque data representing whatever magic ARKit remembers upon scanning an object that helps it recognize that object later. It's not equivalent to USDZ, SCN, OBJ, ABC, DAE, FBX, STL or other 3D asset formats — those describe polygon meshes, shader features, and other attributes relevant to rendering realistic virtual objects and/or 3D printing.
One thing you can do with an ARReferenceObject
is give it a 2D preview image when saving one — see export(to:previewImage:)
. This gets displayed in Xcode, but it doesn't look like QuickLook in macOS Finder or iOS Files know how to display it, and it's not documented how another app is supposed to read that from the file. (Those would be good things to file bugs with Apple about.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With