Unity - HTC Vive native integration

Hi!

I’m having an issue trying to support both the Vive and Oculus Rift with the native integration.

First of all,yes i already know that the OpenVR native integration only supports the headset right now and it’s ok like that.

Second,my issue is that:

When i’m playing my game with the Oculus Rift everything is fine,however if i have the HTC Vive connected i’m seeing myself higher than i should be… To be more detailed it seems like the base of my Play area (the blue circle) is where the camera should be… and instead i’m 1 meter higher.

So what i need to do is to recenter/move the camera (if the vive is present) to a lower spot,so i should be ok.

However even if i’m seeing VRDeviceType.Oculus i don’t see any VRDeviceType.OpenVR… So how could i check if the Vive is connected in order to recenter it as i want?

Any tips?

Thanks in advance

  • Andrea

Ps I probably should say that i’m using Unity 5.4b13

According to Aaron from Valve, you won’t be able to do it without at least parts of the plugin still (specifically the file that imports all the native calls from the .dll to deal with their API directly and then he mentions an example that you can model your solution after).

Ok thanks that’s solved my issue :slight_smile: