Giter VIP home page Giter VIP logo

sample-ar-mixare-ios's Introduction

Sample-AR-Mixare-iOS

This is a sample about how to use Mixare on your own project.

You can download Mixare for iOS here. It is necessary in order to import the classes and see the methods that we need to develop our own Mixare project

This sample was created by Javier González Pérez inside the company SolidGear SL.

Steps to reproduce the sample in your own project

  1. Create a new project on Xcode Single View Application. I recommend without Storyboards and with ARC

  2. Import all the necessary classes and images from the Mixare project:

    -AugmentedGeoViewController (View)

    -AugmentedViewController (View)

    -CameraController (View)

    -MarketView (View)

    -Radar (radarView)

    -RadarViewPortView (radarView)

    -PopUpWebView (guiControllers)

    -PressHud (guiControllers)

    -PullRefreshTableViewController (guiControllers)

    -WebViewController (guiControllers)

    -MapViewAnnotation (reality)

    -PoiItem (reality)

    -DataSource (data)

    -Position (data)

    -Images

  3. Open the Mixare project on Xcode. We need copy the method "initControls" from MixareAppDelegate.m to our AppDelegate.m

  4. Search the method "openARView" on MixareAppDelegate.m and copy the content on our init method on our AppDelegate.m.

  5. Import on our AppDelegate

    -AugmentedGeoViewController.h

    -PoiItem.h

    -Position.h

  6. Remove from our AppDelegate the import of ViewController (we will not use that class)

  7. Add the frameworks:

    -AvFundation

    -MapKit

    -QuartzCore

    -CoreMotion

    -CoreMedia

    -CoreVideo

    -CoreLocation

  8. In our AppDelegate.h we change all about the class ViewController with AugmentedGeoViewControllers (the import and the object). We import "CoreLocation/CoreLocation.h" and create a new object: @property (strong, nonatomic) CLLocationManager *locationManager;

  9. In our AppDelegate.m we remove the calls to the DataSource and we put the right names to the vars (for example _augViewController).

  10. Launch the App in the simulator or in a real device in order to search all the compilation problems:

    -Remove the imports of Resources.h

    -Change the call of Resources to Main bundle: [[Resources getInstance] bundle] to [NSBundle mainBundle]

    -Change the imports MixareAppDelegate.h to AppDelegate.h

  11. In our init method we have to init the locationManager: _locationManager = [[CLLocationManager alloc] init];

  12. We make public the method addCoordinate of the class AugmentedViewController adding them to the AugmentedViewController.h

  13. We create a new method addPoisToARView on the AppDelegate.m to add the lois to the view.

  14. We call the method addPoisToARView in the init of our app after instance _augViewController.

  15. In the method addPoisToARView we create the POIs to send them to the _augViewController using the method addCoordinate.

sample-ar-mixare-ios's People

Contributors

javiergonzper avatar

Watchers

 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.