An open API service indexing awesome lists of open source software.

https://github.com/interactivetech/vuforiascenekit

Integrating Vuforia and Scenekit, inspired from yshrkt/VuforiaSampleSwift
https://github.com/interactivetech/vuforiascenekit

Last synced: about 1 year ago
JSON representation

Integrating Vuforia and Scenekit, inspired from yshrkt/VuforiaSampleSwift

Awesome Lists containing this project

README

          

# VuforiaSampleSwift

Vuforia sample code with SceneKit using Swift.
Me adding some fixed to get it to run nice on an iPhone 6+

## Requirement

* Xcode 8
* iOS 9.3+
* Vuforia SDK for iOS v6.2.6

## Setup

* Download Vuforia SDK for iOS.
[Vuforia SDK](https://developer.vuforia.com/downloads/sdk)
* Put the SDK on your path as like bellow:
`VuforiaSampleSwift/VuforiaSampleSwift/vuforia-sdk-ios-6-2-6`
* Download Vuforiat Sample Targets.
[Vuforiat Sample](https://developer.vuforia.com/downloads/samples)
* 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.

``` 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

![img_2150](https://cloud.githubusercontent.com/assets/5833510/23090197/d0469380-f565-11e6-8fa0-dc2de94eed8c.PNG)
## Thanks

I am referring to the following page.

* [Making Augmented Reality app easily with Scenekit + Vuforia (in English)](http://qiita.com/akira108/items/a743138fca532ee193fe)