PROVIDER - Web 3D rendering engine
Babylon.js
Babylon.js is an Apache-2.0 open-source Web 3D engine written in TypeScript that ships WebGL2 and WebGPU rendering backends, with node material editing, particle tools and glTF loading modules.
4.6pts
Service Overview
Babylon.js is an Apache-2.0 open-source Web 3D engine written in TypeScript that handles model loading, material rendering and scene interaction in the browser. The current line is 9.x: version 9.0 shipped in March 2026, and @babylonjs/core on npm is at 9.38.0.
The engine is split into ES6 packages: core carries only the scene graph, cameras and lights, while loaders, gui, materials and the havok physics plugin install separately. Playground, Sandbox and Node Material cover authoring in the browser, and 9.0 added Frame Graph, clustered lighting and 3D Tiles. Babylon Lite is a separate WebGPU-only branch maintained alongside the main engine, and the code lives in the BabylonJS GitHub organization.
Key Strengths
- Apache-2.0 permits commercial and closed-source use, and runtime code is self-hosted with no usage-based billing.
- One scene API covers both WebGL2 and WebGPU backends, so business code changes little when switching engines.
- Playground, Sandbox and Node Material run in the browser, so materials can be inspected without a local build.
- The loaders package parses glTF 2.0 and GLB models, and 9.x adds 3D Tiles and Gaussian splatting without extra converters.
- Havok physics ships as a WebAssembly build under MIT, so no third-party physics engine is required.
Limitations
- The official CDN is for learning and experiments only; the README asks production sites to serve assets from their own CDN.
- The full UMD bundle on that CDN is 8.9 MB, so production projects must switch to ES6 packages and import only what they use.
- The WebGPU backend depends on browser support, so older Safari builds and some embedded engines fall back to WebGL2.
- The project has no commercial support agreement or SLA, so issues wait in the forum and GitHub issue queue.
- Babylon Lite supports WebGPU only and does not share the main engine API, so two rendering codebases must be maintained separately.
Product Ecosystem
Engine and runtime
Babylon.js 9.38.0 is the main engine and ships two implementations, one for WebGL2 and one for WebGPU, sharing the same scene, camera, light and mesh API. Babylon Lite is a separate branch for WebGPU only; the official comparison measures the same BoomBox scene at 34 KB gzipped against 675 KB for the main engine. Babylon Native and React Native embed the renderer in a native runtime for mobile and desktop apps.
Packages
@babylonjs/core provides the scene graph, cameras and lights; @babylonjs/loaders parses glTF 2.0, GLB and other model formats; @babylonjs/materials provides PBR and the OpenPBR material introduced in 9.0; @babylonjs/gui adds 2D controls; @babylonjs/havok 1.3.14 delivers WebAssembly physics under MIT; @babylonjs/inspector is the runtime debugging panel.
Tooling
Playground runs code snippets in the browser and Sandbox inspects a dragged-in model; Node Material Editor, Node Geometry Editor, Node Particle Editor and Node Render Graph Editor build materials, geometry, particles and render pipelines as node graphs; Inspector v2 and Spector.js cover runtime inspection and frame analysis; Babylon Viewer embeds a model viewer as a Web Component.
Integration and deployment
The engine ships as npm packages in both ES6 module and UMD script form, with TypeScript types included, and builds with any ES Module bundler such as Vite or Webpack. Static assets sit on your own object storage or CDN, with scene files and textures kept in separate folders.
Use Cases
- Suitable | 3D product configurators: glTF models switch material and colour variants, which suits e-commerce and vehicle configurators.
- Suitable | Digital twins and 3D maps: 3D Tiles, the geospatial camera and large-world rendering cover wide-area scenes.
- Suitable | Teaching and live demos: Playground runs code on open, which shortens API experiments.
- Suitable | Teams that self-host: Apache-2.0 sets no usage limit, and static assets can live in your own storage.
- Assess first | Devices limited to WebGL1: the main engine renders through WebGL2 and WebGPU.
- Assess first | Marketing pages with a tiny first-paint budget: the full CDN bundle is 8.9 MB, so ES6 packages are required.
- Assess first | Procurement that needs a vendor SLA: there is no commercial support agreement, only the community and your own operations.
Open Source License & Deployment Cost
| Usage (self-hosted / managed) | License | Minimum deployment requirements | Commercial support and extra cost |
|---|---|---|---|
| ES6 packages with your own bundler (self-hosted) | Apache-2.0 | Bundler with ES Module support; browser with WebGL2 or WebGPU | Free ($0) |
| CDN script tag (cdn.babylonjs.com) | Apache-2.0 | One script tag for the UMD bundle, about 8.9 MB | Free ($0), learning and experiments only |
| Own CDN or object storage (production) | Apache-2.0 | Static hosting over HTTPS; R2 standard storage $0.015 / GB-month | Storage and requests billed by the cloud vendor; R2 egress is free |
| Online tools (Playground / Sandbox / node editors) | Apache-2.0 | Browser access to assets on cdn.babylonjs.com | Free ($0), nothing to self-host |
| Havok physics plugin (@babylonjs/havok 1.3.14) | MIT | Load the WebAssembly module at runtime | Free ($0) |
Note: figures reflect public licensing and billing dimensions as of 2026-11. Engine and tooling are free under Apache-2.0, so production cost sits in static asset hosting, texture and model bandwidth, and engineering time; the object-storage unit price is the Cloudflare R2 standard-storage list price, and the final invoice depends on the chosen cloud vendor and region.
FAQ
-
Does commercial use require a payment or extra license?
No. Babylon.js is released under Apache-2.0, which permits commercial use, modification and closed-source distribution as long as copyright and license notices stay in place and changes are marked; the Havok plugin is MIT-licensed and can ship with a product as well. There is no per-call or per-seat fee, so cost sits in development and static asset hosting. -
How does it differ from Three.js?
Both are browser 3D engines, and the difference is scope. Babylon.js puts physics, GUI, node material editors, Inspector and Viewer inside the official repository and releases them together; Three.js keeps a smaller core, with examples and third-party packages spread across the community, and physics or post-processing usually come from separate packages. Whether you need one vendor-maintained toolchain is the main deciding question. -
Which browsers and devices are supported?
WebGL2 is the baseline, and WebGPU requires browser support for the API. Chrome, Edge, Firefox and recent Safari provide WebGL2 on desktop, WebGPU is available in newer Chrome, Edge and Safari builds, and mobile Safari and Chrome on Android also centre on WebGL2. Devices without WebGL2 cannot run the main engine, while Babylon Lite requires WebGPU. -
Can it run inside native mobile apps?
Yes, through Babylon Native or React Native. Babylon Native embeds the engine in native iOS, Android and Windows views and reuses the same scene code, while @babylonjs/react-native 2.0.8 provides React Native components under MIT. Native builds require compiling artifacts per platform, which makes the toolchain and package size heavier than a pure web build. -
How much work is a migration from Three.js?
Scene graph and material APIs differ, so code needs rewriting. Cameras, meshes and lights are conceptually close, but Babylon.js organizes code through Scene, Engine and MeshBuilder, and materials, post-processing, animation and particles use their own names; glTF model files can be reused directly. Start with a minimal scene, then replace modules one at a time, with most effort in custom shaders.
Integration & Code Examples
Example 1: install the ES6 packages
A production project installs core plus the features it needs instead of loading the full UMD script; add loaders when models are involved.
npm install @babylonjs/core @babylonjs/loaders
Example 2: minimal scene
Place this in your entry file with a <canvas id="renderCanvas"> on the page; passing true to the Engine constructor enables antialiasing.
import { Engine } from "@babylonjs/core/Engines/engine";
import { Scene } from "@babylonjs/core/scene";
import { ArcRotateCamera } from "@babylonjs/core/Cameras/arcRotateCamera";
import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight";
import { Vector3 } from "@babylonjs/core/Maths/math.vector";
import { MeshBuilder } from "@babylonjs/core/Meshes/meshBuilder";
const canvas = document.getElementById("renderCanvas") as HTMLCanvasElement;
const engine = new Engine(canvas, true);
const scene = new Scene(engine);
const camera = new ArcRotateCamera("camera", Math.PI / 2, Math.PI / 3, 6, Vector3.Zero(), scene);
camera.attachControl(canvas, true);
new HemisphericLight("light", new Vector3(0, 1, 0), scene);
MeshBuilder.CreateBox("box", { size: 1 }, scene);
engine.runRenderLoop(() => scene.render());
window.addEventListener("resize", () => engine.resize());
Example 3: switch to WebGPU and load a glTF model
Reuse the canvas and scene from example 2: WebGPU needs the adapter initialized first, and the loader import registers the glTF plugin, without which .glb parsing fails to find a loader.
import { WebGPUEngine } from "@babylonjs/core/Engines/webgpuEngine";
import { SceneLoader } from "@babylonjs/core/Loading/sceneLoader";
import "@babylonjs/loaders/glTF";
const engine = new WebGPUEngine(canvas);
await engine.initAsync();
await SceneLoader.ImportMeshAsync("", "/models/", "chair.glb", scene);
Community & Resources
Official channels
- Babylon.js website — feature list, industry showcases and tool entry points
- Documentation — tutorials, API reference, materials and render pipeline guides
- Playground — run and share scene code online
- Forum — questions, samples and version-specific answers
Source and license
- GitHub repository — engine source, release notes and issue tracker
- Apache License 2.0 — full license text for engine and tooling
- npm organization — core, loaders, gui, materials, havok and related packages
- Languages & Frameworks — front-end frameworks, languages and runtimes
- Three.js — another browser 3D engine for side-by-side reading
Articles
- 01 Choosing Three.js or Babylon.js 11-29
- 02 GitLab CI/CD Pipeline Practices 07-18
- 03 Prometheus Monitoring and Alert Setup 07-18
- 04 Choosing Free Fonts for Commercial Use 11-25
- 05 BaaS Platform Selection and Migration Scope 11-29
- 06 Ansible Operations Automation 07-18
- 07 Migrating Spring Boot 4 to Native Image 11-29
- 08 Backend Language Selection and Runtime Boundaries 11-29
- 09 Docker Basics: Install and Run Containers 07-18
- 10 Choosing a Node.js Backend Framework 11-29