XRScanshot

Interface XRScanshotExperimental

Represents a texture scanshot of the current view in the XR environment.

A texture scanshot augments the digital model with the color of its real-world counterpart using the texture information from the camera stream.

Model-based tracking is required to map texture data to the model with the correct position and orientation.

interface XRScanshot {
    metadata: {
        projectionMatrix: Matrix4x4 | Float32Array<ArrayBufferLike>;
        viewMatrix: Matrix4x4 | Float32Array<ArrayBufferLike>;
    };
    pointCloudData?: { points: CloudPoint[] };
}
Index

Properties

metadata: {
    projectionMatrix: Matrix4x4 | Float32Array<ArrayBufferLike>;
    viewMatrix: Matrix4x4 | Float32Array<ArrayBufferLike>;
}

Stores any additional information about the scanshot other than the raw data itself.

Type Declaration

  • projectionMatrix: Matrix4x4 | Float32Array<ArrayBufferLike>

    The projection matrix of the camera with which the scan has been made.

  • viewMatrix: Matrix4x4 | Float32Array<ArrayBufferLike>

    The view matrix at which the scan was shot.

pointCloudData?: { points: CloudPoint[] }

Represents the scanshot as point cloud.

Type Declaration




Was this page helpful? Please leave a thumbs up or down.