如何在没有3D VR护目镜的情况下测试webvr?

时间:2016-12-09 14:12:45

标签: webvr

我需要在计算机显示器上并排显示webvr,而且我没有3D VR护目镜。如何使用左右显示在计算机屏幕上显示webvr?

例如,我下载了chrome并启用了webvr并重新启动它,然后转到示例。

https://webvr.info/samples/

我点击hello web-vr,它说“支持WebVR,但没有找到VRDisplays。”

这个使用Polyfill并显示我想看到的内容,只是为了向您展示演示。我真的不想使用Polyfill。

https://webvr.info/samples/02-stereo-rendering.html?polyfill=1

2 个答案:

答案 0 :(得分:0)

您可以尝试模拟OpenVR设备。安装SteamVR并尝试其中一个仿真选项,有Cardboard / OpenVR转换器(从未使用其中一个)和null device (description),它们可能满足webvr。

答案 1 :(得分:0)

我很幸运使用这个WebVR模拟器扩展:https://chrome.google.com/webstore/detail/webvr-api-emulation/gbdnpaebafagioggnhkacnaaahpiefil
并为SteamVR启用空驱动程序。后者可以通过编辑“C:\ Program Files(x86)\ Steam \ config \ steamvr.vrsettings”来完成。这就是我的样子:

{
    "steamvr" : {
        "forcedDriver": "null"
    },
    "driver_null" : {
        "enable": true,
        "windowWidth": 1920,
        "windowHeight": 1080
     }
}

运行SteamVR时,它应自动运行显示镜像。然后,您可以运行WebVR页面,并修改模拟器以调整位置和旋转。