Using Physical Cameras 使用物理相机
本文档主要是对Unity官方手册的个人理解与总结(其实以翻译记录为主:>)
仅作为个人学习使用,不得作为商业用途,欢迎转载,并请注明出处。
文章中涉及到的操作都是基于Unity2018.2版本
参考链接:https://docs.unity3d.com/Manual/PhysicalCameras.html
The camera component’s Physical Camera properties simulate real-world camera formats on a Unity camera. This is useful for importing camera information from 3D modeling applications that also mimic real-world cameras.
相机组件的物理相机属性在Unity相机上模拟真实的相机方式。这对于从3D建模应用程序导入相机信息非常有用,这些建模应用程序也可以模拟真实的相机。
Unity provides the same settings as those in most 3D modeling application’s physical camera settings. The two main properties that control what the camera sees are Focal Length and Sensor Size.
Unity提供了与大多数3D建模应用程序的物理相机设置相同的设置。控制摄像机视觉的两个主要属性是焦距和感光元件(传感器)大小。
Focal Length: The distance between the sensor and the camera lens. This determines the vertical field of view. When a Unity camera is in Physical Camera mode, changing the Focal Length also changes the field of view accordingly. Smaller focal lengths result in a larger field of view, and vice versa.
焦距:感光元件与相机镜头之间的距离。这决定了垂直视野。当Unity相机处于物理相机模式时,改变焦距也会相应地改变视场。焦距越小,视野越大,反之亦然。
The relationship between a camera’s focal length, field of view, and sensor size
照相机焦距、视场和感光元件大小之间的关系
Sensor Size: The width and height of the sensor that captures the image. These determine the physical camera’s aspect ratio. You can choose from several preset sensor sizes that correspond to real-world camera formats, or set a custom size. When the sensor aspect ratio is different to the rendered aspect ratio, as set in the Game view, you can control how Unity fits the camera image to the rendered image (see information on Gate Fit, below).
感光元件大小:捕捉图像的传感器的宽度和高度。这些决定了物理相机的长宽比。您可以从几个与实际相机格式相对应的预先设置的传感器大小中选择,或者设置一个自定义大小。当传感器的长宽比与渲染的长宽比不同时,就像在游戏视图中设置的那样,你可以控制Unity如何将摄像机图像与渲染的图像匹配(参见下面的Gate Fit信息)。
Lens Shifts 镜头位移
Lens Shift offsets the camera’s lens from its sensor horizontally and vertically. This allows you to change the focal center, and reposition