Gesture-Controlled Particle System: A Three.js + MediaPipe Tutorial
Build an interactive gesture-controlled 3D particle system using Three.js and MediaPipe Hands. Wave your hand and watch thousands of particles snap into shapes in mid-air.

Wave Your Hand. Watch Particles Obey.
Imagine waving your hand and watching thousands of glowing particles snap into a sphere, cube, or logo in mid-air. That is what you will build in this tutorial — a gesture-controlled 3D particle system you can control with your fingers, using Google AI Studio as a coding copilot.
No installs. No frameworks. Just one HTML file and a browser.
What You Will Build
A browser-based application that:
The Tech Stack
Everything runs from CDN — no build step required:
Under the Hood
The hand tracking is powered by Google's MediaPipe Hands model running entirely in the browser. No data leaves your machine. The model detects 21 hand landmarks per frame and we count extended fingers to determine which gesture the user is making.
The 3D graphics are pure Three.js and WebGL. Each particle is a point in a BufferGeometry, and we lerp (linearly interpolate) positions between formations to create smooth shape transitions when gestures change.
How to Run It
index.html in a folder (e.g., gesture-particles/)index.html to open it in Chrome or any modern browserThat is it. No server, no build process, no dependencies to install.
Gesture Mappings
| Fingers | Formation | |---------|-----------| | 0 (fist) | Random scatter | | 1 | Rotating sphere | | 2 | Cube | | 3 | Helix / spiral | | 4 | Torus | | 5 (open hand) | Logo / custom shape |
Customization
The system is designed to be modified. Some ideas:
You can use Google AI Studio or any AI coding assistant to rapidly iterate on customizations — paste the HTML, describe what you want changed, and get updated code back.
Why This Matters
Gesture-controlled interfaces are moving from research labs to production applications. The combination of browser-based hand tracking (MediaPipe) and GPU-accelerated 3D rendering (Three.js/WebGL) makes it possible to build experiences that previously required specialized hardware and native applications.
For product demos, trade show installations, interactive presentations, and educational tools, gesture-controlled particle systems demonstrate what is possible when AI meets creative technology — directly in the browser, with zero friction.
Explore our AI solutions or visit our GitHub to see the code in action.