Skip to content

Instantly share code, notes, and snippets.

@nmathew87
Created March 14, 2018 23:19
Show Gist options
  • Save nmathew87/02444def007faad82598071aad3480c6 to your computer and use it in GitHub Desktop.
Save nmathew87/02444def007faad82598071aad3480c6 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
// configuration
LibPlacenote.instance.multiDelegate += self
// set up AR session
self.sceneView.session.run(configuration)
self.sceneView.autoenablesDefaultLighting = true
self.sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints]
sceneView.session.delegate = self
ptViz = FeaturePointVisualizer(inputScene: sceneView.scene);
ptViz?.enableFeaturePoints()
if let camera: SCNNode = sceneView?.pointOfView {
camManager = CameraManager(scene: sceneView.scene, cam: camera)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment