Overview of XrController for 6DoF camera tracking
XrController is the engine component responsible for providing 6DoF (Six Degrees of Freedom) camera tracking and the necessary interfaces to configure how that tracking is performed.website·Indexed 33 days ago
https://8thwall.org/docsDeveloper documentation for 8th Wall, an open-source platform for building WebAR experiences. Includes guides for 8th Wall Studio, XR effects (Face, Image Targets, and World effects), physics, audio, and 3D model conversion to GLB format, as well as troubleshooting for iOS and Android browser requirements.
XrController is the engine component responsible for providing 6DoF (Six Degrees of Freedom) camera tracking and the necessary interfaces to configure how that tracking is performed.The Engine API provides low-level access to the underlying 8th Wall AR engine. It is intended for developers who need fine-grained control over camera input, frame processing, or the integration of custom WebGL and computer vision workflows. Key areas include:
Vec3 interface represents a 3D vector using (x, y, z) coordinates. It can be used to represent points in space, directional vectors, or any data with three ordered dimensions. Vec3 objects can be multiplied by 4x4 matrices (Mat4) using homogeneous coordinate math for 3D geometry computations. The Vec3Source interface allows any object with {x: number, y: number, z: number} properties to be used as an input for Vec3 factories and algorithms.8th Wall Studio uses an event-driven system to create interactive experiences. Events can be listened for globally or on specific entities. The events are categorized as follows:
reality, facecontroller) for tracking Image Targets and Face detection.Quat interface represents a 3D rotation using (x, y, z, w) coordinates. Quaternions can be converted to and from 4x4 rotation matrices using the Mat4 interface. They are created using the ecs.math.quat factory or through operations on existing Quat objects. The QuatSource interface allows any object with {x: number, y: number, z: number, w: number} properties to be used as a data source for quaternion algorithms.The Studio API is used to build structured, dynamic, and stateful AR experiences that respond to player input and real-time interactions. It is composed of three primary systems: