New Demos Added Monthly

Master Three.js and WebGL

Explore a comprehensive collection of production-ready Three.js examples. From basic geometry to advanced physics and custom shaders, everything you need to build the modern web is here.

Basics

Explore 14 basics examples and code samples.

Rotating Cube preview
Explore Demo →

Rotating Cube

Simple rotating cube starter showcasing a basic scene, camera and lighting.

basics
Three.js Sphere Texture Mapping preview
Explore Demo →

Three.js Sphere Texture Mapping

Three.js sphere with UV texture mapping using procedural checkerboard CanvasTexture. Demonstrates texture wrapping, anisotropy, and material mapping.

basics
Wireframe Toggle preview
Explore Demo →

Wireframe Toggle

Torus geometry with a material wireframe toggle (GUI and keyboard "w").

basics
Three.js Torus Knot Geometry preview
Explore Demo →

Three.js Torus Knot Geometry

Interactive torus knot geometry demo showcasing Three.js TorusKnotGeometry with parametric generation, animation, and standard PBR material shading.

basics
Ambient + Directional Light preview
Explore Demo →

Ambient + Directional Light

Compare ambient fill with a directional key light on a sphere.

basics
Grid + Axes Helpers preview
Explore Demo →

Grid + Axes Helpers

Visual helpers to understand world orientation and scale.

basics
3D Point Cloud Visualization preview
Explore Demo →

3D Point Cloud Visualization

Interactive JavaScript 3D point cloud demo using Three.js PointsMaterial and BufferGeometry for efficient WebGL rendering.

basics
Axes + Orbit Controls preview
Explore Demo →

Axes + Orbit Controls

Orbit a normal-mapped cube with axes visible.

basics
Plane Shadows preview
Explore Demo →

Plane Shadows

Enable basic shadow casting/receiving between objects.

basics
Normals Material preview
Explore Demo →

Normals Material

Torus knot with MeshNormalMaterial for quick debugging.

basics
Instanced Grid preview
Explore Demo →

Instanced Grid

Thousands of lightweight instances arranged in a grid.

basics
Box Wireframe preview
Explore Demo →

Box Wireframe

Wireframe cube using MeshBasicMaterial.

basics
Materials Gallery preview
Explore Demo →

Materials Gallery

Compare basic/lambert/phong/standard materials on spheres.

basics
Primitives Wall preview
Explore Demo →

Primitives Wall

A row of basic primitives rotating under lights.

basics

Lighting

Explore 11 lighting examples and code samples.

Camera Controls

Explore 3 camera controls examples and code samples.

Particle Systems

Explore 3 particle systems examples and code samples.

Physics Simulation

Explore 2 physics simulation examples and code samples.

Materials & Textures

Explore 2 materials & textures examples and code samples.

Retro / Demoscene

Explore 1 retro / demoscene examples and code samples.

Procedural Generation

Explore 6 procedural generation examples and code samples.

Post-Processing

Explore 10 post-processing examples and code samples.

Audio Visualization

Explore 2 audio visualization examples and code samples.

WebGL Techniques

Explore 1 webgl techniques examples and code samples.

Scientific & Educational

Explore 1 scientific & educational examples and code samples.

Data Visualization

Explore 2 data visualization examples and code samples.

Games & Interactive

Explore 16 games & interactive examples and code samples.

Pong 3D preview
Explore Demo →

Pong 3D

Classic arcade game reimagined in 3D space with realistic physics, AI opponent, and interactive controls.

games
Marble Maze preview
Explore Demo →

Marble Maze

Tilt the mahogany board to guide the silver marble through a challenging logic maze.

games
Explore Demo →

3D Tetris

Stacking blocks in three dimensions — a spatial reasoning puzzle in a glass container.

games
Explore Demo →

Breakout 3D

Smash a wall of colorful 3D bricks with a bouncing ball and a sliding paddle.

games
Explore Demo →

Snake 3D

Slither through a neon 3D grid, consuming energy cubes to grow while avoiding the walls and your own tail.

games
Explore Demo →

Pac-Man 3D

Navigate a 3D neon maze, collect pellets, and avoid the ghosts in this spatial reimagining of the classic.

games
Explore Demo →

Missile Command 3D

Defend the metropolis from a barrage of incoming ballistic missiles using interceptor rockets and tactical explosions.

games
Explore Demo →

Target Gallery

Test your reflexes in this 3D shooting gallery. Click on rapidly moving targets and clear the field before time runs out.

games
Explore Demo →

Stacking Challenge

How high can you go? Stack sliding blocks with pixel-perfect precision. Any overhang is sliced off!

games
Explore Demo →

3D Bowling

Realistic physics-based bowling. Aim your throw, add some spin, and try for a strike!

games
Explore Demo →

Space Invaders 3D

A voxel-based orbital shooter. Defend your sector from descending grids of alien invaders.

games
Explore Demo →

Minesweeper 3D

The classic logic puzzle, reimagined as a 3D block. Reveal all safe tiles without hitting a mine!

games
Explore Demo →

Tower Defense

Strategic defense game. Place automated turrets along a path to stop waves of incoming enemies.

games
Explore Demo →

Asteroids 3D

Classic space shooter in 3D. Pilot your ship through a field of drifting asteroids and clear the sector.

games
Explore Demo →

Rubik's Cube

A fully interactive and solvable 3D Rubik's Cube puzzle.

games
Explore Demo →

Chess 3D

A beautiful 3D chess board for interactive play. Grab and move pieces across the board.

games