Problems with Image Anchor in RealityComposer

I am trying to create a simple scene with a globe that is attached to an image anchor in reality composer (fior Mac). Despite defining the anchor as an Image Anchor in RC, I get the globe placed at a fixed position in the scene when exported to XCode, or viewed with AR Quick Look.


Here is the code I am using:



class ViewController: UIViewController {

@IBOutlet var arView: ARView!

var globeAnchor: GlobeIA.ImageSpinner!

override func viewDidLoad() {

super.viewDidLoad()

globeAnchor = try! GlobeIA.loadImageSpinner()

arView.scene.anchors.append(globeAnchor)

}

}


Thank you!

Replies

Did you find a solution?