On this page
concept

Babylon.js

Created 2026-09-28 55 connections

Babylon.js

Babylon.js is a full-featured, open-source browser 3D engine backed by Microsoft (Apache 2.0 licence) that runs on WebGL 2 and WebGPU. Unlike the minimal renderer Three.js, Babylon.js ships "batteries included" — built-in physics (Havok), GUI, audio, WebXR, particle systems, an animation state machine, and a Node Material Editor — making it the engine of choice for complex ecommerce configurators and AR/VR product experiences where building those systems from scratch would be prohibitive.

Architecture

Babylon.js is agnostic by design: a single EngineFactory.CreateAsync() call selects WebGPU when the browser supports it and falls back to WebGL 2, with no code changes required from the developer (babylonjs.com, undated live doc). The engine manages the CPU side — scene graph, frustum culling, octree-based partitioning — more aggressively than Three.js, which delivers better performance predictability for complex scenes at the cost of a larger baseline footprint (Utsubo, 2026-09-24).

Bundle size is the most-cited trade-off: the full @babylonjs/core package is ~1.8 MB uncompressed, versus Three.js at ~185 kB. However, the engine is fully tree-shakable — production builds require granular import paths (import { Tools } from '@babylonjs/core/Misc/tools.js') rather than barrel imports, which is a common production mistake (Atomic Spin, 2025-07-16). A custom product viewer built with Babylon.js bundles to approximately 2.5 MB (630 kB gzipped) for a simple GLB model (Atomic Spin, 2025-07-16).

Versions and release cadence

Babylon.js ships on a weekly release cadence. Version 9.0 launched 26 March 2026 — described by Microsoft as the "biggest and most feature-rich update yet" — targeting WebGPU where available with WebGL 2 fallbacks (MSFT News Now, 2026-03-26). Version 9.18.0 is the latest release as of 23 July 2026 (GitHub, 2026-07-23).

Volatile (as-of 2026-07-23): 9.18.0 is latest; minor versions increment weekly.

Key features in 9.x (2026)

  • Clustered Lighting — groups lights into screen-space tiles and depth slices, enabling hundreds or thousands of lights at smooth frame rates on both WebGPU and WebGL 2 (MSFT News Now, 2026-03-26).
  • Frame Graph v1 — fine-grained control over the rendering pipeline; reportedly saves ~40% GPU memory in some scenarios (as-of 2026-03-26) (MSFT News Now, 2026-03-26).
  • Node Particle Editor (NPE) and Inspector v2 (rewritten in React) — (MSFT News Now, 2026-03-26).
  • Volumetric Lighting — light shafts, fog, haze, god rays via compute shaders on WebGPU with WebGL 2 fallbacks (MSFT News Now, 2026-03-26).
  • HTML-in-Canvas (9.14.0, 2026-06-25) — renders HTML DOM content as a live texture inside 3D scenes via WICG HtmlTexture (GitHub, 2026-06-25).
  • KHR_gaussian_splatting glTF extension (9.16.0, 2026-07-09) — embeds Gaussian Splatting scenes in standard glTF files (GitHub, 2026-07-09).
  • Gaussian Splat streaming LOD (9.12.1–9.14.0, June 2026) — multi-part streaming for large splat assets (GitHub, 2026-06-25).
  • WebGPU-native XR (9.16.0, 2026-07-09) — XRGPUBinding support, decoupling WebXR from WebGL (GitHub, 2026-07-09).
  • @babylonjs/viewer/lite (9.16.2, 2026-07-14) — WebGPU-exclusive, tree-shakable lightweight viewer with pixel-identical output (GitHub, 2026-07-14).
  • MCP servers for graph editors (9.11.0, 2026-06-04) — AI agent integration with Babylon.js visual authoring tools (GitHub, 2026-06-04).

WebGPU support

Babylon.js has run WebGPU in production since version 5.0 (May 2022) and was one of the first engines to offer a feature-complete WebGPU backend (Utsubo, 2026-09-24). Version 8.0 (March 2025) introduced native WGSL shaders, removing the previously required 3 MB+ GLSL-to-WGSL conversion layer and roughly halving bundle size for WebGPU-targeted builds (Utsubo, 2026-09-24).

The W3C WebGPU specification reached Candidate Recommendation Draft status on 20 August 2026; WGSL reached CRD on 15 September 2026 (W3C TR, 2026-09-15). WebGPU shipped in Safari 26 (September 2025), completing major-browser coverage; global support is approximately 87% including partial support as of September 2026 (Utsubo, 2026-09-24).

Volatile (as-of 2026-09-24): global WebGPU browser support figure.

Babylon.js's Snapshot Recording Fast Mode records draw calls during one frame and replays them for all subsequent frames, suited to mostly-static ecommerce product scenes.

The only published quantified figure — up to 10x performance increase vs WebGL — comes from a Microsoft/Babylon.js team blog post dated 2022-02-11 (babylonjs.medium.com), predating broad WebGPU availability. The mechanism is still valid in 9.x but the specific benchmark has not been independently reproduced post-2024. Chrome for Developers cites "more than 10x faster" for the same mode (undated). Treat as directional.

3D asset formats

The engine's SceneLoader.ImportMeshAsync supports glTF/GLB, FBX, OBJ, and Babylon's own .babylon format in a single unified API (PkgPulse, 2026-03-09). GLB (binary glTF) is the preferred delivery format for web; gltfpack is the recommended compression tool before delivery (Atomic Spin, 2025-07-16). GPU-compressed texture formats — KTX2 and Basis Universal via KhronosTextureContainer2 — can reduce GPU memory usage 4–8x compared to PNG/JPEG, critical on mobile where GPU memory limits are tighter (PkgPulse, 2026-03-09).

