Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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?