Class ThinLens
Implements a lens component that reproduces a thin lens model. This camera model is commonly used in game development.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
public class ThinLens : LensComponent
Fields
anamorphism
Stretch the sensor to simulate an anamorphic look.
Declaration
public float anamorphism
Field Value
Type | Description |
---|---|
Single |
aperture
The f-stop (f-number) of the lens. Lower values give a wider lens aperture. ie: f-stop = f / aperture
Declaration
public float aperture
Field Value
Type | Description |
---|---|
Single |
barrelClipping
Controls the self-occlusion of the lens, creating a cat's eye effect.
Declaration
public float barrelClipping
Field Value
Type | Description |
---|---|
Single |
bladeCount
The number of blades in the lens aperture. Higher values give a rounder aperture shape.
Declaration
public uint bladeCount
Field Value
Type | Description |
---|---|
UInt32 |
curvature
Controls the curvature of the lens aperture blades. The minimum value results in fully-curved, perfectly-circular bokeh, and the maximum value results in visible aperture blades.
Declaration
public Vector2 curvature
Field Value
Type | Description |
---|---|
Vector2 |
focalLength
The simulated distance, in millimeters, between the lens and the sensor of the physical camera. Larger values gives a narrower field of view.
Declaration
public float focalLength
Field Value
Type | Description |
---|---|
Single |
shift
Offset from the camera sensor. Use these properties to simulate a shift lens. Measured as a multiple of the sensor size.
Declaration
public Vector2 shift
Field Value
Type | Description |
---|---|
Vector2 |
useRaytracing
Use raytracing to improve the rendering if available
Declaration
public bool useRaytracing
Field Value
Type | Description |
---|---|
Boolean |
Methods
Activate(IPhotosensorArrayDescription)
Initializes the lens component.
Declaration
public override void Activate(IPhotosensorArrayDescription sensorDesc)
Parameters
Type | Name | Description |
---|---|---|
IPhotosensorArrayDescription | sensorDesc | Information define on the photosensor array node. |