Giter Club home page Giter Club logo

gps-based-ar's Introduction

GPS_Based_AR


A new feature has been added. Different objects in different locations can be augmented.


Introduction

  • This is a basic GPS based android app in Unity using Vuforia SDK
  • This app keeps track of our current GPS coordinates and when we are close to a specific location an object gets augmented
  • In the app you can add places of your choice (For Example - Home,Office) and its GPS coordinates in the location script
  • The distance at which you wish the object to augment can also be entered in the script
  • This app is more effective when the device (your phone) contains a gyroscope

Instructions For Single Object in Different Locations


First : License

Replace the vuforia license key with yours! 

Second: Enter Coordinates and Radius

  • Select ARCamera in scene heirarchy,

  • In its Inspector, enter your Latitude and Longitude!

  • Enter a radius of around 100 for inital testing.

      (Optional)
    
      You can also Enter coordinates for Multiple Location too,
    
      First, 
       Enter the name of the places in the list. (in location.cs, line 8)
    
      Second,
          Go to function Dropdown_IndexChanged() in location.cs.
          Enter originalLatitude and OriginalLongitude for each places in your list according to index.        
    

Third: Build and Test on your phone!

Make sure Location is switched on and its in "Device only" mode! (Most Preferred)

Wait Like 5-10 seconds for your device to get located.

Instructions For Different Objects in Different Locations


First : License

Replace the vuforia license key with yours! 

Second: Open "MultipleObjects" scene

Third: Enter number of models

  • Select ARCamera in scene heirarchy,

  • In its Inspector, enter number of models and drag the prefab in heirarchy to the slots

  • Enter a radius of around 100 for inital testing.

Fourth: Enter coordinates for Multiple Location

  • Enter the name of the places in the list. (in LocationForMultipleObjects.cs, line 8)

  • Go to function Dropdown_IndexChanged() in the script, Enter originalLatitude and OriginalLongitude for each places in your list according to index.

          if adding new location in the list, dont forget to assign the variable "modelno".
    
  • Add cases if for any extra location added in Activator() in line 181, Just copy-paste the above case's code.

  • By default 2 cases for 2 location are already added.

Fifth: Build and Test on your phone!

Make sure Location is switched on and its in "Device only" mode! (Most Preferred)

Wait Like 5-10 seconds for your device to get located.        

Thanks

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.