PRO

Motion Tracking

A WebGPU motion-detection effect: a looping video is frame-differenced in a compute shader to build a decaying trail of movement, then rendered as tinted ASCII glyphs over the darkened footage with a bloom pass on top.

Component
Install
npx shadcn@latest add https://ui.aryank.space/r/motion-tracking.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
videoSrcstringriver footage (rehost on Blob)CORS-enabled looping video source.
color"blue" | "red" | "green""blue"Tint applied to the ASCII glyphs.
debugbooleanfalseShow the raw grayscale motion mask instead of the effect.
videoBrightnessnumber0.55Brightness of the footage behind the glyphs, 0 (black) to 1 (full).
Customize
videoSrcasset-url

CORS-enabled looping video the motion is detected from.

color / debugtext

Glyph tint (blue, red, green) and the raw motion-mask toggle.

Dependencies
three