Class PhotosensorArray
The role of this class is to emulate the aggregation of multiple photosensor grouped into a 2D array. This is also called a CCD or CMOS sensors. Used to capture light on each photosensor one-by-one.
Here are some interesting references to understand better the implementation: The path tracing code in HDRP: https://blog.selfshadow.com/publications/s2016-shading-course/unity/s2016_pbs_unity_hdri_notes.pdf
The metric of tracing rays with thick lens model is being referenced: https://www.cs.utexas.edu/~fussell/courses/cs395t/lens.pdf
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public class PhotosensorArray : NodeRuntime
Fields
Name | Description |
---|---|
BaseIso | The ISO film speed value corresponding to a gain of 1. |
DefaultExposureTime | The amount of time the photosensor is capturing light, in seconds. |
DefaultGain | The amplification factor applied to the captured light. |
_customPassesDesc | Keep a list of custom pass added to the camera volume. Used to hook a unity camera just before the post processing step. We take the buffer and do the post processing step ourself in the graph. |
_sensorData | Keep the photosensor array information. Useful when building a unity camera to match the description. |
arrayHeight | |
arrayWidth | |
exposureTime | |
fov | |
gain | |
outSamples | |
outTranscode | |
renderingOrder | |
repeatedFrames | |
sensorHeight | |
sensorWidth | |
trigger |
Methods
Name | Description |
---|---|
DisableOnTriggerEvent() | Disable change event on the Trigger port. |
EnableOnTriggerEvent() | Enable change event on the Trigger port. |
EquivalentIso(float) | Returns the ISO film speed equivalent to the given gain factor. |
FillSensorDescription() | Fill internal sensor description from the node interface. |
InternalOnTrigger() | Allows any child to be notified when OnTrigger is called, to add any other process. |