Search Unity

Handling tracking-loss of Ground Plane

Discussion in 'Vuforia' started by Section-One, Jan 20, 2018.

  1. Section-One

    Section-One

    Joined:
    Sep 8, 2014
    Posts:
    80
    I'm using groud plane on galaxy s7, and after walking around in the room, or just turning too fast with my phone away from the stage will cause it to loose tracking at some point.
    And when that happens, the game becomes unplayable.
    The stage is attached statically to the camera from that point on.

    How can I detect that situation and what should I do about it?
     
    De-Panther likes this.
  2. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
    Happened to me too... It seems that after pausing the app(minimize?) and getting back, it's starting to track again...
    I think it's related to SmartTerrain, maybe there's a way to check if it was lost and initializing it again
     
  3. Section-One

    Section-One

    Joined:
    Sep 8, 2014
    Posts:
    80
    Not just when switching the app to background. Also when moving my phone too far from the stage.

    The question is how to detect loss of tracking for ground plane? I assume it's not "lost" like with image targets... its just buggy.
     
  4. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
    I think I didn't explain myself correctly:
    It happens to me too when I'm moving too fast.
    When I switch the app to the background and going back it works again.

    Looking at the implementation of it, it uses the SmartTerrain.
    I tried to use DeviceTrackerARController.Instance.RegisterDevicePoseStatusChangedCallback
    And Stop+Start the SmartTerrain if TrackableBehaviour.Status isn't tracked/detected/extended... But it didn't work.
     
  5. Section-One

    Section-One

    Joined:
    Sep 8, 2014
    Posts:
    80
    Maybe we can detect if the stage changed position by more than x,y,z and than auto-pause the game and initialize Vuforia + require the user to tap again on the ground ..

    Would be helpful if someone from the team gave instructions on how to officially handle this.
     
    De-Panther likes this.
  6. mitchtbh

    mitchtbh

    Joined:
    Dec 8, 2013
    Posts:
    63
    Also looking for a solution for this issue!
     
  7. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287