ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.02k stars 255 forks source link

Unity 2020 + SteamVR Unity Plugin v2.6.0b4 + OpenGL = Blank Game Window + Mountains in headset #817

Closed mnbvcxzlkjhgfds closed 3 years ago

mnbvcxzlkjhgfds commented 3 years ago

Unity is nagging me to switch to VR Plugins as the old system is deprecated, so trying to updating my which is reliant on OpenGL (uses VTK in external rendering to show medical data) Importing SteamVR Unity Plugin v2.6.0b4 into an otherwise empty project works with DirectX, but not OpenGL rendering. I may have overlooked something obvious - if so please tell me, but I've tried to systematically get it working for some time now.

Update:

Original post:

Observed Behaviour:

Expected Behaviour:

Steps to reproduce:

Notes:

kinacho2 commented 3 years ago

I don't know how VTK works on unity but maybe it is an initialization problem, here: https://github.com/ValveSoftware/steamvr_unity_plugin/issues/793#issuecomment-668295263 this user fix an important bug between unity 2020 and the last version of steam VR beta

1runeberg commented 3 years ago

Hi @mnbvcxzlkjhgfds - In Unity 2020 and this version of the plugin, our Unity XR Plugin would've been installed and used for rendering, where we only support DirectX and Vulkan. You should be able to verify this/if Unity XR rendering is being used in your case in the Unity Editor Log with an entry saying "[OpenVR] [Error] Unsupported graphics api! Only DirectX and Vulkan are supported at this time."

Current future efforts are focused on the new industry standard OpenXR however, so no OpenGL support is slated for Unity XR, here's our announcement about this:

https://steamcommunity.com/games/250820/announcements/detail/2522527900755718764

The latest version of the plugin btw is: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.6.1

mnbvcxzlkjhgfds commented 3 years ago

Hi @1runeberg , apologies for my slow reply, I've been sidetracked into several other issues. However, thank you for clarify that OpenGL will not work and that the future is Vulkan. It will save me banging my head against a brick wall trying to get OpenGL to work. So we will stick to old Unity + OpenGL, keep a weather eye on VTK developments, while we decide what best to do.