For the complete documentation index, see llms.txt. This page is also available as Markdown.

WebXR Integration

Integrate MultiSet VPS localization with your Web apps

Build AR web experiences with precise indoor localization using the MultiSet VPS WebXR SDK.

GitHub Repository

Prerequisites

  • Node.js 16+

  • AR-capable Android device with ARCore support

  • HTTPS connection (required for WebXR APIs)

  • Chrome browser with WebXR support

Installation

Configuration

Get your credentials from the MultiSet Dashboard:

  1. Client ID & Secret - Found under Credentials section

  2. Map Code - Found in the Maps section (e.g., MAP_XXXXXXXXXX)

Quick Start

Step 1: Initialize the Client

Step 2: Authorize and Set Up WebXR

Step 3: Capture Frames for Localization

Key Components

MultisetClient

Handles authentication and API communication:

  • authorize() - Exchanges credentials for access token

  • localize() - Submits camera frame for localization

  • getMapDetails() - Retrieves map metadata

WebxrController

Manages WebXR session and Three.js integration:

  • initialize() - Sets up renderer, camera, and AR session

  • getScene() - Returns Three.js scene for adding AR content

  • captureFrame() - Captures frame and returns localization result

  • dispose() - Cleans up resources

Localization Response

The captureFrame() method returns:

Field
Type
Description

position

{x, y, z}

3D position in map coordinates

rotation

{x, y, z, w}

Quaternion rotation

confidence

number

Localization confidence score

Example Projects

See the full SDK reference and ready-to-use samples on the npm package page:

Examples must be served over HTTPS and accessed from a whitelisted domain.

Demo

WebXR VPS demo

Last updated

Was this helpful?