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

Adding the model to our scene

Now that we have imported the model into our project, let's add it to our scene using code, as follows:

  1. Create a new file by right-clicking on the ARPortal folder and selecting New File…, as follows:

Creating a new file
  1. Select Swift File and click Next:

Selecting Swift File
  1. Call it Portal.swift and click Create. This will be the class where we will create our full portal, including the 3D model we imported previously.

  2. Delete the code and add the ARKit library:

import ARKit
  1. Create a class:
class Portal: ...
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