在A-Frame中进入VR模式时场景呈现黑色

时间:2016-10-12 23:44:15

标签: aframe webvr

我正在使用A-Frame 0.3.0。一切都在屏幕上渲染得很好,但是当我进入VR模式时,它呈现黑色。我从9月开始尝试最新的Chromium和Firefox Nightly版本。即使是A-Frame示例也无效。

<script src="https://aframe.io/releases/0.3.1/aframe.min.js"></script>
<a-scene>
  <a-box color="red"></a-box>
</a-scene>

1 个答案:

答案 0 :(得分:2)

这是因为Chromium和Firefox Nightly的2016年9月版本已更新为使用新的WebVR 1.1 API规范,而A-Frame正在使用WebVR 1.0 API规范。

这已在A-Frame v0.3.2中更新,我们已经提升了VREffect以匹配最新的API更改。

<script src="https://aframe.io/releases/0.3.2/aframe.min.js"></script>
<a-scene>
  <a-box color="red"></a-box>
</a-scene>
编辑:WebVR 1.1已经宣布了其他重大变化,因此在未来的实验版浏览器中可能暂时中断,直到A-Frame再次更新

相关问题