Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Interaction's avatar
Interaction
Honored Guest
7 years ago

Oculus Rift S tracking with OptiTrack in Unity

I'm trying to track a Rift S headset using an OptiTrack system. The setup described here goes as expected (using passive markers, not the clip). The issue arises when starting a scene in Unity. The HMD is tracked properly but it is offset compared to other object. I can even see the optitrack markers one meter away from me through the headset. It seems like the headset is tracked by the included tracking system of the headset and that the optitrack data is ignored.

I use Motive 2.1.1, and the OptiTrack OpenVR driver to stream headset data to SteamVR.

Do you know a way to solve this issue or to superpose the Optitrack and Oculus frames of reference?

4 Replies

Replies have been turned off for this discussion
  • Disable the tracking of oculus hmd in unity and just use optitrack for the hmd?
    • awan.mudassir's avatar
      awan.mudassir
      Honored Guest

      I am facing same problem. Can you tell how to disable Oculus tracking?

      • UBCOHCI's avatar
        UBCOHCI
        Explorer

        Yes, To disable the Oculus tracking, you have to delete the OVR_Sample_interaction_Rig or any OVRPlayer that you use. Simply put markers on the Headset and create a Tracked RigidBody (from the Optitrack prefab) in Unity. Create a camera an put it as the child of the Tracked Rigidbody. Make your custom camera the MainCamera. 

         

         

  • What about hand tracking? Is it possible to combine Meta hand tracking with OptiTrack positioning?