Jump to content

Jason D

Verified Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Jason D

  1. (If my previous post with error messages goes through) I was able to fix it, I changed:

    HTCViveTrackerProfile.cs
    // line ~14
    // Comment out:
    //using PoseControl = UnityEngine.XR.OpenXR.Input.PoseControl;
    // Change to:
    using PoseControl = UnityEngine.InputSystem.XR.PoseControl;

    Unity deprecated UnityEngine.XR.OpenXR.Input.PoseControl (it says so if you mouse over it in Visual Studio), they suggest UnityEngine.InputSystem.XR.PoseControl instead.

    Now I just need to keep something on my Oculus Quest 2's sensor to make it think a user is in the headset, and I receive tracking in Unity. Trying to figure out if I can eliminated the headset now.

  2. Managed to get the trackers somewhat working in PC VR.

    I've joined the discord (https://discord.gg/viverse) to get access to the beta.

    I installed the Vive Streaming Hub (https://www.vive.com/us/support/vs/category_howto/using-vive-streaming.html).

    Paired & calibrated the tracker with the help of an Oculus Quest 2. Assigned the tracker as Camera in SteamVR.

    I logged in & followed the VIVE_Ultimate_Tracker_PC_OpenXR_v2.pdf, however, it is not working. I'm on Unity 2022.3.16, URP, OpenXR Plugin + Vive OpenXR.

    image.png.b889ca506ab6b42f2cabe7b8caa0a6c7.png

    image.png.3862a1c490e84e1d7e0d523a19f765e6.png

    image.png.049a9e4fc87c4d46d203feb1680589b0.png

    Added the HTC VIVE Tracker Profile C# script to the project:

    image.png.c77eedcca531ccaf1ba9d3824e9939f5.png

    Created an Input Action asset and assigned the camera tracker:

    image.png.cbee2979dc9d766db21aeb2514a754ba.png

    I get a warning:

    No GetDeviceLayoutName() override detected in HTC Vive Tracker Profile. Binding path validator for this interaction profile is not as effective. To fix, add GetDeviceLayoutName and GetInteractionProfileType override in this profile.
    UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at ./Library/PackageCache/com.unity.xr.management@4.4.1/Runtime/XRGeneralSettings.cs:148)

    Errors:

    HTC Vive Tracker Extension Not Enabled
    
    Failed to create Action 'htcvivetracker/devicepose' with result 'XR_ERROR_PATH_UNSUPPORTED'.
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 
    
    Could not create a device for 'HTC HTC Vive Tracker OpenXR (XRInputV1)' (exception: System.ArgumentException: Expected control 'devicePose' to be of type 'PoseControl' but is of type 'PoseControl' instead!
    Parameter name: path
      at UnityEngine.InputSystem.InputControl.GetChildControl[TControl] (System.String path) [0x00025] in .\Library\PackageCache\com.unity.inputsystem@1.7.0\InputSystem\Controls\InputControl.cs:674 

    I was able to get the tracker working in Unity with the SteamVR plugin, but I'd vastly prefer using OpenXR.

×
×
  • Create New...