/ ARKit

A collection of ARKit samples

A collection of ARKit samples

ARKit-Sampler

ARKit-Sampler is a collection of ARKit samples.

How to build

  1. Download Inceptionv3.mlmodel from here, then put it into the mlmodels folder.
  2. Open ARKit-Sampler.xcworkspace with Xcode 9 and build it.

It can NOT run on Simulator. (Because it uses Metal.)

Contents

3 lines AR

A simple AR with 3 lines code.

firstar

Plane Detection

A sample to show how simply ARKit can detect planes.

plane

Virtual Object

A sample to show how to add a virtual object to a detected plane.

virtual

AR Interaction

Interactions with virtual objects or detected plane anchors.

interaction2

AR Measure

Measuring lengths in the real space.

measure

AR Drawing

Drawing in the real space.

ardrawing

Core ML + ARKit",

AR Tagging to detected objects using Core ML.

coreml

Metal + ARKit

Rendering with Metal.

arkitmetal

Metal + ARKit (SCNProgram)

Rendering the virtual node's material with Metal shader using SCNProgram.

arscnprogram

Simple Face Tracking

Simplest Face-Based AR implementation.

face

Vertical Plane Detection

ARKit 1.5

A sample to show how to detect vertical planes.

Irregularly-Shaped Plane Detection

ARKit 1.5

A sample to show how to detect irregularly shaped surfaces using ARSCNPlaneGeometry and ARPlaneGeometry.

irregular

usdz

A sample to show how to use .usdz files with ARKit.

GitHub