Getting to know Legacy
Last updated
Last updated
In this tutorial, you will learn how to paint walls using the Remodel-AR library's Lidar Scanner approach.
Before starting this tutorial, make sure you've completed Setting up Remodel-AR in UIKit. A link to the starting project is provided here for your convenience.
To get started, add a new ViewController in Main.storyboard. Next create a new UIViewController file and name it LegacyViewController. Now set the ViewController's class to LegacyViewController in Main.storyboard.
Open LidarViewController.swift and import the RemodelAR and ARKit frameworks.
Open the Main.storyboard file and add ARSCNView in the storyboard. Next, connect the ARSCNView outlet to LegacyViewController.swift file.
In LegacyViewController.swift create a lazy ARController property and assign it using RemodelARLib.makeLegacyARController(with: arscnView).
Note:
makeLegacyARController(with: arscnView) is a method that takes ARSCNView's instance as an argument.
You have to provide an ARSCNView instance that you have connected from the storyboard in this method or one you created and added programmatically.
Create a method for Configuring UI and call this method in LegacyViewController’s ViewDidLoad() method. Also create a function for creating an ARController object.
If at any point you need help from the Passio team, please reach out to us at support@passiolife.com