Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Occlusion ←NsdkPointCloudGenerator

GenerateAsync

A coroutine to generate a point cloud from a depth texture using the given intrinsics and extrinsics.

Declaration​

public IEnumerator GenerateAsync(Texture depth, Matrix4x4 intrinsics, Matrix4x4 extrinsics, Action<Vector4[]> onComplete)

Summary​

A coroutine to generate a point cloud from a depth texture using the given intrinsics and extrinsics.

Remarks​

This is an allocating, non-blocking call.

Parameters​

NameTypeSummary
depthTexture
The depth image.
intrinsicsMatrix4x4
The camera intrinsic parameters for the depth image.
extrinsicsMatrix4x4
The camera to world transform.
onCompleteAction<Vector4[]>
Callback for when the task completes.