如何在Unity的Google VR SDK中更改视野 [英] How to change Field of View in Google VR SDK for Unity

查看:355
本文介绍了如何在Unity的Google VR SDK中更改视野的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google VR SDK为Unity和NyARToolkit创建了AR内容( http://nyatla .jp/nyartoolkit/wp/?page_id = 198 ).

应用程序的当前AR屏幕不是全屏.我想更改左摄像机"和右摄像机"的视场,但是这些在屏幕上不起作用.我应该如何更改为全屏显示?

解决方案

要更改Google VR SDK的视野,请执行以下步骤:

1)首先在GVR主菜单中选择主摄像机

2)从检查器中更改 Stereo Controller脚本(更改 Match Mono FOV匹配 Match By Zoom 根据您的要求

3)现在运行场景并更改主摄像机视场值,您将在屏幕上看到效果.

希望这会有所帮助.谢谢.

I created a AR stuff with Google VR SDK for Unity and NyARToolkit (http://nyatla.jp/nyartoolkit/wp/?page_id=198).

Current AR screen of application, however, is not fullscreen. I wanted to change Field of View of "Camera Left" and "Camera Right", but these didn't effect on screen. How should I change to fullscreen?

解决方案

To change the Field Of View of Google VR SDK, folow these steps :

1) First select the Main Camera in GVR Main

2) Make changes to Stereo Controller Script from Inspector (Change values of Match Mono FOV & Match By Zoom according to your requirements)

3) Now run scene and change Field Of View value of Main Camera, and you will see effect on screen.

Hope this will help. Thanks.

这篇关于如何在Unity的Google VR SDK中更改视野的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