You do not necessarily have to scan an object from 5 sides to create an ARReferenceObject
for 3D object detection. If a plane is missing, the object will not be detectable from that side, but that doesn't sound like a problem in your case: If the object is very high or placed by the wall, the user won't be able to look at the object from that perspective either.
For flat and uniquely textured objects, 2D image detection might work as well; it depends a bit on the type of object you want to track.
Alternatively, if the app is going to be used in a known room, and you know the room won't change, you can also scan the entire room and save it as an ARWorldMap
. Before doing so, you can create ARAnchors
at any location of interest where you want to add virtual content. In your app, you then set this map as the configuration's initialWorldMap
. ARKit will relocalize to that world map and restore the anchors that you've previously placed. Here is a developer sample to check out which explains this approach.