Sulat.com / Writing on AISaturday, December 5, 2026
Enter →
Developer Tools/5 December 2026

How Rex’s launch video was made

Alasdair Monk explained how Rex's launch video was built: an HTML twin of the app, stills on a virtual clock and a custom 3D studio. I rebuilt each step at small scale and measured it.

Glossy 3D Rex dinosaur icon beside a small film camera on a dolly track, facing a tilted, softly blurred terminal window
Illustration: Sulat, featuring the Rex logo

At a glance

  • Alasdair Monk of Superlogical explained how the Rex launch video was made, and Mitchell Hashimoto shared it.
  • An agent built an HTML and CSS twin of the Mac app overnight, checked by pixel diff, then stills of each frame were projected into 3D.
  • Monk's custom studio renders at 4K and 24 frames a second with a 256-sample depth of field.
  • In my rebuild, a twin matched a real terminal to within 0.16% of pixels.
  • Frames only repeated across runs when Playwright's clock was paused before the page loaded: 72 of 72, against 49 to 66 with it left running.
  • I couldn't run Rex for macOS or Monk's studio.

Alasdair Monk, a designer on Superlogical’s founding team, has explained how the Rex launch video and the UI videos on the Rex site were made. Mitchell Hashimoto, who started the company, quoted the thread and wrote:

This is a prime example of a true professional augmented with AI. Well worth a read. I can’t tell you how many people asked me for “the prompt” to create our videos yesterday as if… there wasn’t much much much more skill involved.

Mitchell Hashimoto, on X

Rex opened to everyone the day before (I covered that here). Monk’s thread answers the people who asked how the launch video was made, and the answer is a build pipeline with several stages. I couldn’t run his studio or the Mac app, so I rebuilt each step at small scale on a Linux machine and measured it.

Alasdair Monk’s thread, with four screenshots from his studio app.

What Monk says he did

Monk describes three steps.

  1. An agent spent a night building a copy of the Rex macOS app in HTML and CSS, which he calls a twin. He says the output was almost perfect because the agent kept checking the pixel difference between the native app and the twin.
  2. He wanted depth of field and perspective. He says an animated HTML scene can’t go straight into three.js, so he takes a still of every 2D frame, projects the stills into 3D space and renders a video from them against a virtual clock.
  3. For the launch video he built a small 3D studio app in the style of Blender, so he could control the storyboard, animations and shaders and see the effects in real time without re-rendering. He says the whole video came together in an hour or so of tweaking.

The idea of the ticking cursor has been in my head since we worked on Echo earlier this year, but I never had any use for it. The Rex launch finally presented an opportunity.

Alasdair Monk, on X
Four steps: Rex for macOS, HTML and CSS twin, a still of every frame, then a 3D scene and video
Monk’s pipeline in four steps. Illustration: Sulat.

Inside the studio

Monk posted four of nine screenshots from the studio. The screenshots are headed “rexdr”, “The Rex trailer, behind the scenes” and “three.js, 3840 × 2160, 24 fps”.

  • The stage. A film camera with lens and focus settings, a key light that’s a Gaussian pool in the shader, and the window, listed as the Rex twin at 1440 by 900 points and built with Svelte and xterm.js. A timeline has tracks for ticks, cursor, dolly and score. The panel says a function called shotAt(t) drives the film, with no keyframes anywhere in it.
  • The cursor in macro. Display pixels at two per point under a red, green and blue subpixel mask in the fragment shader. The cursor is one pixel wide, on for 500 ms and off for 500 ms.
  • The window’s shader. A node graph: the twin’s frame, display pixels, the subpixel mask, a pool of light, a fresnel term and a glass node feeding the output, with depth carried in alpha for the blur.
  • The passes. The scene in linear light, then depth of field from a disc gathered on a golden-angle spiral with 256 taps, then bloom per channel at a quarter size and blurred three times, then a final pass for exposure, shoulder, vignette, sRGB and grain.
Hand-drawn list: 4K at 24 frames a second, cursor 500 ms on and off, 256 samples for every blur
Settings from Monk’s studio screenshots. Illustration: Sulat.

Why a copy of the app

A recording of a native window has one resolution. A copy built from HTML and CSS can be drawn at any size and moved around in 3D, which is Monk’s stated reason: it scales without limit and is easy to animate for the site’s stories. The pixel-diff check keeps the copy accurate.

