docs.unity3d.com
    Show / Hide Table of Contents

    Class PhotosensorData

    Used to collect all information required for the sampling on the GPU.

    Inheritance
    Object
    PhotosensorData
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class PhotosensorData

    Fields

    beamCount

    Number of beam to fire.

    Declaration
    public int beamCount
    Field Value
    Type Description
    Int32

    beamDescBuffer

    A buffer with a beam description used at sample time.

    Declaration
    public ComputeBuffer beamDescBuffer
    Field Value
    Type Description
    ComputeBuffer

    beamStart

    Index of the first beam to sample.

    Declaration
    public int beamStart
    Field Value
    Type Description
    Int32

    debugBuffer

    Use to store intermediate shader value that we want to see the result. (To be commented when debug is finished)

    Declaration
    public ComputeBuffer debugBuffer
    Field Value
    Type Description
    ComputeBuffer

    debugBufferSize

    Size of the debug buffer

    Declaration
    public int debugBufferSize
    Field Value
    Type Description
    Int32

    ExecuteSampling

    Callback function to execute the photosensor sampling.

    Declaration
    public PhotosensorData.ExecuteSamplingAction<CustomPassContext, RayTracingAccelerationStructure, uint> ExecuteSampling
    Field Value
    Type Description
    PhotosensorData.ExecuteSamplingAction<CustomPassContext, RayTracingAccelerationStructure, UInt32>

    frameHeight

    Sensor frame height.

    Declaration
    public uint frameHeight
    Field Value
    Type Description
    UInt32

    frameWidth

    Sensor frame width.

    Declaration
    public uint frameWidth
    Field Value
    Type Description
    UInt32

    isBeamSync

    Indicate if beams are all fired at the same orientation.

    Declaration
    public int isBeamSync
    Field Value
    Type Description
    Int32

    isNewSample

    Indicate if new samples are available in the circular buffer.

    Declaration
    public bool isNewSample
    Field Value
    Type Description
    Boolean

    maxRange

    Distance to stop the path tracing.

    Declaration
    public float maxRange
    Field Value
    Type Description
    Single

    minRange

    Distance to start the path tracing.

    Declaration
    public float minRange
    Field Value
    Type Description
    Single

    outputBuffer

    A circular buffer to store the samples.

    Declaration
    public ComputeBuffer outputBuffer
    Field Value
    Type Description
    ComputeBuffer

    randomValues

    A buffer with normal distributed random values used to apply an error on the distance measurement.

    Declaration
    public ComputeBuffer randomValues
    Field Value
    Type Description
    ComputeBuffer

    referenceToWorldTransform

    The transform bound to the game object representing the sensor's reference frame.

    Declaration
    public Transform referenceToWorldTransform
    Field Value
    Type Description
    Transform

    relativeError

    A relative to distance error sampled curve.

    Declaration
    public Texture2D relativeError
    Field Value
    Type Description
    Texture2D

    sampleStamps

    List of sampling request from the controller.

    Declaration
    public SamplingStamps sampleStamps
    Field Value
    Type Description
    SamplingStamps

    samplingOffsetsBuffer

    A list of sampling offsets used a sample time.

    Declaration
    public ComputeBuffer samplingOffsetsBuffer
    Field Value
    Type Description
    ComputeBuffer

    samplingRate

    Sampling rate of the photosensor

    Declaration
    public uint samplingRate
    Field Value
    Type Description
    UInt32

    scanPattern

    Sampled curved of the scan pattern store in heap.

    Declaration
    public CurveSample<Quaternion> scanPattern
    Field Value
    Type Description
    CurveSample<Quaternion>

    scanPatternCurveBuffer

    Sampled curved of the scan pattern store on GPU.

    Declaration
    public ComputeBuffer scanPatternCurveBuffer
    Field Value
    Type Description
    ComputeBuffer

    sensitivity

    The minimum level of intensity sampled in the scene to consider the sample valid. (w/m^2)

    Declaration
    public float sensitivity
    Field Value
    Type Description
    Single

    sensorToWorldTransform

    The transform bound to the photosensor.

    Declaration
    public Transform sensorToWorldTransform
    Field Value
    Type Description
    Transform

    shader

    Path tracing shader used to sample the scene.

    Declaration
    public RayTracingShader shader
    Field Value
    Type Description
    RayTracingShader

    useScanPattern

    Indicate if a scan pattern is used to interpolate the photosensor orientation.

    Declaration
    public int useScanPattern
    Field Value
    Type Description
    Int32

    wavelengthNm

    Wavelength to use as laser light and to sample the material.

    Declaration
    public float wavelengthNm
    Field Value
    Type Description
    Single

    Methods

    Release()

    Release all graphic resources.

    Declaration
    public void Release()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023