Jump to content

[Tutorial] OpenXR PC VR : How to use VIVE Tracker


Vivi Wu

Recommended Posts

4 minutes ago, AEntropy said:

I tested what you suggested, installing VIU and running the UGUI scene, but running this makes no sense as it is a scene meant to work with Controllers, not with Trackers. The tracker doesn't show up, but it works with controller, so this doesn't help.

Hi @AEntropy,

Tracker model doesn't show up?

Is it because your setup is OpenXR?

Could you take a screenshot of your project settings(XR Plug-in Management)?

Link to comment
Share on other sites

Hi @AEntropy,

I think I found the post that you mentioned which was written by someone.

After looking into the code, it looks quite the same as what HTCX documented.

https://registry.khronos.org/OpenXR/specs/1.0/html/xrspec.html#XR_HTCX_vive_tracker_interaction

Unfortunately, there is no script that can be downloaded.

Did you try this script yet?

Link to comment
Share on other sites

20 hours ago, VIVE_chengnay said:

Hi @AEntropy,

I think I found the post that you mentioned which was written by someone.

After looking into the code, it looks quite the same as what HTCX documented.

https://registry.khronos.org/OpenXR/specs/1.0/html/xrspec.html#XR_HTCX_vive_tracker_interaction

Unfortunately, there is no script that can be downloaded.

Did you try this script yet?

Yes, this is what we have been working with.

We need someone, preferably someone at HTC Vive who understands the Actions system and Unity's new Input System to go in and make this script work with all the Actions described in the Khronos OpenXR standards. It sounds like you don't have much knowledge on how that works, so you may need to contact someone who works directly on that. I am guessing likely someone working on the newer Vive Self Tracker is making it work with OpenXR, so they may have some Tracker Profile already created for that, that may have some Actions implemented. Maybe Dario has some knowledge.

Here are the Actions outlined in the OpenXR Standards:

image.thumb.png.62902146fd88d03cbdc1da9f135c527a.png
Out of those Actions, only the "/input/grip/pose" Action works for some reason. I haven't been able to get any of the other Actions working. So, if we can get someone to get those working, that'd solve the problem.

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

Don't know what happened. But somehow the Pogo pins started to work. Maybe a SteamVR update fixed the issue.

Tested it with Unity 2021.3 (Unity XR SDK)

The profile (see attachment) is not complete yet but it supports the trigger pin. I still get some type ButtonControl (float) vs int value warnings but don’t have time the look into that. Hope someone get this fully functioning.

HTCViveTrackerProfile.cs

Link to comment
Share on other sites

We have a hardware adapter with a single button the connects to the pogo pins. 

I have a very simple unity secene that has a basic XR Origin and a GameObject for the tracker with a TrackedPose driver and a custom script with InputActionReference triggerReference = null; and callbacks ( triggerReference.action.started += TriggerCB;     triggerReference.action.canceled += TriggerCB;) to detect the actions.

Did you add the HTC Tracker profile to the Interaction profiles and created a XR Input action map to associate the pose and trigger with the InputActionReference?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...