Skip to Content
Enterprise Augmented Reality Projects
book

Enterprise Augmented Reality Projects

by Jorge R. López Benito, Enara Artetxe González
December 2019
Intermediate to advanced content levelIntermediate to advanced
388 pages
8h 11m
English
Packt Publishing
Content preview from Enterprise Augmented Reality Projects

Modifying the basic app

Starting from the current code in ViewController.swift, we are going to modify it so that it only detects horizontal surfaces (not verticals, faces, or known images) and displays those horizontal surfaces as they are being detected to show extra information about the ARSession, such as whenever ARTracking is ready or if a new horizontal surface has been detected.

Before we do this, though, we will delete the ship model as we no longer need it. Follow these steps to delete the ship model:

  1. Delete the art.scnassets folder from the project.
  2. In the viewDidLoad() method of ViewController.swift, delete the reference to the ship from the scene, leaving the scene line like so:
let scene = SCNScene()

We are also going to enable ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unity 2018 Augmented Reality Projects

Unity 2018 Augmented Reality Projects

Jesse Glover
The Complete ARKit Course - Build 11 Augmented Reality Apps

The Complete ARKit Course - Build 11 Augmented Reality Apps

Daragh Walsh, Rayan Slim, Codestars By Rob Percival
HoloLens Blueprints

HoloLens Blueprints

Abhijit Jana, Manish Sharma, Mallikarjuna Rao

Publisher Resources

ISBN: 9781789807400Supplemental Content