目前在我看来它像Chrome 83,不支持任何VR体验,尽管HTC Vive已连接(已安装SteamVR 1.9.16(。手动启动时,SteamVR 还会找到头戴式设备、控制器和基站。
https://threejs.org/examples/?q=webxr#webxr_vr_ballshooter
任何 VR 示例都指出"不支持 VR">
稍微挖掘一下,导航器描述了"沉浸式VR"会话不可用。以下代码的 promise 响应为: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) );
给: 未捕获(承诺中(DOMException:不支持指定的会话配置。
问题将由支持 OpenVR 的 SteamVR 解决,因为他们将...
https://steamcommunity.com/games/250820/announcements/detail/2396425843528787270
在此之前,我建议使用:
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --enable-features=openvr --disable-features=XRSandbox --force-webxr-runtime=openvr --enable-experimental-web-platform-features https://threejs.org/