docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    object
    NodeRuntime
    PhotosensorArray
    PhotosensorArrayNode
    Inherited Members
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.Enable(Scheduler.ClockState)
    NodeRuntime.Disable()
    NodeRuntime.OnTick(double, double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
    NodeRuntime.OnPortRemoved(string)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)