Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

[UnityEngine.XR] OpenVR, maximum 9 input devices?

Discussion in 'AR/VR (XR) Discussion' started by AmazingSummer, Aug 3, 2019.

  1. AmazingSummer

    AmazingSummer

    Joined:
    Jul 30, 2015
    Posts:
    14
    I am using XR library with openVR in Unity 2019.1.10f1.
    I have a tracking system with 4 lighthouse sensor + 6 vive tracker(2018), without headset.
    In SteamVR Panel, I can see 11 devices icons.
    null headset("H") + 4 lighthouse sensor + 6 vive tracker(2018)

    I can only get 9 input devices as maximum, is this a limit? Those 9 input devices follows the order of "serial number of hardware". It means, I can always detect first 9 devices by their name order.

    In my case, I can only detect 3 lighthouse sensors and 5 vive trackers and a generic headset(null). however, I want to get 6 trackers only. If 9 devices are the limit, can I ignore unnecessary devices like lighthouse sensors?

    my first thought is trying to reorder the devices in steamvr, but I didn't find the related option.

    Below is the code:

    Code (CSharp):
    1. var inputDevices = new List<InputDevice>();
    2.         InputDevices.GetDevices(inputDevices);
    3.         DevicesCount = inputDevices.Count;
    Hope someone can give me some hints, thank you.
     
  2. jasbahr

    jasbahr

    Joined:
    Jan 22, 2014
    Posts:
    7
    Also running into this.
     
  3. thelghome

    thelghome

    Joined:
    Jul 23, 2016
    Posts:
    404
    Our original problem is solved, by using openvr from github instead of unity XR. It's the only way to unlock the limit.
    and this is what we achieved finally in 2019.
     
unityunity