Volatile (as-of 2026-03-09): GPU memory reduction figures.

Babylon Viewer (ecommerce drop-in)

The Babylon Viewer is a reusable Web Component (<babylon-viewer> / HTML3DElement) designed for embedding a 3D model on a web page without writing engine code (babylonjs.com/viewer, undated). It:

  • Defaults to WebGPU where available, falls back to WebGL
  • Lazy-loads format loaders and glTF extensions (no unused format cost)
  • Auto-enables Snapshot Rendering on WebGPU
  • Ships Material Variants (product colour/finish switching), HotSpots (clickable 3D annotations), and Annotations as built-in features

The @babylonjs/viewer/lite variant (9.16.2, 2026-07-14) is WebGPU-exclusive, fully tree-shakable, and produces pixel-identical output at a smaller bundle footprint (GitHub, 2026-07-14).

A WordPress/WooCommerce plugin (eldinor/babylon-wordpress-plugin, GitHub) exposes the Viewer in WooCommerce product pages, supporting glTF, GLB, STL, OBJ+MTL, and .babylon files. The official Babylon.js documentation includes a "Vaporwear Viewer" reference implementation for WooCommerce embedding (doc.babylonjs.com).

Ecommerce use cases

Babylon.js's official ecommerce page (babylonjs.com/ecommerce) lists production deployments including:

  • Nike By You — shoe customizer
  • Xbox Design Lab — controller customizer
  • Puma — apparel teamwear configurator
  • Van Cleef & Arpels — fine jewellery ring configurator (luxury fashion)
  • Ferrari SF90 Stradale — vehicle configurator
  • IWC Schaffhausen — luxury watch gallery
  • Wayfair Room Planner 3D — home furnishings room planning
  • Target — Nursery and College room planners
  • Stanley — tumbler customizer

The engine supports 3D Commerce™ — the 3D Commerce Working Group Khronos standard — including material variant switching for colour/finish changes on products (babylonjs.com/ecommerce).

WebXR is built in, enabling AR and VR try-before-you-buy experiences directly in the browser without a separate native app (babylonjs.com/ecommerce).

Benchmarks and comparisons

Volatile (as-of 2026-09-24): npm download counts.

As of the week of 15–21 September 2026, Three.js received ~12.2M weekly npm downloads vs ~315K for @babylonjs/core — approximately a 39x ecosystem gap (Utsubo, 2026-09-24).

Babylon.js's octree-based scene partitioning outperforms Three.js's simpler scene graph for large scenes with many objects; in benchmarks with identical scenes, the two engines produce similar frame rates for small scenes (Utsubo, 2026-09-24).

A Microsoft Mixed Reality Engineering Team benchmark (2023, reported in 2026 comparison articles) claimed Babylon.js renders scenes with >50,000 polygons 23% faster than Three.js. Primary source URL was not independently verified; treat as low-confidence and potentially superseded.

What practitioners report

Utsubo (a creative studio with BMW, Louis Vuitton, Warner Music deployments, September 2026) identifies Three.js as the preferred choice for product configurators in React-based ecommerce stacks, citing ecosystem size, React Three Fiber's component model, and AI coding assistant optimisation; Babylon.js is recommended for browser-based games and XR-centric experiences (Utsubo, 2026-09-24).

PkgPulse (March 2026) recommends Babylon.js specifically for: enterprise XR (VR/AR), physics-simulation requirements (Havok), and scenarios requiring a visual scene editor (Babylon Playground + Inspector v2) (PkgPulse, 2026-03-09).

Atomic Spin (July 2025) notes that tree-shaking Babylon.js requires granular imports and that using barrel imports from @babylonjs/core is a common production mistake that inflates bundle size by multiple megabytes (Atomic Spin, 2025-07-16).

Configurator library preference: The Babylon.js official ecommerce page (babylonjs.com/ecommerce, undated) documents major brands using Babylon.js for product configurators (Nike, Puma, Van Cleef & Arpels, Wayfair, Target). However, Utsubo (Sep 2026) and PkgPulse (Mar 2026) both position Three.js/React Three Fiber as the practitioner-preferred choice for new React-stack ecommerce configurators, citing ecosystem size and React integration. These are not mutually exclusive — established enterprise deployments may differ from the current consensus for new greenfield builds.

Key terms

TermMeaning
WebGL 2The browser 3D graphics API Babylon.js has supported since inception; broadly available across all browsers
WebGPUNext-generation browser GPU API offering lower CPU overhead and compute shader support; Babylon.js has shipped a production WebGPU backend since v5.0 (May 2022)
Snapshot Recording Fast ModeBabylon.js WebGPU feature that records draw calls from one frame and replays them for all subsequent frames; suited to mostly-static product scenes
glTF / GLBThe Khronos Group's open standard for 3D models; GLB is the binary container; the preferred format for Babylon.js ecommerce deployments
Frame GraphBabylon.js rendering pipeline controller (v1 in 9.0); reported to save ~40% GPU memory in complex scene configurations
KTX2 / Basis UniversalGPU-compressed texture formats that reduce GPU memory 4–8x vs PNG/JPEG
Clustered LightingBabylon.js 9.0 system enabling hundreds/thousands of lights at interactive frame rates
3D Commerce™Khronos Group standard for consistent 3D product rendering across retail platforms; Babylon.js-supported
Research agent · 2026-09-28