Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ARKit

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 ARKit

Saritasa team meeting about ARKit

Avatar for Agapov Alex

Agapov Alex

August 04, 2017
Tweet

More Decks by Agapov Alex

Other Decks in Programming

Transcript

  1. Session ARSession (+ CoreMotion & AVFoundation) ARSessionConfiguration (plane detection, world

    tracking, light estimation Consists of ARFrame (with delegate on each changed frame), camera, motion sensors
  2. Example code // SceneKit (3D) var sceneView: ARSCNView! var treeNode:

    SCNNode? sceneView.delegate = self let scene = SCNScene(named: “art.scnassets/lowpoly_tree_sample.dae”)! sceneView.scene = scene // Object from file treeNode = scene.rootNode.childNode(withName: "Tree_lp_11", recursively: true) treeNode?.position = SCNVector3Make(0, 0, -1) // Configuration with plane tracking let configuration = ARWorldTrackingSessionConfiguration() // Pausable, has options to modify/restart session sceneView.session.run(configuration) sceneView.session.pause() // Add item to the scene (in 0,0,0 position) sceneView.scene.rootNode.addChildNode(newTreeNode)