Description

Provides surface normal values of the tracked body encoded as RGBA (x, y, z, confidence) in R8G8B8A8_UNORM format in screen resolution. The XYZ values may need to be remapped from [0 -> 1] to [-1 -> 1] using the "Normal Map" mode of the Texture 2D Sample node in Material Editor.

interface BodyNormalsTextureProvider {
    bodyIndex: number;
    getAspect(): number;
    getHeight(): number;
    getLoadStatus(): LoadStatus;
    getTypeName(): string;
    getWidth(): number;
    isOfType(type): boolean;
    isSame(other): boolean;
}

Hierarchy (view full)

Properties

bodyIndex: number

Description

The index of the body to track. The first body detected is 0.

Methods

  • Returns number

    Description

    Returns the texture's aspect ratio, which is calculated as width / height.

  • Returns number

    Description

    Returns the height of the texture in pixels.

  • Returns number

    Description

    Returns the width of the texture in pixels.

  • Parameters

    • type: string

    Returns boolean

    Description

    Returns true if the object matches or derives from the passed in type.

  • Parameters

    Returns boolean

    Description

    Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

Generated using TypeDoc