A threejs / WebGL / MediaPipe-powered interactive demo that allows you to control a 3D sphere using hand gestures.
Try the live demo: https://collidingscopes.github.io/threejs-handtracking-101/
- Real-time hand tracking using MediaPipe Hands
- Left hand gesture control: Pinch thumb and index finger to resize the 3D sphere
- Right hand interaction: Touch the sphere with your index finger to change its color
- Responsive design that works on desktop and mobile browsers
- Visual feedback with color-coded hand tracking
- Modern web browser with WebGL support
- Camera access
- No additional software or downloads needed
- Three.js for 3D rendering
- MediaPipe for hand tracking and gesture recognition
- HTML5 Canvas for visual feedback
- JavaScript for real-time interaction
# Clone this repository
git clone https://github.com/collidingScopes/threejs-handtracking-101
# Navigate to the project directory
cd threejs-handtracking-101
# Serve with your preferred method (example using Python)
python -m http.server
Then navigate to http://localhost:8000
in your browser.
MIT License
- Three.js - https://threejs.org/
- MediaPipe - https://mediapipe.dev/
Check out other free and open-source projects by the same developer:
- Particular Drift - Turn photos into flowing particle animations
- Liquid Logo - Transform logos and icons into liquid metal animations
- Video-to-ASCII - Convert videos into ASCII pixel art
- Shape Shimmer - Turn photos into funky wave animations
- Colliding Scopes - Turn photos into kaleidoscope animations
- Manual Brick Breaker - Play brick breaker by waving your hands around
- Instagram: @stereo.drift
- Twitter/X: @measure_plan
- Email: [email protected]
- GitHub: collidingScopes
If you found this tool useful, feel free to buy me a coffee.
My name is Alan, and I enjoy building open source software for art, animation, games, and more. This would be much appreciated during late-night coding sessions!