Three.js Demos & Interactive Documentation
Comprehensive Three.js examples and WebGL documentation with interactive demos covering basics, lighting, materials, point clouds, particles, physics, and advanced graphics techniques. Learn Three.js with hands-on tutorials and production-ready code examples.
Basics

Rotating Cube
basicsSimple rotating cube starter showcasing a basic scene, camera and lighting.

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

Wireframe Toggle
basicsTorus geometry with a material wireframe toggle (GUI and keyboard "w").

Three.js Torus Knot Geometry
basicsInteractive torus knot geometry demo showcasing Three.js TorusKnotGeometry with parametric generation, animation, and standard PBR material shading.

Ambient + Directional Light
basicsCompare ambient fill with a directional key light on a sphere.

Grid + Axes Helpers
basicsVisual helpers to understand world orientation and scale.

3D Point Cloud Visualization
basicsInteractive JavaScript 3D point cloud demo using Three.js PointsMaterial and BufferGeometry for efficient WebGL rendering.

Axes + Orbit Controls
basicsOrbit a normal-mapped cube with axes visible.

Plane Shadows
basicsEnable basic shadow casting/receiving between objects.

Normals Material
basicsTorus knot with MeshNormalMaterial for quick debugging.

Instanced Grid
basicsThousands of lightweight instances arranged in a grid.

Box Wireframe
basicsWireframe cube using MeshBasicMaterial.

Materials Gallery
basicsCompare basic/lambert/phong/standard materials on spheres.

Primitives Wall
basicsA row of basic primitives rotating under lights.
Lighting

Three.js Point Light Interactive Demo
lightingInteractive three.js point light with real-time controls for position, color, and intensity. Features point light helper visualization and mouse tracking.

Directional Shadow Visualizer
lightingInspect directional light shadow camera and map size.

Spotlight Follow Cursor
lightingSpotlight target follows the mouse; tweak angle and penumbra.

Flickering Torch
lightingNoise-based point light flicker simulating a handheld torch.

Sunrise-to-Sunset
lightingAnimate sky and sun color/intensity over a day-night cycle.

Multiple Light Blending
lightingAdd/remove multiple colored lights and blend their effects.

Disco Lights
lightingPatterned color-cycling lights with tempo and patterns.

Volumetric Light Shafts
lightingFake god rays with additive cone; adjust density and decay.

Soft Shadows in Three.js
lightingAdvanced three.js soft shadow techniques with PCF shadow mapping, dynamic shadow softness control, and real-time shadow quality comparison.

Neon Glow Text
lightingEmissive neon-style text with adjustable glow intensity.

Depth of Field Gallery
lightingPost-processing depth of field effect with objects at varying distances.
Camera Controls

Orbit Controls Playground
cameraInteractive orbital camera with damping and auto-rotation controls.

First-Person Camera
cameraWASD movement with mouse look controls for immersive navigation.

Dolly Zoom (Vertigo Effect)
cameraCamera technique that changes FOV while adjusting distance to maintain object size.
Particle Systems

Snowfall
particlesRealistic snow particle system with wind and swaying motion.

Fireworks
particlesInteractive fireworks show with particle explosions and physics.

Galaxy Generator
particlesProcedural spiral galaxy with customizable arms and particle distribution.
Physics Simulation

Gravity Cubes
physicsFalling cubes with realistic physics, collisions, and bouncing.

Bouncing Balls
physicsMultiple balls bouncing in an enclosed space with ball-to-ball collisions.
Materials & Textures

Environment Map (HDRI)
materialsReal-time reflections using cube camera and procedural skybox.

Procedural Noise Texture
materialsShader-based fractal noise with multiple octaves and color modes.
Retro / Demoscene
Procedural Generation

Random Terrain
proceduralFractal noise-based terrain generation with vegetation and biomes.

Rain with Splashes
proceduralFast falling raindrops with wind and fog; reset on ground contact.

Fountain Emitter
proceduralUpward particle fountain with gravity and per-particle lifetime.

Animated Texture Scroll
proceduralScroll a checker texture across a cylinder by animating UV offsets.

Starfield Warp
proceduralInfinite starfield moving towards the camera with wraparound.

Realistic Animated Grass Field
proceduralImmersive grass field with advanced wind simulation, realistic blade shapes, natural color variation, and interactive camera controls.
Post-Processing

Bloom Glow
postfxHDR bloom post-processing effect with threshold and intensity controls.

Motion Blur
postfxVelocity-based blur trails created by blending current and previous frames with custom shader.

Depth of Field Focus
postfxBokeh depth of field pass with smooth auto-focus and click-to-focus controls across layered geometry.

Glitch VFX Playground
postfxNeon city scene routed through DigitalGlitch shader with burst, pulse, and wild distortion modes.

Film Grain Studio
postfxCinematic scene layered with animated film grain, scanlines, and color tint controlled through a custom shader.

Color Grading Studio
postfxInteractive slope-offset-power grading pipeline with exposure, saturation, and temperature controls.

Screen Space Reflections
postfxReal-time reflections using render targets to create realistic water surface reflections with interactive controls.
Audio Visualization

Music Visualizer
audioReal-time frequency spectrum visualization with interactive audio controls.

Audio Reactive Particles
audioDynamic particle system that responds to audio frequency analysis with explosions, color changes, and movement based on bass, mid, and treble ranges.
WebGL Techniques
Scientific & Educational
Data Visualization

3D Bar Chart
datavizInteractive 3D bar chart with multiple datasets, animations, and hover effects.

Interactive 3D Globe with Geographic Data Pins
datavizStunning Three.js 3D globe visualization with animated location pins marking major world cities. Features realistic globe rendering, latitude/longitude grid lines, auto-rotation, and customizable pins for geographic data visualization and interactive mapping.