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

5. Diving into Three.js

Rakesh Baruah1  
(1)
Brookfield, WI, USA
 

Until now, we’ve focused heavily on the intricacies of rendering polygons with WebGL. In this chapter, we leave WebGL and its complex syntax of buffers and attributes and uniforms behind. In its place we will use an open source 3D graphics library written in JavaScript called Three.js.

The exercise in this chapter is broken up into three parts. Part 1 addresses just some of the ways Three.js sits atop WebGL to make more convenient many of the basic operations essential to creating the bedrock of a 3D scene. Part 2 introduces the tools Three.js provides to easily create more detailed ...

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.