首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Chrome“沉浸式-vr”isSessionSupported给出了假的threejs.org示例

Chrome“沉浸式-vr”isSessionSupported给出了假的threejs.org示例
EN

Stack Overflow用户
提问于 2020-05-29 11:58:13
回答 1查看 918关注 0票数 2

目前,它看起来像Chrome 83,不支持任何虚拟现实体验,尽管HTC是连接的(安装了SteamVR 1.9.16 )。SteamVR,当手动启动时,也会找到耳机、控制器和基站。

https://threejs.org/examples/?q=webxr#webxr_vr_ballshooter

任何VR示例都声明"VR不受支持“。

深入研究一点,导航员描述了“沉浸式-虚拟现实”会话不可用。下面代码的承诺响应是: false

代码语言:javascript
运行
复制
navigator.xr.isSessionSupported('immersive-vr').then((issupported) => {console.log(issupported)})

以前链接到WebXR的Chrome标志(83.0.4103.61)不再可用。

你知道我做错了什么吗?

编辑

代码语言:javascript
运行
复制
navigator.xr.requestSession( 'immersive-vr', { optionalFeatures: [ 'local-floor', 'bounded-floor' ] } ).then( (session) => console.log(session) );

给出: Uncaught (承诺) DOMException:不支持指定的会话配置。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-10-22 20:38:16

问题将由SteamVR支持OpenVR来解决,因为他们要.

https://steamcommunity.com/games/250820/announcements/detail/2396425843528787270

在此之前,我建议使用:

代码语言:javascript
运行
复制
"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/
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62085444

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档