$30 off During Our Annual Pro Sale. View Details »

ARKitに入門して🍣三昧/arsushi_with_arkit_20170721

fromkk
July 21, 2017

 ARKitに入門して🍣三昧/arsushi_with_arkit_20170721

Presentation for iOS Creators' Meetup vol.4

fromkk

July 21, 2017
Tweet

More Decks by fromkk

Other Decks in Programming

Transcript

  1. ARSession ARKitͷجຊͱͳΔΫϥε 4 func run(_ configuration: ARSessionConfiguration, options: RunOptions =

    []) 4 ఆظతʹτϥοΩϯά৘ใΛؚΜͩ ARFrame Λ ARSessinoDelegate Ͱड͚औΔࣄ͕ग़དྷΔ 10
  2. ARWorldTrackingSessionConfiguration ݱ࣮ੈքΛτϥοΩϯά͢ΔҝͷઃఆΫϥε 4 class var isSupported: Bool ͰτϥοΩϯάʹରԠ͠ ͍ͯΔ͔൑அ͢Δࣄ͕ग़དྷΔ 4

    var planeDetection: PlaneDetection 4 struct PlaneDetection : OptionSet { static var horizontal: PlaneDetection } 11
  3. ؆୯ͳྲྀΕ 4 ARSCNView ʹ SCNScene Λ௥Ճ͢Δ 4 ARSession ͷ run

    ϝυουʹ ARWorldTrackingSessionConfiguration Ληοτ 4 scene.rootNode ʹ SCNNode Λ௥Ճ͍ͯ͘͠ 4 ී௨ʹ UIGestureRecognizer ͕ར༻ग़དྷΔ 20