{"schemaVersion":"1.0","record":{"label":"Three.js","description":"JavaScript 3D rendering library for custom scenes and browser experiences.","aliases":["three.js"],"kind":"software","website":"https://threejs.org/","overview":"Three.js is a JavaScript library for displaying and manipulating 3D scenes. It provides rendering and scene-graph abstractions for web experiences, rather than all the systems of a complete game engine.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"Browser 3D rendering","status":"supported","detail":"Scene and rendering abstractions support custom web applications.","useCase":"Code-driven games and interactive graphics","platforms":["Web browsers"],"region":"Target toolchains, browser and hardware support apply","evidence":[{"url":"https://github.com/mrdoob/three.js","locator":"JavaScript rendering library and backends","retrievedAt":"2026-10-07T06:54:16Z","kind":"vendor"}]},{"name":"Complete game-engine systems","status":"limited","detail":"Additional application code or libraries are needed beyond the 3D library.","useCase":"Code-driven games and interactive graphics","platforms":["Web browsers"],"region":"Target toolchains, browser and hardware support apply","evidence":[{"url":"https://github.com/mrdoob/three.js/blob/dev/manual/pages/game.html","locator":"Library versus game organization","retrievedAt":"2026-10-07T07:01:12Z","kind":"vendor"}]},{"name":"Existing shader pipeline with WebGPURenderer","status":"limited","detail":"Custom shaders and EffectComposer need migration to the newer node-based pipeline.","useCase":"Code-driven games and interactive graphics","platforms":["Web browsers"],"region":"Target toolchains, browser and hardware support apply","evidence":[{"url":"https://github.com/mrdoob/three.js/blob/dev/manual/pages/webgpurenderer.html","locator":"Fallback, experimental status and shader migration","retrievedAt":"2026-10-07T07:01:12Z","kind":"vendor"}]}],"alternatives":[],"slug":"three-js","draftAlternatives":[{"targetSlug":"babylon-js","status":"limited","detail":"Alternative for browser 3D rendering when surrounding systems can be assembled separately; not a complete replacement for integrated engine facilities.","useCase":"Code-driven games and interactive graphics","platforms":["Web browsers"],"region":"Target toolchains, browser and hardware support apply","evidence":[{"url":"https://github.com/mrdoob/three.js","locator":"JavaScript rendering library and backends","retrievedAt":"2026-10-07T06:54:16Z","kind":"vendor"},{"url":"https://github.com/mrdoob/three.js/blob/dev/manual/pages/game.html","locator":"Library versus game organization","retrievedAt":"2026-10-07T07:01:12Z","kind":"vendor"},{"url":"https://www.babylonjs.com/specifications/","locator":"Scene graph, rendering, input and tools","retrievedAt":"2026-10-07T07:01:12Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/mrdoob/three.js","locator":"JavaScript rendering library and backends","retrievedAt":"2026-10-07T06:54:16Z","kind":"vendor"},{"url":"https://github.com/mrdoob/three.js/blob/dev/manual/pages/game.html","locator":"Library versus game organization","retrievedAt":"2026-10-07T07:01:12Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/mrdoob/three.js/blob/dev/LICENSE","locator":"MIT license","retrievedAt":"2026-10-07T06:54:43Z","id":"three-license","title":"Three.js license","kind":"vendor"},{"url":"https://github.com/mrdoob/three.js","locator":"JavaScript rendering library and backends","retrievedAt":"2026-10-07T06:54:16Z","id":"three-readme","title":"Three.js README","kind":"vendor"},{"url":"https://github.com/mrdoob/three.js/blob/dev/manual/pages/game.html","locator":"Library versus game organization","retrievedAt":"2026-10-07T07:01:12Z","id":"three-game","title":"Three.js game tutorial","kind":"vendor"},{"url":"https://github.com/mrdoob/three.js/blob/dev/manual/pages/webgpurenderer.html","locator":"Fallback, experimental status and shader migration","retrievedAt":"2026-10-07T07:01:12Z","id":"three-gpu","title":"Three.js WebGPURenderer manual","kind":"vendor"},{"url":"https://www.babylonjs.com/specifications/","locator":"Scene graph, rendering, input and tools","retrievedAt":"2026-10-07T07:01:12Z","id":"babylon-spec","title":"Babylon.js engine specifications","kind":"vendor"}],"overviewCitations":["three-readme","three-game"],"licenseCitations":["three-license"],"sections":[{"id":"workflow","heading":"Rendering-centered architecture","paragraphs":[{"id":"workflow-detail","content":[{"text":"A typical application constructs a scene with cameras, geometry and materials and renders it through the library. Developers can use the same foundation for a model viewer, data visualization or game. The project's game tutorial emphasizes that substantial application organization lives outside Three.js: game rules, physics and other gameplay systems must be supplied by the application or additional libraries."}],"citations":["three-readme","three-game"]}]},{"id":"backends","heading":"Renderer choices","paragraphs":[{"id":"backends-detail","content":[{"text":"The project offers WebGL and WebGPU rendering paths. The WebGPURenderer manual describes automatic fallback to WebGL2 where WebGPU is unavailable and a node-based material system using Three.js Shading Language, or TSL. Backend support still depends on the browser and device; fallback is not proof that every feature or workload behaves identically."}],"citations":["three-gpu"]}]},{"id":"migration","heading":"WebGPU migration boundaries","paragraphs":[{"id":"migration-detail","content":[{"text":"Switching renderers can require more than changing an import. The manual says custom ShaderMaterial and RawShaderMaterial code, onBeforeCompile modifications and the older EffectComposer pipeline are not supported by WebGPURenderer in their existing form. They need node-material or TSL-based counterparts. The inspected manual still labels the renderer experimental and retains WebGLRenderer as the recommended option for applications specifically targeting WebGL2."}],"citations":["three-gpu"]}]},{"id":"license","heading":"Licensing and project scope","paragraphs":[{"id":"license-detail","content":[{"text":"Three.js uses the MIT license, allowing reuse and modification with its notice conditions. The library's license does not cover every model, texture or additional library that a developer might load into a scene. Choosing Three.js also means choosing how the rest of the application is assembled, rather than relying on the rendering package to define an entire production workflow."}],"citations":["three-license","three-game"]}]},{"id":"substitution","heading":"Substitution assessment","paragraphs":[{"id":"substitution-detail","content":[{"text":"Three.js can substitute for "},{"text":"Babylon.js","targetSlug":"babylon-js"},{"text":" for browser 3D rendering when the team prefers to assemble surrounding application systems itself. It is a narrower replacement for a project that depends heavily on Babylon's integrated GUI, audio or game-oriented facilities. Shared 3D concepts make the comparison useful, but scene APIs, materials and interaction code still require adaptation; no direct project conversion was verified."}],"citations":["three-game","three-readme","babylon-spec"]}]}]},"id":"Q888","revision":936,"updatedAt":"2026-10-13T13:47:36Z","sourceUrl":"https://substitutefor.net/entities/Q888?revision=936"}}