Code Monkey home page Code Monkey logo

vuforiasampleswift's Introduction

VuforiaSampleSwift

Vuforia sample code with SceneKit using Swift.

Requirement

  • Xcode 9.2
  • iOS 11.1
  • Vuforia SDK for iOS v7.0.43

Setup

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

vuforiasampleswift's People

Contributors

hriffiod avatar yshrkt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.