├── .github
└── FUNDING.yml
├── README.md
├── demo.png
├── index.html
├── main.js
├── recyclebin.png
└── styles.css
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [collidingScopes]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12 | polar: # Replace with a single Polar username
13 | buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14 | thanks_dev: # Replace with a single thanks.dev username
15 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 3D Hand Tracking Demo [Shape Creator]
2 |
3 | A threejs / WebGL / MediaPipe-powered interactive demo that allows you to control create and move 3D shapes using hand gestures in real-time.
4 |
5 |
6 |
7 | ## Demo
8 |
9 | Try the live demo: [https://collidingscopes.github.io/shape-creator-tutorial/](https://collidingscopes.github.io/shape-creator-tutorial/)
10 |
11 | ## Requirements
12 |
13 | - Modern web browser with WebGL support
14 | - Camera access
15 |
16 | ## Technologies
17 |
18 | - **Three.js** for 3D rendering
19 | - **MediaPipe** for hand tracking and gesture recognition
20 | - **HTML5 Canvas** for visual feedback
21 | - **JavaScript** for real-time interaction
22 |
23 | ## Setup for Development
24 |
25 | ```bash
26 | # Clone this repository
27 | git clone https://github.com/collidingScopes/shape-creator-tutorial
28 |
29 | # Navigate to the project directory
30 | cd shape-creator-tutorial
31 | # Serve with your preferred method (example using Python)
32 | python -m http.server
33 | ```
34 |
35 | Then navigate to `http://localhost:8000` in your browser.
36 |
37 | ## License
38 |
39 | MIT License
40 |
41 | ## Credits
42 |
43 | - Three.js - https://threejs.org/
44 | - MediaPipe - https://mediapipe.dev/
45 |
46 | ## Related Projects
47 |
48 | You might also like some of my other open source projects:
49 |
50 | - [Threejs hand tracking tutorial](https://collidingScopes.github.io/threejs-handtracking-101) - Basic hand tracking setup with threejs and MediaPipe computer vision
51 | - [Particular Drift](https://collidingScopes.github.io/particular-drift) - Turn photos into flowing particle animations
52 | - [Liquid Logo](https://collidingScopes.github.io/liquid-logo) - Transform logos and icons into liquid metal animations
53 | - [Video-to-ASCII](https://collidingScopes.github.io/ascii) - Convert videos into ASCII pixel art
54 |
55 | ## Contact
56 |
57 | - Instagram: [@stereo.drift](https://www.instagram.com/stereo.drift/)
58 | - Twitter/X: [@measure_plan](https://x.com/measure_plan)
59 | - Email: [stereodriftvisuals@gmail.com](mailto:stereodriftvisuals@gmail.com)
60 | - GitHub: [collidingScopes](https://github.com/collidingScopes)
61 |
62 | ## Donations
63 |
64 | If you found this tool useful, feel free to buy me a coffee.
65 |
66 | My name is Alan, and I enjoy building open source software for computer vision, games, and more. This would be much appreciated during late-night coding sessions!
67 |
68 | [](https://www.buymeacoffee.com/stereoDrift)
--------------------------------------------------------------------------------
/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/collidingScopes/shape-creator-tutorial/eb3b1be41a72815a6dae5ce6b9168333f7f8d503/demo.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
36 | Bring hands close and pinch to create a shape
37 | > Move hands apart to make the shape larger
38 | Hover over a shape / pinch to move it
39 | Move a shape into the recycle bin to delete it
40 |