Skip to content
/ Bomo Public
forked from HackBomo/Bomo

AR motion tracking for physical therapy + sports analysis

License

Notifications You must be signed in to change notification settings

tangert/Bomo

 
 

Repository files navigation

VuforiaSampleSwift

Vuforia sample code with SceneKit using Swift.

Requirement

  • Xcode 8.3
  • iOS 10.3
  • Vuforia SDK for iOS v6.2.9

Setup

  • Download Vuforia SDK for iOS.
    Vuforia SDK
  • Put the SDK on your path as like bellow:
    VuforiaSampleSwift/VuforiaSampleSwift/vuforia-sdk-ios-6-2-9
  • 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.

About

AR motion tracking for physical therapy + sports analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C++ 54.8%
  • Swift 31.7%
  • Objective-C 11.3%
  • HTML 1.9%
  • Ruby 0.3%