plug-circle-plusWebXR Integration

Integrate MultiSet VPS localization with your Web apps

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

circle-check

GitHub Repository

Prerequisites

  • Node.js 16+

  • AR-capable Android device with ARCore support

  • HTTPS connection (required for WebXR APIs)

  • Chrome browser with WebXR support

circle-exclamation

Installation

Configuration

Get your credentials from the MultiSet Dashboardarrow-up-right:

  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

The SDK includes ready-to-use examples:

To run an example:

circle-info

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

Demo

WebXR VPS demo

Last updated