Skip to content
naja1987 edited this page Dec 31, 2010 · 3 revisions

Usage

Setup

  1. Download nARLib.zip and unpack it
  2. Add the downloaded files to your Xcode project
  3. Add the CoreLocation.framework and the QuartzCore.framework to the Framework-Group in you project
  4. Drag the libnarlib.a to the Framework-Group, too
  5. Begin coding!

First steps

  1. A good starting point is the example project (download here example.zip or checkout from source)
  2. Extend ARObject for heading based points of interest or ARGeoLocation for location based POIs. You can add information as you like to your objects.
  3. Define the corresponding views (you are free to use different implementations for radar views and heading or location based POIs). They must be a subclass of ARView.
  4. Add an instance of ARViewController to your view (currently only landscape working!) and add with [arViewController addObject:myObject WithViewAR:myARView WithViewRadar:myRadarView] your POIs with the corresponding implementations of ARViews.
  5. Start the localization process by creating an instance of the ARLocationService class and send message [locationService startLocating]. Now, your POIs get updated automaticly when your heading or location is changed.
  6. That's it!
Clone this wiki locally