# Motion Tracking

**Group:** 3D and WebGL scenes  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/motion-tracking.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/motion-tracking.mp4)  
**Source:** [https://ui.aryank.space/components/motion-tracking](https://ui.aryank.space/components/motion-tracking)  
**Human:** https://blankinterfaces.com/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.

---

[View all content](https://blankinterfaces.com/sitemap.md)
