A real-time, hand-controlled 3D particle physics engine built with Three.js and MediaPipe. Architected entirely by Google Gemini 3.0 via prompt engineering in under 59.3 seconds.
๐ AI Hand-Controlled Particle System
"From blank canvas to a physics-based, hand-tracking engine in exactly 59.3 seconds."
๐ Overview
This project is a real-time, interactive 3D particle system controlled entirely by hand gestures. It was architected and coded using Google's Gemini 3.0 inside AI Studio via advanced prompt engineering.The application utilizes MediaPipe for skeletal hand tracking and Three.js for high-performance WebGL rendering, mapping 2D hand coordinates to a 3D volumetric space.
๐ด Live Demo
๐ฎ How to Interact
Ensure your webcam is enabled. The system detects your hand landmarks to drive the physics engine.| Gesture | Action | Visual Effect | | :--- | :--- | :--- | | ๐ Open Hand | Navigation | Rotate the particle universe and position the center. | | ๐ Pinch (Thumb + Index) | Morph Shape | Transforms particles into complex geometries (Sphere โ Heart โ Saturn โ Flower โ Torus). | | โ Closed Fist | Implode | Triggers a physics collapse (implosion), shrinking the universe. |
๐ ๏ธ Technical Stack
- AI Architect: Google Gemini 3.0 (via Google AI Studio)
- Rendering Engine: Three.js (WebGL)
- Computer Vision: MediaPipe Hands (Client-side ML)
- Language: JavaScript (ES6+), HTML5
๐ง The "Gemini 3.0" Workflow
This code was not manually written line-by-line. It was generated using a single, comprehensive prompt structure that defined:- Context: "Expert Creative Technologist"
- Constraints: Single file, CDN links only, no build steps.
- Logic: Mapping specific MediaPipe landmarks (Tips 4 & 8) to Three.js vector attributes.
- Math: Parametric equations for the "Heart" and "Rose Curve" shapes.
๐ฆ Installation & Usage
No installation required! This is a vanilla JS project.- Clone the repo:
git clone https://github.com/YOUR_USERNAME/gemini-particle-system.git
- Open
index.htmlin your browser.
๐ License
MIT License. Feel free to use this as a base for your own AI experiments.๐ค Author
Co-Founder โ Unicodrex | Unity Game Developer