Babylon.js

Three.js 30,815 (Three.js) is a rendering library; Babylon.js 89,603 is a complete 3D engine. One project, released in lockstep, ships the renderer with Havok 516,349 physics, particles, a 2D and 3D GUI, audio, WebXR, an Inspector and visual editors. It draws with WebGL 2 through Engine or with WebGPU through WebGPUEngine, and your scene code is the same either way.

WebGL and WebGPU own the matrices, lighting math, shaders and WebGPU pipeline; this chapter points to them, and compares the APIs where Three.js solved the same problem. BookNest's virtual bookstore, a room with shelves holding the six books, grows section by section in one script, bookstore.js, and is assembled in The Virtual Bookstore. Every figure is a real render of Babylon.js 9.28.0 in headless Chrome 154 1 on the book's NVIDIA GeForce GTX 1650; WebXR (WebXR) needs a headset and is code only.

What you will learn:

Sections