immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
979 stars 474 forks source link

WebXR Samples VR Not Found - Vive Pro 2, SteamVR Beta, Chrome 97 / Edge 97 #142

Open ozten opened 2 years ago

ozten commented 2 years ago

Thank you for all your hard work!

Windows 10 Home (20H2 19042.1466) SteamVR beta 1.21.6 VIVE Console 2.0.19.1 HMD: Vive Pro 2 Chrome: 97.0.4692.99 Edge: 97.0.4692.99

When I go to https://immersive-web.github.io/webxr-samples/ I see chrome_vr_not_supported Clicking the first sample I see chrome_vr_not_found

I am able to launch games via SteamVR.

A month ago I was working on an a-frame project and I can no longer launch VR experiences.

I'd love to dig in and help troubleshoot, but I don't know where to start. I looked around in SteamVR web console, but nothing jumped out.

Thanks for your help

ozten commented 2 years ago

SteamVR settings: Current OpenXR Runtime: SteamVR Google chrome://flags Force WebXr Runtime=OpenXR WebXR Incubations=Enabled I also tried Incubations=Disabled

ozten commented 2 years ago

Windows registery: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1\AvailableRuntimes = C:\Program Files\Oculus\Support\oculus-runtime\oculus_openxr_64.json

Perhaps this is the issue. I have used this machine with a Quest 1 in the past.

ozten commented 2 years ago

I updated this to C:\Program Files (x86)\Steam\steamapps\common\SteamVR\steamxr_win64.json and rebooted. This didn't fix the issue.

Also, I don't see any XR_RUNTIME_JSON env variables set.

I uninstalled the Windows Oculus Desktop app and rebooted. No luck.

ozten commented 2 years ago

I updated the registry to C:\Program Files (x86)\VIVE\Updater\App\ViveVRRuntime\ViveVR_openxr\ViveOpenXR.json. No good.

ozten commented 2 years ago

In a Discord, zach-capalbo helpfully pointed out that I was playing with the wrong registry value. I have not edited ActiveRuntime and here is the current value: steamvr_regedit_activeruntime

nicolaspe commented 2 years ago

Did you manage to solve this? I am having the exact same issues with the same settings (but I have Windows 10 21H2).

I have the correct settings in the registry key and tried every permutation of the experiment xr flags, but Chrome and Edge do not detect the VR headset. But weirdly enough, on Firefox (96.0.3) the polyfill manages to make it work.

ozten commented 2 years ago

@nicolaspe Chrome and IE are not supported currently. So we are in a holding pattern. I would continue to use Firefox, which will probably also break at some point? And then new code will land at some point in Chromium to enable this for Chrome and IE. Not the first time I've been stranded as web standards evolve ;) I guess this is our badge of honor for being early adopters ;)

nicolaspe commented 2 years ago

After some fiddling, I found a setting in Firefox's about:config page dom.vr.webxr.enabled which was set to false. I changed it to true and everything works in Firefox now!

nicolaspe commented 2 years ago

And yeah, this has happened to me so many times since the early WebVR days 😅 Just patience and hope it gets more and more stable

hgabor47 commented 1 year ago

The WebXR working but VR not found (immersive-vr unavailable) in my Firefox and Chrome. I have Pimax headset (VIVE compliant) and SteamVR. I have two entries in the registry ( by order C:\Program Files (x86)\Steam\steamapps\common\SteamVR\steamxr_win64.json and C:\Program Files\Oculus\Support\oculus-runtime\oculus_openxr_64.json ) I tested in the https://immersive-web.github.io/webxr-samples/report/ page. The ActiveRuntime in my registry: C:\Program Files (x86)\Steam\steamapps\common\SteamVR\steamxr_win64.json Please help me.... :)

learning-github-zgy commented 1 year ago

After some fiddling, I found a setting in Firefox's about:config page dom.vr.webxr.enabled which was set to false. I changed it to true and everything works in Firefox now!

hello, can l ask you a question? Which VR device do you use? oculus?or htc vive?