Engineering

Side project · Completed · 2025

RTHT-3D

A webcam-based interface that turns hand movements into real-time controls for Blender.

views of the public demo, as recorded in the repository README
343K
Source: views of the public demo, as recorded in the repository README
tracked from one standard webcam
2 hands
Source: tracked from one standard webcam
webcam tracking and Blender, linked over local UDP
2 processes
Source: webcam tracking and Blender, linked over local UDP

Problem

Can a standard webcam control a 3D scene, with no controller and no tracking hardware?

I designed and wrote the vision pipeline, the gesture recognition, the UDP protocol and the Blender side.

Python · OpenCV · MediaPipe · Blender · UDP

Critical point 1 of 2

Two hands and a webcam move objects in Blender.

MediaPipe finds 21 landmarks per hand in each webcam frame. I turn them into gestures such as pinch and fist. The demo video reached 343,000 views on Instagram.

RTHT-3D demo: two hands in front of a webcam move objects in Blender
The demo from the repository, as a silent loop.RTHT-3D on GitHub

Critical point 2 of 2

Each frame sends one short line over UDP.

Tracking and Blender are two Python processes. The tracker sends the gesture and the hand position as text on a local port. Blender reads it on a listener thread and applies the change on its main thread.

  1. 121 landmarksMediaPipe, one hand in one webcam frame
  2. 2pinchthe gesture the tracker names
  3. 3pinch,0.42,0.61one line of text on local UDP, port 5006
  4. 4Blender listenera thread reads it, the main thread applies it
The x and y values in the example line are illustrative. No latency was measured.hand_tracking.py

Result

The prototype is finished.

It supports one-hand and two-hand scene controls.