JavaScript 3D library
open sourceMITself-hostablefree
three.js is an easy-to-use, lightweight, cross-browser, general-purpose 3D library for JavaScript. You build a scene from cameras, geometries, materials and lights, and its WebGL and WebGPU renderers draw it in the browser; SVG and CSS3D renderers are available as addons. Its addons cover loaders for glTF, FBX, OBJ, USD, STL, Draco and many other model, texture and Gaussian splat formats, camera controls, post-processing effects, animation, physics helpers, exporters and WebXR for virtual and augmented reality, and TSL lets you write shaders in JavaScript for both renderers. It also ships a browser-based scene editor. It's MIT licensed and published on npm as three.
Problems it solves
- show an interactive 3D model of our product on a web page
- load a glTF model and let the user rotate and zoom it in the browser
- build a 3D game or visualization that runs in any browser
- add WebXR virtual reality support to a web experience
- render 3D graphics with WebGPU and fall back to WebGL
- write custom shaders without hand-writing GLSL
Features
- WebGL and WebGPU renderers, SVG and CSS3D renderers as addons
- scene graph with cameras, lights, geometries and materials
- loaders for glTF, FBX, OBJ, USD, STL, Draco, KTX2 and Gaussian splats
- camera controls and post-processing effects
- animation system
- WebXR support
- TSL shading language in JavaScript
- browser-based scene editor
Capabilities
| Takes plugins | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what three.js does.
- p5.js A friendly tool for learning to code and make art