Hello! I am new to ARKit and currently working on this sample SpriteKit AR application from Apple. To use ARKits debug option of visualizing the feature points I am trying to change the app from an AR SpriteKit base to an AR SceneKit base. (I thought it should be possible after watching this Apple session.)
Therefore I made some changes. But unfortunately, the application doesn't show the camera input anymore and throws an exception after some time. The object detector still correctly identifies objects but the main screen stays gray.
Help would be much appreciated! Best regards!
Main changes:
@IBOutlet weak var sceneView: ARSCNView!
// @IBOutlet weak var sceneView: ARSKView!
class ViewController: ARSCNViewDelegate {}
// class ViewController: ARSKViewDelegate {}
- Put the SpriteKit overlayScene into a SCNPlane.
- Had to change how child nodes get hidden when relocalization happens.