Skip to content
Vuforia sample code with SceneKit using Swift
Branch: master
Clone or download
yshrkt Merge pull request #61 from nleclerc/vuforia75
Changed code to support Vuforia 7.5
Latest commit f7d3cba Dec 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
VuforiaSampleSwift.xcodeproj
VuforiaSampleSwift Fixed viewport issue. Dec 5, 2018
.gitignore
LICENSE issue #27 adds license file Jun 16, 2017
README.md Updated readme. Dec 5, 2018
screenshot.jpg

README.md

VuforiaSampleSwift

Vuforia sample code with SceneKit using Swift.

Requirement

  • Xcode 9.2
  • iOS 11.2
  • Vuforia SDK for iOS v7.5.20

Setup

  • Download Vuforia SDK for iOS.
    Vuforia SDK
  • Put the SDK on your path as like bellow:
    VuforiaSampleSwift/VuforiaSampleSwift/vuforia-sdk-ios-7.5.20
  • Download Vuforiat Sample Targets.
    Vuforiat Sample
  • Put your targets on your path as like bellow:
    VuforiaSampleSwift/VuforiaSampleSwift/VuforiaAssets/ImageTargets
  • If you needs to fix to links to these files and settings in project, fix it.
    If you failed to build, check Header Search Paths and Libarary Search Paths in Build Settings.
  • Set your lincenseKey and dataSetFile in ViewController.swift.

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

License

MIT license. See LICENSE for details.

Thanks

I am referring to the following page.

You can’t perform that action at this time.