ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.12k stars 1.28k forks source link

Openvr ue4.24.3 steamvr beta branch hmd detection function #1422

Open uno1982 opened 4 years ago

uno1982 commented 4 years ago

It seems users in the beta branch aren’t detecting if the hmd is present or not with the openvr hmd returned value. In the past I’ve supported both flat and vr modes by keeping the launch in vr bool set to false in engine config, I don’t use the enable hmd function but instead detect if the hmd bool returns true from openvr and run a stereo command and call my appropriate character and controller. I’ve had users state that they can’t close steamvr without the application closing and are being forced into stereo without their hmd plugged in. I’m not opted into beta and do not experience this behavior. Below are videos of expected behavior after feedback from users in the beta branch saying it’s no longer working https://media.discordapp.net/attachments/563802961365565450/743658224724607026/FlatSupport.mp4 https://media.discordapp.net/attachments/563802961365565450/743659266707161098/exitsteamvr.mp4

uno1982 commented 4 years ago

https://github.com/ValveSoftware/steamvr_unreal_plugin/issues/157#issuecomment-674314637

uno1982 commented 4 years ago

I posted this in the steamvr input issues and felt it needed to be shared here as well.

I need a way to force the above behavior for players with steamvr installed that want to play flat because detection of the hmd seems to have way too many variables at play or issues with detection ☝️

I'll say it again. I'm not sure what changed or why it changed regarding the -novr, -nohmd argument for launching applications but I'd regard this as a bug and think it should be communicated to steamvr, openvr, openxr, and epic to figure out why this is no longer supported.

There are reddit post all over talking about this exact issue:

"Try "-nohmd" in the launch parameters/startup line, if it happens to be an Unreal Engine 4 game. The Spyro Reignited Trilogy does this. I assume the developers did not disable something in the build/compile of the game. That or SteamVR is suddenly causing it (it didn't used to do it to me on my WMR headset, but the last couple of SteamVR betas, it does now). It looks like it's an old topic too, looking at some posts from some time ago."

https://cdn.discordapp.com/attachments/416040783779463171/744020225548353577/2020-08-14_21-29-08.mp4

uno1982 commented 4 years ago

https://github.com/EpicGames/UnrealEngine/pull/6980/files Accept this pull

uno1982 commented 4 years ago

https://github.com/ValveSoftware/steamvr_unreal_plugin/issues/106 Looks like this is being beat like a dead horse