Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question AR Anchor saved in file

Discussion in 'AR' started by FOKSlab, May 17, 2022.

  1. FOKSlab

    FOKSlab

    Joined:
    Jun 27, 2017
    Posts:
    30
    Hi,

    Do you know a way to save ARFoundation Anchors (ARAnchor) into files (and to reload them obviously) in order to set the file in the project build it and deploy the app on mutiple devices next (iOS/Android/Hololens 2) ? This should give the opportunity to have the same scenario on multiple devices without setting the anchors on each.
    Regards,

    MLR
     
    ngthlong1990 likes this.
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,128
    There are three options I know of:
    1. Azure Spatial Anchors. This option should work across iOS, Android, and HoloLens, although I haven't tested it myself.
    2. ARCore Cloud Anchors. They are available on iOS/Android and work great in my experience.
    3. ARKit World Map. This feature is supported by AR Foundation out of the box but it's iOS only. And I believe it's only suitable for indoor usage.

    And a bonus option is ARKit Geo Anchors, but they only work in public spaces and only in few regions of the US.
     
    andyb-unity likes this.
  3. FOKSlab

    FOKSlab

    Joined:
    Jun 27, 2017
    Posts:
    30
    Thanks for your quick reply.
    I was hoping there was a generic way to serialize the ARAnchor data and reuse them on any device :( . Azure Spatial Anchors must be stored in the Microsoft cloud, mustn't they ? I was looking for a solution to do it offline (but maybe this is not possible).
     
    ngthlong1990 likes this.
  4. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,128
    Unfortunately, the only solution that works offline is ARKit World Map. Azure and ARCore require internet access and store anchors in the cloud and if the cloud usage is high, you have to pay for it.
     
    andyb-unity likes this.
  5. FOKSlab

    FOKSlab

    Joined:
    Jun 27, 2017
    Posts:
    30
    :'( (thanks anyway ;) )
     
  6. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,128
    Also, Vuforia has Area Targets. It's an enterprise-oriented solution that requires previously scanning a place and preparing the scan for Vuforia SDK. I believe it should work offline then.
     
  7. FOKSlab

    FOKSlab

    Joined:
    Jun 27, 2017
    Posts:
    30
    I was looking at this when you sent your post :) , I will ask Vuforia if it is available offline (and what is the licence fee). I will send feedbacks on offline availability for vuforia area targets in this thread asap.
     
    KyryloKuzyk likes this.
  8. ptc-zsolt

    ptc-zsolt

    Joined:
    Jul 27, 2020
    Posts:
    1
    Check out the Area Target Capture API that allows you to build your own app, capturing a portion of the environment using an iOS LiDAR enabled device! The captured target behaves just like any other Vuforia target. You can store it, share it, and consume on most platforms supported by Vuforia: https://library.vuforia.com/develop-area-targets/capture-api.
     
  9. FOKSlab

    FOKSlab

    Joined:
    Jun 27, 2017
    Posts:
    30
    I promised feedbacks so here they are : Vuforia area target is available offline and it is possible to share the area target with other devices (deploying the same app with the area target captured on another device I mean).
     
    simonpasi_XR and KyryloKuzyk like this.