Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Vive tracker for camera controller

Discussion in 'Cinemachine' started by moliminous, Jun 5, 2019.

  1. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    51
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,510
    It's a little hard to tell much from your pictures.
    Can you give some more detail about your setup?
     
  3. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    51
    hey, there i solved the issue by using the third-party code. the reason it's zoomed in is that steamvr hard locks the fov of the camera to 111 something. this can't be changed and makes everything warped. by allowing steam vr to run without a headset and using some custom scripts for the vive trackers I'm able to get this working.
     
  4. josterday

    josterday

    Joined:
    Jan 22, 2018
    Posts:
    48
    You may want to strip the SteamVR camera component which is calling for the HMD and just use the Tracker Component scripts from the SteamVR Kit (will Edit once I check the script name). Create a Game Object, then parent the chair to that.

    Apply the script to the chair, input the tracker ID (typically 1 is HMD, 2/3 are lighthouses, 4/5 are controllers, 6 is first tracker) and it will grab the transform data. Move the parent for adjustments.
     
  5. moliminous

    moliminous

    Joined:
    Oct 16, 2015
    Posts:
    51
    yeppers you sir are correct in your judgement since that's exactly what i did to get this all working