Apple ARKit example app

Overview

Apple ARKit Example App

A set of tutorials using the new ARKit from Apple. Follow along at: https://blog.markdaws.net/apple-arkit-by-example-ef1c8578fb59

Demo

ARKit Example

Controls

  • Move around the space to allow the app to first find horizontal planes in the environment
  • Single tap inserts a cube, must tap on a plane.
  • Press and hold on a plane or cube changes the material
  • Two finger press and hold causes a mini explosion

NOTE: Once you have detected the planes you want, disable the plane detection so that the planes don't continue to resize and move around.

NOTE: The thre dots "..." in the bottom right open a settings menu with some debug options.

Textures

All Physically Based Rendering textures come from: http://freepbr.com/ If you use any of their textures, please link back to their site.

Comments
  • renderer:didAddNode:forAnchor: not called

    renderer:didAddNode:forAnchor: not called

    I run the part 2 of your arkit examples,but there was no grid. I set breakpoint in renderer:didAddNode:forAnchor:,just found it was not called. image now i dont know where goes wrong.

    opened by PascoCoder 4
  • White screen?

    White screen?

    Hi there, I've installed on my iOS11, however I can't see the camera. Although the app loads correctly, it show only a white screen with all the controls (menu, toggle etc..). Any idea?

    opened by diegotrigo 3
  • fix incorrect link to

    fix incorrect link to "tron_grid.png" file in part 2 project config

    Hello, thanks for this tutorial - it helps with learning ARKit so much!

    This PR fixes the issue where project tried to get "tron_grid.png" file from your Desktop folder instead of repo directory and part 2 refused to build because of it

    opened by q210 1
  • Replace deprecated ARKit api calls

    Replace deprecated ARKit api calls

    This PR updates the deprecated api calls for ARKit for Xcode 9. The project as of today (10/28/2017) will not compile with Xcode 9 without this update.

    • ARWorldTrackingSessionConfiguration has been updated to ARWorldTrackingConfiguration.

    After this update the project will now compile with Xcode 9.

    opened by rbaumbach 2
  • Outdated, crashes on XCode 9, iPhone 8

    Outdated, crashes on XCode 9, iPhone 8

    2017-09-26 14:10:48.431168+0200 arkit-by-example[2442:1007811] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SCNNode changeMaterial]: unrecognized selector sent to instance 0x1cc1fc900' *** First throw call stack: (0x184fc3d38 0x1844d8528 0x184fd11f8 0x184fc96e4 0x184eaf0dc 0x10225bc14 0x18ea5ff78 0x18ea644dc 0x18e54edc8 0x18e403748 0x18ea4e3fc 0x184f6b8b8 0x184f69270 0x184f6982c 0x184e8a2d8 0x186d1bf84 0x18e436880 0x10225e8c0 0x1849ae56c) libc++abi.dylib: terminating with uncaught exception of type NSException

    opened by neilyoung 0
  • Long click on a plane => -[SCNNode changeMaterial]: unrecognized selector sent to instance

    Long click on a plane => -[SCNNode changeMaterial]: unrecognized selector sent to instance

    Hi,

    I want to change the material of a plane. When I perform a long click on a plane, I got the following error:

    ** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SCNNode changeMaterial]: unrecognized selector sent to instance

    On:

    [((Plane *)parentNode) changeMaterial];

    Any idea?

    Thanks.

    opened by Tasmagic 6
  • ARWorldTrackingSessionConfiguration deprecated

    ARWorldTrackingSessionConfiguration deprecated

    Resolve https://github.com/markdaws/arkit-by-example/issues/7 by replacing deprecated ARWorldTrackingSessionConfiguration with ARWorldTrackingConfiguration.

    opened by jagatfx 0
  • ARWorldTrackingSessionConfiguration is deprecated

    ARWorldTrackingSessionConfiguration is deprecated

    Per Apple,

    ARWorldTrackingSessionConfiguration

    Deprecated This class has been renamed in iOS 11 beta 5 and will not be available under its former name in iOS 11.0. Use ARWorldTrackingConfiguration instead.

    https://developer.apple.com/documentation/arkit/arworldtrackingsessionconfiguration

    Replacing ARWorldTrackingSessionConfiguration with ARWorldTrackingConfiguration gets rid of the Xcode issue

    opened by xta 0
Owner
Mark Dawson
3D, JavaScript, Go, node.js, AR/VR, React Native
Mark Dawson
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

Hemanth 0 Jan 12, 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
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

Ikmal Azman 5 Oct 14, 2022
ARDicee - Simple augmented reality app using SceneKit and ARKit

ARDicee Simple augmented reality app using SceneKit and ARKit Requirements Xcode

donggyu 3 Feb 4, 2022
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

Ikmal Azman 6 Nov 28, 2022
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.

Dishant Nagpal 5 Aug 31, 2022
ARKit + CoreLocation: Combines the high accuracy of AR with the scale of GPS data.

ARKit: Uses camera and motion data to map out the local world as you move around. CoreLocation: Uses wifi and GPS data to determine your global locati

Andrew Hart 5.3k Dec 27, 2022
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
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
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
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

NIKOLAY NIKITIN 0 Oct 20, 2022
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

null 0 Dec 21, 2021
Draw VR content over live camera feed with ARKit

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

pavel 3 Dec 18, 2021
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

Tushar Chitnavis 0 Dec 28, 2021
ARKit Car Rims

ARKit Car Rims Are you tired of thinking about what will look better while selecting or purchasing anything like where to put a flowerpot, lamp, a pho

MindInventory 19 Nov 22, 2022