hisothreed / ARSwift

0 stars 0 forks source link

VuforiaSampleSwift

Vuforia sample code with SceneKit using Swift.

Requirement

Setup

Usage

See ViewController.swift.


vuforiaManager = VuforiaManager(licenseKey: "your license key", dataSetFile: "your target xml file")
if let manager = vuforiaManager {
    manager.delegate = self
    manager.eaglView.sceneSource = self
    manager.eaglView.delegate = self
    manager.eaglView.setupRenderer()
    self.view = manager.eaglView
}

vuforiaManager?.prepareWithOrientation(.Portrait)

...

do {
    try vuforiaManager?.start()
}catch let error {
    print("\(error)")
}

ScreenShot

screenshot

Thanks

I am referring to the following page.