An ARKit box-drawing demo.

Overview

Boxify

This is an ARKit project that demonstrates drawing out a 3-dimensional box in the world, which can be rotated and resized from each of its faces.

Requirements

  1. XCode 9 (or newer)
  2. One of the following devices (or newer) running iOS 11 (or newer):
    • The 2017 9.7-inch iPad
    • All three variants of the iPad Pro
    • iPhone 7 Plus
    • iPhone 7
    • iPhone 6s Plus
    • iPhone 6s
    • iPhone SE

Instructions

  1. Build the project and launch it on your device. Grant it permission to access the camera.
  2. Move the device around until ARKit detects a suitable horizontal surface - this will appear as a flat blue rectangle.
  3. Tap somewhere inside the blue rectangle and drag to begin pulling out a straight line from that point.
  4. Release your finger to confirm the line.
  5. Drag the line to either side to pull it out into a 2-dimensional rectangle.
  6. Tap within the rectangle and drag to pull it out into a 3-dimensional box.
  7. Tap and drag on any face of the box to resize the box from that face.
  8. Put two fingers on the screen and twist to rotate the box.
  9. Double-tap on the screen to delete the box and start again.

Acknowledgements

This project uses code from Apple's ARKitExample sample project. It evolved from a Shopify hackdays project between @paige.sun, @ignacio.chiazzo and @alun.bestor.

You might also like...
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.

 ARKit Car Rims
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

Comments
  • Displaying all scenes in a tabbed format

    Displaying all scenes in a tabbed format

    Thank you so much for this example, its fantastic. I am having difficulty when i recreate this code in a "tabbed" application. Delegating the ARSCNViewDelegate is my worry. When i display the view in a tab the bounding box still works well, but the plane hit and display of the blue plane is no longer showing. Regardless of it not showing, i am still able to find measurements. I have a feeling this is just my lack of understanding the delegations and how the view works with a tabbed scene as apposed to just an ARKit Application that only has one single page where the camera takes all of the scene. Im going to keep kicking the tires on this.

    opened by ikeyman10 0
  • missing art.scnassets

    missing art.scnassets

    Showing All Messages :-1: cannot build '/Users/dave/Library/Developer/Xcode/DerivedData/Boxify-hhyaelswbqgcbceexiyomhvmozof/Build/Products/Debug-iphoneos/Boxify.app/art.scnassets' due to missing input

    opened by dsjove 0
Owner
Alun Bestor
Alun Bestor
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
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