Creating an Augmented Reality Website with Three.js and the WebXR API
PubDate: December 2020
Writers: Rakesh Baruah
We concluded the previous exercise by launching a virtual reality scene in an Oculus Quest through the browser. While the exercise accomplished its modest aims—to broadcast a Three.js scene from the browser to an XR device—it didn’t offer much in terms of interactivity between a user and their scene. In this chapter we will begin to explore the role spatial tracking plays in the WebXR API. By providing convenient abstractions for complex matrix multiplication, the WebXR API and its affiliated spatial-tracking modules allow XR developers to create immersive experiences that make the most of the mobility so integral to the essence of the Web.