© Rakesh Baruah 2021
R. BaruahAR and VR Using the WebXR APIhttps://doi.org/10.1007/978-1-4842-6318-1_7

7. Creating an Augmented Reality Website with Three.js and the WebXR API

Rakesh Baruah1  
(1)
Brookfield, WI, USA
 

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 deviceit 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 ...

Get AR and VR Using the WebXR API: Learn to Create Immersive Content with WebGL, Three.js, and A-Frame now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.