-
Notifications
You must be signed in to change notification settings - Fork 7
Usage
naja1987 edited this page Dec 31, 2010
·
3 revisions
- Download nARLib.zip and unpack it
- Add the downloaded files to your Xcode project
- Add the
CoreLocation.framework
and theQuartzCore.framework
to the Framework-Group in you project - Drag the
libnarlib.
a to the Framework-Group, too - Begin coding!
- A good starting point is the example project (download here example.zip or checkout from source)
- Extend
ARObject
for heading based points of interest orARGeoLocation
for location based POIs. You can add information as you like to your objects. - 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
. - 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 ofARView
s. - 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. - That's it!