Jump to content
 
Dario

VIU update: support for the OpenVR XR plugin!

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
On 7/2/2020 at 10:42 PM, Dario said:

for Wave devices a Unity XR plugin is forthcoming

Hi @Dario,

This is excellent news! Do you have any information regarding an eta for this plugin?

Cheers! Freek

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

Please sign in to comment

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

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...