Class PointCloudToDepth
The role of this class is to project the PointCloud data inside a frustum described by the input port onto a 2DTexture.
Inheritance
PointCloudToDepth
Syntax
public class PointCloudToDepth : Transcoder
Fields
_outputBuffer
Internal reference to the render texture used to output the result.
Declaration
protected RenderTexture _outputBuffer
Field Value
depth
Declaration
[Field("Depth", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<RenderTexture> depth
Field Value
farPlane
Declaration
[Tooltip("Far clipping plane of the frustum.")]
[Field("FarPlane", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> farPlane
Field Value
fov
Declaration
[Tooltip("Field of view")]
[Field("Fov", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> fov
Field Value
height
Declaration
[Tooltip("Vertical number of pixels")]
[Field("Height", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> height
Field Value
nearPlane
Declaration
[Tooltip("Near clipping plane of the frustum.")]
[Field("NearPlane", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> nearPlane
Field Value
pointCloud
Declaration
[Tooltip("Current state of the frame sampled.")]
[Field("PointCloud", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<PointCloud> pointCloud
Field Value
width
Declaration
[Tooltip("Horizontal number of pixels")]
[Field("Width", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> width
Field Value
Methods
Disable()
Disable change event on the inTranscode port and release the graphics resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Initialize the transcoder shader and enable on change event on the on inTranscode port.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type |
Name |
Description |
Scheduler.ClockState |
clockState |
The parameters of the waveform associated to this node
|
Overrides
Transcode(CustomPassContext)
Add to the command buffer the conversion of the point cloud buffer into a depth buffer.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Overrides