Aframe不会在移动设备上渲染WebVR吗?

时间:2018-10-16 00:29:08

标签: ios aframe progressive-web-apps virtual-reality webvr

我有一个Progressive Web App,它正在使用aframe渲染vr图像。

这是我的框架标记:

<a-scene>
   <a-sky src="images/vr-assets/test1.jpg"></a-sky>
</a-scene>

非常简单。而且在Firefox中可以正常工作。

但是,在iOS上进行测试时,系统提示我将手机戴在耳机中。

无论环境如何,我都想使用WebVR,这样我的用户就不必使用耳机了。因此,我的场景不应该关心用户使用的设备,而应该像在台式机上那样显示。

查看文档后,我尝试像这样传递isMobile="false"

<a-scene isMobile="false">
    <a-sky src="images/vr-assets/test1.jpg"></a-sky>
</a-scene>

但这并没有改变任何东西。

此外,传入isMobile="false"会破坏代码。

我在Firefox中收到以下警告消息:

TypeError: s.requestPresent is not a function

TypeError: can't assign to property "depthNear" on 0: not an object

有人知道强制帧仅使用WebVR渲染的方法吗?

0 个答案:

没有答案