The other pieces are available off the shelf. Playwright’s clock API can pause, step and fast-forward a page’s timers, and three.js ships a depth-of-field pass called BokehPass. Remotion, a framework for making videos with code, publishes agent skills for coding agents. Monk names three.js and no other tool, and he doesn’t say which agent built the twin.

What I ran

Rex for macOS needs a Mac, and Monk’s thread links no repository for the twin or the studio, so I didn’t run either, or an agent building a twin. I rebuilt the three steps at small scale instead. The machine was a 4 vCPU Intel Xeon at 2.30 GHz with 15 GiB of memory and a 252 GB disk, running Ubuntu 24.04.5 on kernel 6.18.44. It has no GPU, so WebGL ran in software through SwiftShader. Versions: Playwright 1.63.0 with Chromium 158, three.js r170, pixelmatch 6.0.0 and FFmpeg 6.1.1.

A twin, checked by pixel diff

The reference was a real xterm window in a virtual display: eight lines of terminal output in a 552 by 300 pixel window. The twin was an HTML pre element in DejaVu Sans Mono. Pixelmatch compared the two screenshots at a 0.1 threshold. My first copy differed on 2.29% of pixels. Setting an 18.67 px font and 23 px rows made it 2.43%. Setting the letter spacing so every character advanced 12 px dropped it to 0.41%. A sweep of 25 font-size and offset combinations found 0.16%, which is 264 pixels on the edges of a few glyphs.

Three stacked panels: a real xterm window, its HTML twin, and a diff image with only a few glyph edges highlighted
The real terminal, my HTML twin and the 264 pixels that still differ. Annotated screenshot from my run.
Bar chart: 2.29%, 2.43%, 0.41% then 0.16% of pixels differ between an HTML twin and a real terminal
The share of pixels that differ fell to 0.16% in my run. Illustration: Sulat.

That’s the loop Monk describes, run by a script instead of an agent. The second change made the score worse, so only the number said which way to go.

Frames on a virtual clock

Next I made the twin move: it types a command one character at a time while the cursor blinks every 500 ms. I captured 72 frames at 24 frames a second, stepping Playwright’s clock by 1000/24 ms between screenshots, and compared a SHA-256 hash of every frame across three runs.

Code
await page.clock.install({ time: 0 });
await page.clock.pauseAt(1);   // pause before the page loads
await page.goto(url);
for (let i = 0; i < 72; i++) {
  await page.screenshot({ path: `stills/f${String(i).padStart(4, '0')}.png` });
  await page.clock.runFor(1000 / 24);
}
How the clock ranIdentical frames between runs, of 72
Real time, waiting 42 ms between screenshots57 to 65
Fake clock installed and left running49 to 66
Fake clock paused before the page loads, then stepped72 in every pairing
Each row compares run A with B, A with C and B with C. Three runs per row.

Only the paused clock repeats. Installing the fake clock replaces the page’s timers, but the clock keeps running until it’s paused, so the page has to be paused before it loads and then stepped.

Left: running stopwatch crossed out, up to 65 of 72 frames match. Right: paused stopwatch ticked, 72 of 72 match
Frames that repeat across runs, from my test. Illustration: Sulat.

Into 3D with depth of field

Last, I loaded each still as a texture on a plane in three.js and moved a perspective camera from a tight oblique shot to a wide one, with the stock BokehPass pulling focus to follow the camera. Rendering the 72 frames at 1280 by 720 took 17 seconds in software, about 240 ms a frame. FFmpeg turned them into a three-second H.264 clip of 214 KB.

My render: the HTML twin on a plane in three.js, with perspective and depth of field.

The cursor blink, the perspective and the blur all work. The rest of Monk’s setup is missing from mine: the subpixel mask, the bloom, the light and grain, 4K output and the studio UI he scrubs the film in. My depth of field is three.js’s stock BokehPass, not his 256-tap disc.

The prompt question

Hashimoto’s point is that people asking for “the prompt” are missing the skill involved. Monk’s account has a copy of the app, a render pipeline and a studio with its own shader graph and camera. According to Monk, an agent built the twin overnight with a pixel-diff loop as the check, and the rest is his own design work.

More on Rex

Rex is now free and open to everyone, with no account (my piece on that). What Rex is, the deep dive and program resume cover the rest.