Search Unity

Can't get positional tracking back if I loose it

Discussion in 'VR' started by demonixis, Nov 16, 2017.

  1. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello,

    Since few versions of Unity I can't get back the tracking if I loose it. When the tracking is lost in Unity, if I go back to the Mixed Reality Portal, I get back the tracking but when I enter again in the Unity application, the tracking is gone. It looks like Unity don't try to get the tracking when it loses it.
    To fix that I've to quit the application and start it again. It was not the case with Unity 2017.2f3 and it's the case with p1 and p2. Do you have the same issue here?
     
  2. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    Is this headset and controller tracking or just one of the two, or are you referring to what the API is reporting for tracking state? Also, what version are you currently running where you're seeing this issue. I'm guessing you're on 17.2p2 but want to make sure.
     
  3. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    hello, yes it's just the headset and I've to restart the application to get it again. I use the latest patch release (2017.2p2).

    I know that the tracking is lost because I only have the rotation.
     
  4. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
  5. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello,

    The MRTP build have the same problem. This is easy to reproduce.

    1. Create a project
    2. Switch to UWP
    3. Make a simple scene and move, the WorldManager.state is equal to Active
    4. Mask the two cameras, the WorldManager.state is equal to Inhibited
    5. Try to get tracking again : You can't
    6. Press the Window button to return to the MR portal
    7. You have the positional tracking !
    8. Click on the Unity hologram to re-enter in the app
    9. You don't have the positional tracking

    When the positional tracking is lost, the controller position is bad.

    My setup:
    - Windows 10 x64 Fall Creator Update (non insider)
    - GeForce 980 with latest drivers (from today)
    - 32 Gb DDR4
    - HP Mixed Reality + controllers
    - Unity 2017.2p1 MRTP4 + 2017.2p2

    I'm going to try this out with older MRTP release and with another headset (I've two Dell).

    Regards,
     
  6. hot-knife-digital

    hot-knife-digital

    Joined:
    Oct 22, 2013
    Posts:
    12
    Tracking in Unity is flaky to say the least - even after minimal testing.
    Run a simple project and the controllers track.
    Come out of play - change a small piece of code and press play and tracking will be lost or offset.
    Closing Unity & restarting Unity helps but doesn't guarantee correct tracking.

    Also the MRTP4 version seems quite unstable - and is happy to totally crash on what should be a red error message.
     
  7. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Not yet tested but it seems to be fixed in MRTP5