Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

localized and non-localized maps for better tracking results

Discussion in 'ARCore' started by areavisuale, Jul 6, 2018.

  1. areavisuale


    Jul 23, 2015
    I'm trying to create a scene using ArCore where I instantiate a gameobject when the app starts tracking, and I would like that, after the tracking is lost and resumed, my gameobject remains in the position it was before tracking was lost.

    Positioning my gameobject at the first tracking (using this code: Pose firstpose = m_AllPlanes[0].CenterPose results in an undesiderable behavior, because probably the first tracked plane isn't so much stable.
    I read in this page: that ArCore has "Localized" and "non-localized" maps, and in the first case the gameobject remain always in position also after tracking is lost and resumed; this can be seen in the HelloAr scene, where some instantiated Droids disappear and some remain after tracking lost and resumed.

    Do you know how to understand when the tracking is stable and the created maps are "localized" so I can Instantiate my gameobject only in that case?