Jump to content

VIU update: support for the OpenVR XR plugin!


dario

Recommended Posts

Hi all, 

Please note there is a new VIU update (v1.11.0) now on the asset store and one of the new features is support for the new Unity XR architecture using Valve's OpenVR XR Plugin.

Please note that the OpenVR XR Plugin is in preview!

Currently only preview 2 is supported - so please only use that one for now. This version supports Unity XR input, you'll need the SteamVR plugin to support the latest SteamVR input system.

If you installed a later release first you may run into issues so please use the instructions here and install it using the git URL:

https://github.com/ValveSoftware/steamvr_unity_plugin/tree/UnityXRPlugin

This works in the editor but to make builds you'll also need to add this patch: 

https://github.com/ValveSoftware/steamvr_unity_plugin/issues/713

Also note if using SteamVR Unity Plugin v2.6.0b2  see the following fix:

https://github.com/ViveSoftware/ViveInputUtility-Unity/issues/184

For those visiting here for the first time - welcome and feel free to ask questions - VIU code can be ported between PC and Android e.g. Vive/Rift/Quest/Wave  now including the new Unity XR plugins (for Wave devices a Unity XR plugin is forthcoming - for now use "Unity Mock HMD").  What this means is that you can use URP and more of the latest from Unity across platforms and devices from a single code base.

  • Like 1
Link to comment
Share on other sites

One more thing for those who use the simulator - you'll need to disable the Open VR Loader in the XR Plug-in Management Settings if you see a black screen. For those who haven't used the simulator you can use the keyboard for fine control of the hmd and controllers and choose from many contorller models to display when debugging/developing in the editor without wearing a device.

simulator.PNG

Link to comment
Share on other sites

Hi all,

In order to use VIU (v1.11.0) to work with SteamVR Unity Plugin (v2.6.0b2/v2.6.0b3) and OpenVR XR Plugin preview4/preview5, below quick fix is required.

 

Replace 2 files from the attached file viu_v1.11.0_patch.zip

Assets/HTC.UnityPlugin/VRModule/Modules/SteamVRModule.cs

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/OpenVRSettings.cs

 

NOTE: OpenVR XR Plugin preview4 and preview5 CANNOT run without SteamVR Unity Plugin (v2.6.0b2/v2.6.0b3)

Link to comment
Share on other sites

  • 1 month later...
On 7/17/2020 at 3:45 AM, chengnay said:

Hi all,

In order to use VIU (v1.11.0) to work with SteamVR Unity Plugin (v2.6.0b2/v2.6.0b3) and OpenVR XR Plugin preview4/preview5, below quick fix is required.

 

Replace 2 files from the attached file viu_v1.11.0_patch.zip

Assets/HTC.UnityPlugin/VRModule/Modules/SteamVRModule.cs

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/OpenVRSettings.cs

 

NOTE: OpenVR XR Plugin preview4 and preview5 CANNOT run without SteamVR Unity Plugin (v2.6.0b2/v2.6.0b3)

Is there any way to re-upload that zip file, as it is no longer available and I need it. Thank you!

Link to comment
Share on other sites

On 9/15/2020 at 8:46 PM, chengnay said:

@mindless2831 Actually VIU v1.12.0 already published to Asset Store as well as Unity Package Manager. You don't need that zip file if you updated VIU to latest version.

Awesome again. So can I ask for clarification? I can't use 2.6.1 of the steam vr plug in with open xr preview 5 and the newest VIU? I need to use 2.6.0b2 or 3? This is a mess lol. 

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