任何人都可以解释“视野” [英] anyone can explain the "field of view"

查看:182
本文介绍了任何人都可以解释“视野”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在图形软件中,有时我们看到相机的视野。有人可以解释它是什么意思?

解决方案

视野(在gluPerspective调用中)是角度通过相机位置和屏幕顶部的平面以及穿过相机位置和屏幕底部的另一架飞机。

编辑:
由于您不需要全屏视口:投影到(x1,0) - (x2,0)的任何线位于第一个平面中,任何投影到(x3,height) - (x4,height) )位于第二个,其中height是视口的高度,以像素为单位。


In graphics software, sometimes we saw "field of view" for camera. Can someone explain what does it mean?

解决方案

The field of view (in the gluPerspective call) is the angle in degrees between a plane which passes through the camera position and the top of your screen and another plane which passes through the camera position and the bottom of your screen.

Edit: Since you need not have a full-screen viewport: Any line which is projected to (x1, 0)-(x2, 0) lies in the first plane, any line that is projected to (x3, height)-(x4, height) lies in the second, where height is the height of your viewport in pixels.

这篇关于任何人都可以解释“视野”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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