Comments (18)
Please see the "State of WebXR" document which has implementation notes: https://docs.google.com/document/d/1R8Bz0_vK9YmY5-ZhsbLtZ9-DDJpTOgNeibFD4SdUnbw/edit
Specifically, Vive and Oculus support requires disabling "XR device sandboxing" in chrome://flags . If that's not the issue, can you please post your flags settings?
from webxr-samples.
I'll take a look and see if I can figure out what's going on. There are some differences between Chrome 77's implementation and the version of the API that the samples use, but the Polyfill should be patching those up.
from webxr-samples.
Some more details on my testing
- Vive: HMD is never detected.
- Oculus: Detects HMD, but throws exception when requestSession is called.
- Windows Mixed Reality: working great! (I've been waiting for that).
If you are able to get a Vive or Oculus working, then I must have something incorrectly setup. However, for now I am moving all work to WMR. (we have a presentation on Wednesday am)
Thanks!
from webxr-samples.
Any update on this @toji ? Does anyone else have Vive or Oculus working on WebXR?
from webxr-samples.
Also, apologies that this is all still rather complicated and not documented well. My previous post wasn't intended to imply that this should have been obvious, it definitely isn't working as intended.
Hopefully it will be easier as things move closer to a stable release.
from webxr-samples.
bingo! its working again. Phew!
Thanks. Yes I had read through the doc and missed the comment explaining the importance of the sandboxing flag. I was sure it must have been on my side.
from webxr-samples.
@klausw it seems like the "XR device sandboxing" flag has disappeared. What are the current required flags to make WebXR work on SteamVR?
from webxr-samples.
As we gain better compatibility with other runtimes (such as OpenXR) we're trying to discourage casual disabling of the sandbox in the interest of user security. You can still achieve the same thing by passing command line flags, though, as described here.
We know that this is a pain, but given that bot Oculus and Valve are working on OpenXR runtimes and Microsoft already has one that's fully compatible with Chrome's WebXR implementation we're focusing our efforts on making that path as pain-free as possible.
from webxr-samples.
@toji ah cool, thanks for the info! That's understandable.
And thanks for the link, VR on the web has gone through quite some changes and I've always found it difficult to get it working in Chrome whenever there was an update. That document sure is helpful.
from webxr-samples.
The problem seems to have come back with Canary 87, and the command line flags in https://immersiveweb.dev/chrome-support.html no longer seem to work either.
from webxr-samples.
Since both Oculus and SteamVR now have OpenXR runtimes that are available to developers, and OpenXR is the better supported path in Chrome, we've recently removed the proprietary API support in favor of using OpenXR across the board. (https://immersiveweb.dev/chrome-support.html needs to be updated to reflect this.)
For details about how to get the OpenXR runtime associated with your device, see the following:
from webxr-samples.
Thank you for the quick reply. Things now working. In case it helps others ...
I have installed the Steam openVR beta (beta 1.14.10) as described in your SteamVR reference above,
and set SteamVR/Settings/Developer/CurrentOpenXR runtime to SteamVR
(nb SteamVR/Settings/Developer, not SteamVR/Developer Settings)
Testing using [https://immersive-web.github.io/webxr-samples/immersive-vr-session.html]
(https://immersive-web.github.io/webxr-samples/immersive-vr-session.html)
Command line flags that work on Chrome 85/86 are
--enable-features=OpenVR --disable-features=XRSandbox --user-data-dir="%LOCALAPPDATA%\canaryvrZ"
These flags work with or without the SteamVR/OpenXR settings above.
Without those settings and with SteamVR/OpenXR settings above 85 and 86 fail in different ways.
Chrome 87 works with SteamVR/OpenXR settings above; regardless of whether the Chrome flags are set.
(Things are clearly moving in the correct direction despite the boulders on the way.)
NOTE: user-data-dir needed to keep a separate Chrome instance from the 'main' one;
otherwise if you have a 'normal' Chrome running tests launch a clone of the main one ignoring other flags.
from webxr-samples.
I'm running into this issue and it's driving me nuts 😄
Trying to get WebXR working across a variety of devices (Oculus, Steam, Windows MR) and browsers since I'm teaching with it. Firefox works fine.
The above helped a bit. Chrome Canary and Edge Dev both now offer WebXR and seem to think they are running. Steam even thinks they are running. Since I'm (currently) using a Cosmos, when I hit "enter VR" it transitions from Steam Home to the Vive void with "Vive" and "This is real" showing, and Steam VR says "Now Playing chrome". The perf monitor is showing frames submitted at ~2ms. But I'm not seeing the VR content.
Current SteamVR beta is 1.14.14. I'm wondering if they broke something between 1.14.10 (mentioned above) and 1.14.14?
from webxr-samples.
FWIW, the samples are working for me on SteamVR beta 1.14.14 and Chrome Canary 87.0.4265.0 (Official Build) canary (64-bit) (cohort: Clang-64) on a Valve Index, with no Chrome flags set:
"C:\Users\...\AppData\Local\Google\Chrome SxS\Application\chrome.exe --flag-switches-begin --flag-switches-end
OS version is Windows 10 Home 10.0.18363 Build 18363
@blairmacintyre , did you get a prompt from SteamVR to enable the new permissions needed for App Container usage? That's a one-time thing, but it didn't work for me until I spotted and confirmed that prompt. It showed up above the SteamVR status window after I dismissed some other messages such as the beta update notification.
The OpenXR runtime was already set to SteamVR for me without having to change the SteamVR/Settings/Developer/Current OpenXR runtime setting.
from webxr-samples.
OpenXR is set, yes. I did get that prompt.
same Canary Version 87.0.4265.0 (Official Build) canary (64-bit). I never set flags so I'm not sure how I'd check if any are set.
Windows 10 Home, latest update. Build 19041.508, so new than yours?
from webxr-samples.
from webxr-samples.
Thanks for the help, @klausw.
chrome://version shows ""C:\Users\blair\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --flag-switches-begin --flag-switches-end"
This is a fresh install of canary.
from webxr-samples.
I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1129495 , can we move this discussion there? Please add additional details in case you have them.
from webxr-samples.
Related Issues (20)
- WebXR Content Broken in Chrome in Android 12 HOT 1
- Animated gltf HOT 1
- Modifying attributes
- WebXR Samples VR Not Found - Vive Pro 2, SteamVR Beta, Chrome 97 / Edge 97 HOT 11
- AR sample doesnt work on OnePlus 7T HOT 1
- Stats fps display overflow
- A blinking bug on pause video in WebXR Layers HOT 3
- Immersive ar session samples not work HOT 1
- Hittest-offsetRay -may be same mistake in origin.z HOT 2
- Depth sensing not work on pixel 4XL
- Video alpha not working with skybox HOT 1
- Anchors Drifting HOT 11
- How do I render cesium scene to webxr? HOT 1
- Hit Test with Anchors WebXR #19 sample crashes on my device HOT 2
- License for equirect test images?
- WebXR samples renderer issue
- Video Playback not working on VR mode using Safari and Vision Pro Simulator
- XRProjectionLayerInit in the webxr layers samples is not the same as in Spec
- Immersive AR does not work on the Samsung browser HOT 1
- Open AR screen with script without clicked button
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webxr-samples.