Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

ARDK 1.5.6

class ARState

Represents the state of an Augmented Reality frame, providing access to transformation matrices and environmental data required for rendering AR content.

This class encapsulates the camera's pose, projection parameters, and lighting conditions. Data is lazily synchronized with the underlying native AR engine upon the first access to any of its properties.

Properties

val colorCorrection: Vec4f

The color correction parameters for the current frame.

The aspect ratio of the depth texture, computed as:

val depthUvMatrix: Mat3f

A 3x3 matrix used to transform normalized screen-space UV coordinates into depth texture UV coordinates.

val projMatrix: Mat4f

A 4x4 matrix (stored as a FloatArray of size 16) representing the camera's projection transformation.

Gets the ID of the textures for the camera feed.

UV texture coordinates used to correctly align the camera feed with the display.

val viewMatrix: Mat4f

A 4x4 matrix (stored as a FloatArray of size 16) representing the camera's view transformation.

val w2arMatrix: Mat4f

A 4x4 matrix (stored as a FloatArray of size 16) that transforms from world space to AR space.