Jump to content

(XR Elite) How use Vive Tracker in Unity?


HANAMA_JP

Recommended Posts

I want to use passthrough and vive tracker in Unity using XR Elite.

My project uses OpenXR and InputSystem.
Passthrough is now possible.

However, I'm having trouble figuring out how to recognize vive trackers with InputSystem.

I have struggling with this problem for over a month.

It would be helpful if someone could help me.

 

 

 

Link to comment
Share on other sites

Hi, @chengnay,

Thank you very much for your advice.
After installing the SteamVR plugin, Tracker was recognized.

However, I have one concern.
Adding the Steam VR_Tracked Object (Script) Component was required to move the Cube with the Tracker's Position and Rotation.
Is this correct?

I also tried with InputSystem only, but I couldn't get the Tracker's Position/Rotation.
Position/Rotation
  Action Type: value
  Control Type: Vector3 / Quaternion
Binding Path : devicePosition[XYZ HTC Vive Tracker (OpenXR)]
                           /deviceRotatio[XYZ HTC Vive Tracker (OpenXR)]

Link to comment
Share on other sites

Hi, @chengnay,

I appreciate your cooperation.

After installing the SteamVR plugin, InputSystem's controller inputs no longer work either.
I'm still researching how to get controller input, but I think you can probably use the SteamVR plugin InputSystem to get controller input.
SteamVR plugin may be more powerful than Unity InputSystem.

Link to comment
Share on other sites

Hi @HANAMA_JP,

It is depending on your needs.

I saw you want to use Unity's Input System.

If your project can switch to SteamVR's Input System, that's also possible.

Switching to SteamVR's Input System, is your previous problem still exists?

On 7/2/2023 at 6:16 PM, HANAMA_JP said:

However, I have one concern.
Adding the Steam VR_Tracked Object (Script) Component was required to move the Cube with the Tracker's Position and Rotation.
Is this correct?

I also tried with InputSystem only, but I couldn't get the Tracker's Position/Rotation.
Position/Rotation
  Action Type: value
  Control Type: Vector3 / Quaternion
Binding Path : devicePosition[XYZ HTC Vive Tracker (OpenXR)]
                           /deviceRotatio[XYZ HTC Vive Tracker (OpenXR)]

And, I also see that you have VIU installed which helps you do cross-platform.

 

Link to comment
Share on other sites

Hi, @chengnay,

I need:
・Passthrough
・Full body tracking (Use Tracker)
・UI operation

If possible, I don't care what system I use.

I got interested in XR and started writing code.
Therefore, I am lacking in basic skills as an engineer.
So I don't know the impact of each plugin.

Right now, I'm trying to check things one by one from a simple point, and I'm trying to operate the UI only with the SteamVR plugin.

(I'm studying on the Internet, but it's taking me a while to understand because there are so many different methods.)
I'll let you know later if the UI can be operated.

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...