为什么相机距离= 0.5 *宽* tan(fov / 2)而不是0.5 * width / tan(fov / 2) [英] why does camera distance = 0.5*width*tan(fov/2) instead of 0.5*width / tan(fov/2)

查看:458
本文介绍了为什么相机距离= 0.5 *宽* tan(fov / 2)而不是0.5 * width / tan(fov / 2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据三角函数公式,Tangent值透视应该等于0.5 *(平面宽度)/摄像机距离,这在程序中执行错误。目前,我知道这是我相机距离的问题,但我不知道为什么?

according to Trigonometric function formula,Tangent value perspective should be equal to 0.5*(plan width) / camera distance, which performs wrong in program. at present, i know it's my camera distance's problem, but i don't know why?

推荐答案

切线是什么?你的意思是FOV角的正切吗?

Tangent of what? Did you mean the tangent of the FOV angle?

你的公式( 0.5 *(计划宽度)/(摄像机距离))用于FOV角度的一半的切线。

Your formula (0.5*(plan width)/(camera distance)) is for the tangent of the half of the FOV angle.

您可以在中看到有关FOV缩放的更多详细信息我的 D3dScenePresenter - 如何呈现和的缩放部分使用MDX 文章操纵3D场景。

You can see more details on FOV zooming in the zoom section of my D3dScenePresenter - How to present and manipulate a 3D scene using MDX article.


这篇关于为什么相机距离= 0.5 *宽* tan(fov / 2)而不是0.5 * width / tan(fov / 2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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