setting FOV=120 in AFRAME doesn't work in VR-MODE?

孤者浪人 提交于 2021-01-29 08:20:52

问题


I set camera fov to be 120:

<a-camera fov="120"></a-camera>

It works well in regular mode (shows 120 fov correctly) but when I enter vr-mode in a mobile device it returns to 80. Is it a bug?

see reproduction here

I also opened an issue in aframe github issue page


回答1:


It's not a bug. It's expected behavior. FOV and other camera parameters are supplied by the WebVR / WebXR API when in VR mode. They're specific to the headset characteristics (IPD, lenses properties...) and cannot be overridden. Stereo rendering would not look right with different parameters.



来源:https://stackoverflow.com/questions/53870608/setting-fov-120-in-aframe-doesnt-work-in-vr-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!