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

ARKit and SceneKit

ARKit and SceneKit

A minimalist introduction to using SceneKit to create objects to show using iOS's ARKit augmented reality capabilities.

Patrick Weigel

February 08, 2018
Tweet

More Decks by Patrick Weigel

Other Decks in Programming

Transcript

  1. Cocoa Coders 2018-02-08 ARKit and SceneKit CocoaCoders Introductions 7:00 Show

    and Tell Presentation Informal Socialization 7:10 7:30 8:45 Current Topics 7:30
  2. Current Topics (1 of 2) 1. Magic Apps Apps that

    run on both macOS and iOS 2. Swift 4.1 Source compatible, not binary compatible, release soon Swift Evolution at https://apple.github.io/swift-evolution/ 8 implemented, 6 accepted, 4 under review 3. ARKit 1.5 Walls Real world objects Cocoa Coders 2018-02-08 ARKit and SceneKit
  3. Current Topics (2 of 2) 4. Xcode 9.2 Any experiences?

    5. Xcode 9.3 beta Requires High Sierra Bug Fixes New Energy organizer More warnings on non-exclusive memory access
 6. Favorite iOS Newsletters AppCoda Weekly Ray Weinerlich Andy Bargh Dave Verwer Cocoa Coders 2018-02-08 ARKit and SceneKit
  4. Swift 4.1 Implemented SE-0191 Eliminate IndexDistance from Collection SE-0190 Target

    environment platform condition SE-0189 Restrict Cross-module Struct Initializers SE-0188 Make Standard Library Index Types Hashable SE-0187 Introduce Sequence.compactMap(_:) SE-0186 Remove ownership keyword support in protocols SE-0185 Synthesizing Equatable and Hashable conformance SE-0184 Unsafe[Mutable][Raw][Buffer]Pointer: add missing methods, adjust existing labels for clarity, and remove deallocation size Cocoa Coders 2018-02-08 ARKit and SceneKit
  5. ARKit + SceneKit 1. Minimal Concepts 2. Minimal Code 3.

    Live Coding Demo https://speakerdeck.com/patrick462/ARKit-and-SceneKit Cocoa Coders 2018-02-08 ARKit and SceneKit
  6. Minimal Demo ARKit • Run to show goal • You’re

    Smart: • 5 Concepts • 1 Line of Code and
 1 SceneKit Scene file Cocoa Coders 2018-02-08 ARKit and SceneKit
  7. Minimal Concepts Nouns • Session • Configuration • AR Object

    Verbs • Run • ARSCNViewDelegate functions ARKit Cocoa Coders 2018-02-08 ARKit and SceneKit
  8. Minimal Concepts ARKit Cocoa Coders 2018-02-08 ARKit and SceneKit SceneKit

    ARSCNView Draws captured image Updates a SCNCamera Updates scene lighting Maps SCNNodes to ARAnchors SCNView ARSCNView ARSession
  9. Live Coding Demo ARKit • New Project / iOS /

    Augmented Reality App / SceneKit • Build to Phone / Run (to test) • SceneKit: New File / SceneKit Scene File / Add geometry object, color it, add directional light • Change code to use new object Cocoa Coders 2018-02-08 ARKit and SceneKit
  10. Bonus ARKit • Design Icons • Add icons to Xcode

    Cocoa Coders 2018-02-08 ARKit and SceneKit