Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to kill Oculus's head tracking(gyro sensor)

Discussion in 'AR/VR (XR) Discussion' started by Cre_Kikuya, Oct 6, 2015.

  1. Cre_Kikuya

    Cre_Kikuya

    Joined:
    Jul 10, 2015
    Posts:
    3
    Hi guys,

    I have a optical sensor tracking system, and want to use it for tracking the Oculus.
    The sensor provides Position and Rotation data,
    so I want to deactivate Oculus's head tracking(gyro sensor).
    (The optical sensor's tracking is more accurate than Oculus and has a reputation,
    so I don't think about hybrid using [optical sensor's position and Oculus's rotation])

    I have only 1 idea, but it's not so good.
    -- My Idea:: Using old Oculus plugin --
    The old Oculus plugin is consists of some scripts,
    so by modifying them I can deactivate head tracking.

    BUT, current Oculus runtime(0.7.0.1) does not support this plugin.
    --

    Do you have any idea?
     
  2. Thomas-Mountainborn

    Thomas-Mountainborn

    Joined:
    Jun 11, 2015
    Posts:
    489
    Oculus also has optical tracking - are you still using the DK1? If so, it's high time you upgraded.
     
  3. Cre_Kikuya

    Cre_Kikuya

    Joined:
    Jul 10, 2015
    Posts:
    3
    Thank you Thomas!

    I'm sorry for my miunderstandin,
    of course I use DK2 and I know Oculus's optical tracking.
    I want to track it in huge area and walk around by own feet.
    So I use a motion capture system for tracking.
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Do you want to disable the positional tracking or the orientation?
    The optical tracking is primarily related to the positional tracking with the highly calibrated internal sensors handling the orientation.

    For the positional tracking there is a flag in the camera script (if you downloaded and added the Oculus Unity package version 0.1) to disable that.
    For the orientation you could freeze timewarp.

    Keep in mind that if you disable the oculus headtracking you also lose everything else that comes with oculus as its one integrated system (the timewarp and prediction are all bound to the exact knowledge on how the sensor works). If you want to get rid of their orientation tracking, you potentially are better of using an OSVR Kit like Razers hacker kit and then building your timewarp and prediction in top of your external large area tracking (or build on Lighthouse and use HTC Vive or future lighthouse oriented products)
     
  5. rpschulze1

    rpschulze1

    Joined:
    Aug 31, 2015
    Posts:
    1
    How do you freeze timewarp? In OVR's Unity prefab, I don't see it listed as an option in the OVRCameraRig. I don't see a prefab for a OVRCamera controller although I've seen it mentioned in other posts.