Code examples for ARKit.

Overview

ARKit-Sampler

Platform Language License Twitter

ARKit-Sampler is a collection of ARKit samples.

How to build

Open ARKit-Sampler.xcworkspace with Xcode and build it.

It can NOT run on Simulator.

Contents

3 lines AR

A simple AR with 3 lines code.

Plane Detection

A sample to show how simply ARKit can detect planes.

Virtual Object

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

AR Interaction

Interactions with virtual objects or detected plane anchors.

AR Measure

Measuring lengths in the real space.

AR Drawing

Drawing in the real space.

Core ML + ARKit",

AR Tagging to detected objects using Core ML.

Metal + ARKit

Rendering with Metal.

Metal + ARKit (SCNProgram)

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

Simple Face Tracking

Simplest Face-Based AR implementation.

Irregularly-Shaped Plane Detection

ARKit 1.5

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

usdz

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

Author

Shuichi Tsutsumi

Freelance iOS programmer from Japan.

Support via PayPal

Special Thanks

The icon is designed by Okazu

You might also like...
A simple application created for educational purposes for mastering ARKit
A simple application created for educational purposes for mastering ARKit

ARDrawing AR Drawing is a simple application created for educational purposes for mastering ARKit. The basis of the project is copied from the project

Trying TDD with ARKit
Trying TDD with ARKit

ARPlacer BDD Spec As a user I want to place a random object in real world. I also want to see the distance between AR object and my phone. Use Cases

Draw VR content over live camera feed with ARKit

funny-ar Exercise with ARKit: draw VR content over live camera feed: work is in

ARKit: Projecting 3D mesh to 2D coordinate
ARKit: Projecting 3D mesh to 2D coordinate

ARKitDemo ARKit: Projecting 3D mesh to 2D coordinate A simple utility to project 3D face mesh in 2D coordinate on device screen. Sources: https://deve

Furniture E-Commerce Augmented Reality(AR) app in iOS powered by ARKit
Furniture E-Commerce Augmented Reality(AR) app in iOS powered by ARKit

HomeMax-iOS Furniture E-Commerce Augmented Reality(AR) app in iOS powered by ARKit and SceneKit. Inspired by IKEA place app. Description Experience on

ARID - Augmented Reality app using Apple’s ARKit framework which can recognise faces of famous scientists
ARID - Augmented Reality app using Apple’s ARKit framework which can recognise faces of famous scientists

ARID Augmented Reality app using Apple’s ARKit framework which can recognise fac

ARDicee - Simple augmented reality app using SceneKit and ARKit
ARDicee - Simple augmented reality app using SceneKit and ARKit

ARDicee Simple augmented reality app using SceneKit and ARKit Requirements Xcode

Reality-iOS - NFT Augmented Reality(AR) app that demonstrate application of ARImageTracking in iOS powered by ARKit 2

Reality-iOS NFT Augmented Reality(AR) app that demonstrate application of ARImag

AR Ruler - A simple iOS app made using ARKit and SceneKit
AR Ruler - A simple iOS app made using ARKit and SceneKit

A simple iOS app made using ARKit and SceneKit.Which can try to simplify little things in your life such as measuring stuff.

