Skip to content

SAGAR-TAMANG/ultron-by-sagar-builds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ULTRON Orb UI

An Iron Man–inspired holographic orb built with Next.js, Three.js, and MediaPipe hand tracking — control it with your bare hands through your webcam.

🔮 This is the open-source interface of ULTRON — my AI that talks in real time and controls Android devices by itself. Read the write-up or the X post

📱 Watch the demo on Instagram

ULTRON orb UI

demo.mp4

Getting started

npm install
npm run dev

Open http://localhost:3000.

Controls

Mouse / touch

Input Action
Drag Spin the orb
Scroll / pinch Zoom in & out

Hand gestures (webcam)

Click GESTURES OFF (or press G) and allow camera access, then:

Gesture Action
Pinch (thumb + index) one hand and move it Spin the orb
Pinch with both hands, spread apart / bring together Zoom in / out

Keyboard

Key Action
G Toggle hand gestures
R Reset the view
+ / Zoom in / out

How it works

  • lib/orbScene.ts — the Three.js scene: layered wireframe shells, a spiral inner core, floating code-text sprites, orbiting debris, dust particles, scan rings, and a bloom + chromatic-aberration post-processing stack.
  • lib/handTracker.ts — MediaPipe HandLandmarker running on the webcam feed. Pinch detection with hysteresis: one pinched hand spins the orb, two pinched hands zoom by spreading apart or together.
  • components/JarvisOrb.tsx — the HUD and glue between the scene, the tracker, and your inputs.

License

MIT

About

Ultron.

Resources

License

Stars

270 stars

Watchers

8 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors