M.E.S.S. M.E.S.S. Quest3-WebXR-AprilTag
GitHub ↗

Quest3-WebXR-AprilTag

Physical millimeter (0, 0, 0) WebXR anchor for Meta Quest 3 — calibrate once, lock a native XRAnchor, and track at 90 FPS with the camera off.

v1.0.0 · Apache-2.0 · Zero build step

Quest 3 AR Demo preview
Launch Quest 3 AR Demo → Meta Quest Browser · immersive-ar · calibrate, lock & measure

Measured on Meta Quest 3

89–90 FPS Native XRAnchor loop
0.8–0.9 ms Median main-thread readback (max 2.4 ms)
~15 ms Native XRAnchor creation time
0 lost 18,777 max consecutive tracked frames
0.27–0.37 px Held-out reprojection RMS (fx = fy: 866–892 px)
-50.2…-53.4 ms Solved capture-to-XR lag (< 1 µs seed spread)
2–4 mm Cross-session repeatability (1 m span)
0 deps Pure ES core in src/ · 110 passing tests

Meta Quest 3 · OculusBrowser 157 / Chrome 157 · 1280×1080 · self-consistency metrics are not independent metrology certification · anchors session-scoped, calibration persisted in localStorage.

How It Works

WebXR starts (0, 0, 0) in an arbitrary room frame, while Quest Browser's getUserMedia() stream exposes no camera intrinsics, no headset offset, and ~50 ms of capture delay. Calibrating all three once lets native WebXR SLAM take over.

01 · Calibrate Once

Intrinsics, Hand-Eye & Lag

Orbit around a flat L-angle (350–352 or 370–372). A background Web Worker solves focal length K, viewerFromCameraGL, and capture delay, checks held-out views, and caches the profile in localStorage.

02 · Lock Native XRAnchor

Hand Off to Quest SLAM

Five steady 3-tag views create one native XRAnchor on the physical origin and stop the camera. Quest SLAM drives the coordinate frame at 90 FPS with zero optical fallback.

03 · SCAN or MEASURE

Live Tags & 90 FPS Probing

Use SCAN (camera on) for perimeter markers (353–359), 90 Hz hand-coupled tags (300–301), Time-Copies, and [● REC] paths; switch to MEASURE (camera off) for fingertip hover and pairwise mm distance rails.

worldFromL = worldFromViewer(captureTime + timeOffsetMs) × viewerFromCameraGL × cameraFromL(captureTime)