Comments
  • Hi , met a issue when running the code.

    Hi , met a issue when running the code.

    When running the code as the read , the Xcode reports,

    Showing Recent Issues Code Signing /Users/.../ARKit-Sampler-cdbfioomctnfrygixqlmetdqymqz/Build/Products/Debug-iphoneos/ARKit-Sampler.app/Frameworks/ColorSlider.framework with Identity iPhone Developer: Jingxi Zhu (L2DDYE6479)

    Showing Recent Issues /usr/bin/codesign --force --sign B8FBC6429C19D8DBEDBAC1BD044D6D4D7B68D1CF --preserve-metadata=identifier,entitlements '/Users/.../ARKit-Sampler-cdbfioomctnfrygixqlmetdqymqz/Build/Products/Debug-iphoneos/ARKit-Sampler.app/Frameworks/ColorSlider.framework'

    Showing Recent Issues /Users/.../ARKit-Sampler-cdbfioomctnfrygixqlmetdqymqz/Build/Products/Debug-iphoneos/ARKit-Sampler.app/Frameworks/ColorSlider.framework: unknown error -1=ffffffffffffffff

    Any advice or explanation is welcomed. Thanks in advance.

    opened by dengJunior 1
  • You are importing UIKit in a ViewController class that inherits each UIViewController but Is it necessary?

    You are importing UIKit in a ViewController class that inherits each UIViewController but Is it necessary?

    As the title says, You are importing UIKit in a ViewController class that inherits each UIViewController but Is it necessary? Since we are importing ARKit, isn't it unnecessary?

    Please check the following excerpts.

    https://github.com/shu223/ARKit-Sampler/blob/72b0feb15ce009506673b9e69f555cf989b23f1a/ARKit-Sampler/Samples/ARDrawing/ARDrawingViewController.swift#L9

    opened by keisukeYamagishi 0
  • How to save and load an object which was created by using ARKit ?

    How to save and load an object which was created by using ARKit ?

    Hi guys, below scenario is possible or not ?

    Scenario ::

    I want to create a object where i pointed by AR. I want to save SCNNode object which is created, I did by using NSUserdefaults. I want to show the object which is saved when i relaunching my app. Problems ::

    I have created an object where i need even i saved but the problem is, It creating everywhere when i relaunching my app. I want to be unique object as where i created at the same location.

    What is my idea to solve this problem ::

    I was getting device location (latitude,longitude) along AR giving distances from device to object when i hit the screen. Also i did calculate the latitude and longitude of object place by using longitude, latitude(device location) and distance. Afterwards, set the radius as 30m from device location then in b/w if any object was created recreated the SCNNode.

    Help ::

    Is it possible to do, what i expected by using above idea ?

    opened by Tamil-Arya 1
Owner
Shuichi Tsutsumi
Freelance iOS Programmer
Shuichi Tsutsumi
ARKit Demo Application

ARKitNavigationDemo Work in progress. In Progress Region — For one, we could render far fewer nodes. In fact, it’s a bit distracting that the entire t

Christopher Webb 296 Dec 16, 2022
An iOS Framework Capture & record ARKit videos 📹, photos 🌄, Live Photos 🎇, and GIFs 🎆.

An iOS Framework that enables developers to capture videos ?? , photos ?? , Live Photos ?? , and GIFs ?? with ARKit content.

Ahmed Bekhit 1.5k Dec 24, 2022
IOS example app to generate point clouds in ARKit using scenedepth

Visualizing a Point Cloud Using Scene Depth Place points in the real-world using the scene's depth data to visualize the shape of the physical environ

Isak Diaz 20 Oct 31, 2022
ARKit Base Project. Place virtual objects based on WWDC example project

ARKit - Placing Virtual Objects in Augmented Reality Learn best practices for visual feedback, gesture interactions, and realistic rendering in AR exp

Ignacio Chiazzo Cardarello 338 Jan 5, 2023
A library that allows you to generate and update environment maps in real-time using the camera feed and ARKit's tracking capabilities.

ARKitEnvironmentMapper Example To run the example project, clone the repo, and run pod install from the Example directory first. Installation ARKitEnv

SV Hawks 91 Dec 4, 2022
This library uses ARKit Face Tracking in order to catch user's smile.

SmileToUnlock Make your users smile before opening the app :) Gif with the demonstration Installation Cocoapods The most preferable way to use this li

Ruslan Serebriakov 628 Oct 22, 2022
PlacenoteSDK Sample app in native iOS using ARKit, written primarily in Swift

Placenote SDK for iOS Placenote SDK lets you easily build cloud-based Augmented Reality (AR) apps that pin digital content to locations in the real wo

Placenote 93 Nov 15, 2022
Power! Unlimited power for ARKit 2.0!

A long time ago in a galaxy, far, far away... It is a period when iPhone SE and iPhone X were destroyed from the apple store, the AR market was under

KBOY (Kei Fujikawa) 516 Dec 1, 2022
A library that allows you to generate and update environment maps in real-time using the camera feed and ARKit's tracking capabilities.

ARKitEnvironmentMapper Example To run the example project, clone the repo, and run pod install from the Example directory first. Installation ARKitEnv

SV Hawks 91 Dec 4, 2022
Augmented Reality image tracking with SwiftUI, RealityKit and ARKit 4.

ARImageTracking This is an Augmented Reality Xcode project that uses Apple's newest RealityKit framework and ARKit 4 features, to dynamically track a

Richard Qi 198 Dec 7, 2022