GitHub RepositoryOpen SourceMITNodeJavaScriptDemo AvailableExternal ProjectNext.js

mrdoob/three.js

This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.

Stars
113.3K
Forks
36.4K
Watchers
113.3K
Open Issues
401
mrdoob/three.js

Repository Details

Repository
mrdoob/three.js
Framework
Node
Primary Language
JavaScript
Content Language
English
License
MIT
Stars
113.3K
Forks
36.4K
Watchers
113.3K
Open Issues
401
Default Branch
dev
Last Synced
25 Jun 2026
Repository Status
draft_created

Repository Description

AI Summary

JavaScript 3D Library.

Original Repository Description

JavaScript 3D Library.

README Preview

# three.js [![NPM Package][npm]][npm-url] [![Build Size][build-size]][build-size-url] [![NPM Downloads][npm-downloads]][npmtrends-url] [![jsDelivr Downloads][jsdelivr-downloads]][jsdelivr-url] [![Discord][discord]][discord-url] #### JavaScript 3D library The aim of the project is to create an easy-to-use, lightweight, cross-browser, general-purpose 3D library. The current builds only include WebGL and WebGPU renderers but SVG and CSS3D renderers are also available as addons. [Examples](https://threejs.org/examples/) — [Docs](https://threejs.org/docs/) — [Manual](https://threejs.org/manual/) — [Wiki](https://github.com/mrdoob/three.js/wiki) — [Migrating](https://github.com/mrdoob/three.js/wiki/Migration-Guide) — [Questions](https://stackoverflow.com/questions/tagged/three.js) — [Forum](https://discourse.threejs.org/) — [Discord](https://discord.gg/56GBJwAnUS) ### Usage This code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a `WebGL` renderer for the scene and camera, and it adds that viewport to the `document.body` element. Finally, it animates the cube within the scene for the camera. ```javascript import * as THREE from 'three'; const width = window.innerWidth, height = window.innerHeight; // init const camera = new THREE.PerspectiveCamera( 70, width / height, 0.01, 10 ); camera.position.z = 1; const scene = new THREE.Scene(); const geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 ); const material = new THREE.MeshNormalMaterial(); const mesh = new THREE.Mesh( geometry, material ); scene.add( mesh ); const renderer = new THREE.WebGLRenderer( { antialias: true } ); renderer.setSize( width, height ); renderer.setAnimationLoop( animate ); document.body.appendChild( renderer.dom

NodeJavaScriptMIT3dvirtual-realityaugmented-realitywebglwebgl2webgpuwebxrwebaudiocanvassvghtml5

Related Repositories

Product Discussion

Ask questions or discuss this product. New comments are reviewed before publishing.

0 comments

Loading comments...

Explore

WOCSOL services and marketplace

Account

Sign in or create an account to manage downloads, orders, and support.