目前,它看起来像Chrome 83,不支持任何虚拟现实体验,尽管HTC是连接的(安装了SteamVR 1.9.16 )。SteamVR,当手动启动时,也会找到耳机、控制器和基站。
https://threejs.org/examples/?q=webxr#webxr_vr_ballshooter
任何VR示例都声明"VR不受支持“。
深入研究一点,导航员描述了“沉浸式-虚拟现实”会话不可用。下面代码的承诺响应是: false
navigator.xr.isSessionSupported('immersive-vr').then((issupported) => {console.log(issupported)})
以前链接到WebXR的Chrome标志(83.0.4103.61)不再可用。
你知道我做错了什么吗?
编辑
navigator.xr.requestSession( 'immersive-vr', { optionalFeatures: [ 'local-floor', 'bounded-floor' ] } ).then( (session) => console.log(session) );
给出: Uncaught (承诺) DOMException:不支持指定的会话配置。
发布于 2020-10-22 20:38:16
问题将由SteamVR支持OpenVR来解决,因为他们要.
https://steamcommunity.com/games/250820/announcements/detail/2396425843528787270
在此之前,我建议使用:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --enable-features=openvr --disable-features=XRSandbox --force-webxr-runtime=openvr --enable-experimental-web-platform-features https://threejs.org/
https://stackoverflow.com/questions/62085444
复制相似问题