Search Unity

Releasing 'AR + GPS Location' package for location-based AR with AR Foundation

Discussion in 'AR' started by dmbfm, Dec 17, 2018.

  1. dmbfm

    dmbfm

    Joined:
    Apr 13, 2016
    Posts:
    17
    Hey guys!

    I just released the 'AR + GPS Location' package on the Unity Asset store! My first release package actually!

    It can be used to create location-based AR experiences using AR Foundation --- though support for the Unity-ARKit-plugin is on our roadmap.

    Some of the features:
    • Place 3D Objects in geographical positions defined by their latitude, longitude and altitude.
    • Place 3D Text markers on real-world points of interest (example using OpenStreetmaps is included.)
    • Smooth movements on device location and heading updates.
    • Move objects or place them along paths (Catmull-rom splines) on the map.
    • Augmented reality floor shadows.
    • Double precision vector structs, DVector2 and DVector3.
    • General purpose Catmull-rom curves and splines.

    You can check it out at: https://assetstore.unity.com/packages/templates/systems/ar-gps-location-134882

    And a very simple video showcase:


    Since it is my first published package, feedback and feature requests are more than welcomed.

    If you have any questions, just ask them here or write me via email: daniel.mbfm@gmail.com


    Thanks!
     
  2. wilwilwil

    wilwilwil

    Joined:
    Jul 27, 2012
    Posts:
    19
    Hello, I got following error message..

    Assets/ARLocation/Scripts/ARLocationManager.cs(11,22): error CS0234: The type or namespace name `ARFoundation' does not exist in the namespace `UnityEngine.XR'. Are you missing an assembly reference?

    How can I fix it??
     
  3. wilwilwil

    wilwilwil

    Joined:
    Jul 27, 2012
    Posts:
    19
    Oh. My bad. But you'd better inform buyers about installing AR foundation.
     
  4. dnoparker

    dnoparker

    Joined:
    Aug 28, 2013
    Posts:
    63
    How accurate is it at larger distances? Let's say I wanted to stick an object on a building a mile away.
     
    newguy123 likes this.
  5. dmbfm

    dmbfm

    Joined:
    Apr 13, 2016
    Posts:
    17
    For objects that are really far away I would say it depends heavily on the compass accuracy which, in
    my experience, can vary a lot from device to device. This is because small deviations in the angle will
    cause large distance displacements.

    I will make a test for a similar scenario and post my results here.
     
    VadimPyrozhok likes this.
  6. dmbfm

    dmbfm

    Joined:
    Apr 13, 2016
    Posts:
    17
    It's quite explicit on the page and on the docs that you need to install AR Foundation. Now we also
    support Vuforia actually (update pending for review on the Asset Store)
     
  7. dnoparker

    dnoparker

    Joined:
    Aug 28, 2013
    Posts:
    63
    That would be wonderful! thank you.
     
  8. sahilraut172

    sahilraut172

    Joined:
    Mar 30, 2019
    Posts:
    1
    isn't a free version available? student here and really want to use this asset.
     
  9. danielos1996

    danielos1996

    Joined:
    Sep 6, 2018
    Posts:
    3
    Yeah or even a stripped back demo version for testing purposes. I have been burned too many times with AR in things like mapbox.
     
    cwalshe1 likes this.
  10. donsh1

    donsh1

    Joined:
    Apr 25, 2018
    Posts:
    2
    Hi Daniel, Thank you so much for this package. I've been testing it out and followed the Vuforia set up, however the game objects with different co-ordinates always seem to follow the camera without allowing me to walk past it. Not sure where I am going wrong. The device tracker is to 'Positional' and followed the steps in the documentation. I'm trying to achieve something like the tree video you did. Thank you for the help.
     
  11. donsh1

    donsh1

    Joined:
    Apr 25, 2018
    Posts:
    2
    Sorry had abit more testing - my model scale was huge in relation to the co-ordinate, works better now in relation to the GPS. All fixed now!
     
  12. Lojtra12

    Lojtra12

    Joined:
    May 4, 2017
    Posts:
    80
    Hello, is there any chance of a trial version? I would like to test it before the purchase, is that a possibility?
     
  13. andrus1989

    andrus1989

    Joined:
    Jun 9, 2017
    Posts:
    1
    Hello. Is there a regulator of maximum distance? I read documentation and don't fined something like it.
     
    Last edited: Jul 31, 2019
  14. anjonegro

    anjonegro

    Joined:
    Oct 30, 2016
    Posts:
    1
    Não é uma versão demo demo, para testes? Gostaria muito de experimentar. Estudante aqui. Se tiver como faço para adquirir?
     
  15. VadimPyrozhok

    VadimPyrozhok

    Joined:
    Jul 28, 2016
    Posts:
    7
    I had bad results in similar conditions. Device iPhone 11pro.
    Low light performance is still a real bottleneck
     
  16. t-heo

    t-heo

    Joined:
    Aug 22, 2019
    Posts:
    24
    Hi!
    Enjoying it but having an issue with Scripting > Placing objects at runtime. I tried the code that is provided here: https://docs.unity-ar-gps-location.com/guide/#arlocationconfig but with no luck. It works perfectly if I use the default GPS Stage Object but not when I try to place objects at runtime, even at the exact same coordinate. Anyone else had issue with placing objects at runtime?


    Code (CSharp):
    1. using ARLocation.UI;
    2. using ARLocation;
    3.  
    4. public GameObject gameObject;
    5.                 {
    6.                     var loc = new Location()
    7.                     {
    8.                         Latitude = 50.169025, // for example
    9.                         Longitude = 20.960117, // for example
    10.                         Altitude = 1,
    11.                         AltitudeMode = AltitudeMode.GroundRelative
    12.                     };
    13.                     var opts = new PlaceAtLocation.PlaceAtOptions()
    14.                     {
    15.                         HideObjectUntilItIsPlaced = true,
    16.                         MaxNumberOfLocationUpdates = 2,
    17.                         MovementSmoothing = 0.1f,
    18.                         UseMovingAverage = false
    19.                     };
    20.                     PlaceAtLocation.AddPlaceAtComponent(gameObject, loc, opts);
    21.                 }
     
    pjj9606, BroPet and polforeman like this.
  17. unity_96801CDCB01FB6AC0010

    unity_96801CDCB01FB6AC0010

    Joined:
    Jul 15, 2021
    Posts:
    1
    do you have the answer to that problem?