Motion Tracking

group .........
3D and WebGL scenes
markdown ......
/lab/motion-tracking.md
human .........
/lab/motion-tracking

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

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.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * Compute-shader frame differencing

    A WGSL compute pass diffs successive grayscale frames at quarter resolution and accumulates a decaying trail, so movement leaves a fading mask instead of a single-frame flicker.

  • * ASCII from motion

    The trail value picks a glyph from a rendered ASCII atlas per screen cell, tints it, and composites it over the darkened video, with a bloom pass lifting the brightest strokes.