All recipes

R30 · Grid Studio · free Instagram tools in the browser

Raymarched glass field

A showreel cut for a grid maker drawn by one fragment shader: one glass tile bursts into an endless field by domain repetition, every tile refracts the photo into colour, a wave rolls out on every beat, ten hard cuts turn the field into ten tools, a kaleidoscope folds it into one tile, and nine tiles lock into the logo.

32.0s · 1920×1080 · 30fps

A third film for Grid Studio, cut like a showreel and made of one raymarched shader. One glass tile spins out of black with the coastline photo split into colour through it and bursts into nine; the camera ramps back over an endless field of glass tiles with a wave on every beat; a dolly zoom runs down a profile where nine posts drop in order; ten hard cuts turn the same field into ten of the tools; a kaleidoscope folds it into one tile in a browser, where three words fly at the glass and shatter; and nine tiles lock into the mark.

An original score composed in code at 128 bpm, from D minor to F major: a sub hit and breaking glass as the first tile bursts into nine, a glass ting on every wave across the field, a riser down the dolly zoom, a block and a pluck for every post, a sub and a climbing ting on each of the ten tool cuts, a whoosh, a sub and glass for each word that shatters, and an F major chord and a bell on the mark. No spoken dialogue. On-screen text carries the story.

scene breakdown · select a scene to play

The prompt

The brief I gave Claude Code, with the HyperFrames skills installed, to start this film. Approvals and fixes came after, but this is where it began.

prompt · verbatim
Make a 32-second 1920x1080 film in HyperFrames for Grid Studio, twelve free Instagram tools that run in the
browser. Cut it like a motion designer's showreel. Everything in the picture is one WebGL2 fragment shader that
raymarches signed distance fields; heavy kinetic type is HTML over the canvas. Ink #181512, paper #faf8f4, terracotta
#c24d21 and #ff8a52 for the type. Archivo at its heaviest, Instrument Serif and JetBrains Mono. Use the app's own demo
photo of a coastline.
The shader: one glass tile repeated across space by domain repetition, the nearest four cells checked per step, a
window mask that decides which cells exist; each tile refracts three rays, one per colour, and reads the photo through
its base, so the picture splits into colour at every bevel.
Open: one tile spins out of black with the photo inside it. "One image." It bursts into nine.
Field: the camera ramps back over an endless field to the horizon; a wave rolls out on every beat and each tile tilts
to its slope. "Nine posts." "Zero seams."
Feed: a dolly zoom down a profile column, a hard cut to straight above, and nine tiles drop in posting order, post 1
bottom-right in terracotta. "Posted in order." "Seamless on your profile."
Tools: ten hard cuts, one every beat and a half, each a new shape of the same field with its name: Grid Maker,
Carousel, Covers, Palette, Resize, QR Code, Icon Maker, Captions, Hashtags, Bio. Then "Twelve free tools."
Browser: a kaleidoscope folds the field into a mandala that collapses into one tile in a browser window; UPLOAD,
ACCOUNT and WATERMARK fly at the glass and shatter on it.
Title: nine tiles lock into the mark at exactly the official file's size, then the official mark, flat, never redrawn
or recoloured, then the line and the URL. Score: compose it in code from the same table, 128 bpm, D minor to F major.

Remix it

Swap the parts in braces and paste it in. Some starting points:

  • A print shop: one glass print bursts into an endless wall of prints, waves roll across it, and ten cuts show ten paper stocks.
  • A photo editor: one frame refracted into colour, multiplied to the horizon, and each cut a different edit applied to the whole field.
  • A music app: one album cover becomes an endless field that pulses on the beat, then folds into a kaleidoscope and into the logo.
  • A font foundry: one glass letter repeated into a field, every cut a different weight, and the letters lock into the wordmark.
prompt · template
Make a {duration}-second {width}x{height} film in HyperFrames for {subject}, cut like a showreel, as one
raymarched fragment shader with heavy kinetic type over it, in {palette}. One {the_object} of glass spins out of black
with {the_picture} split into colour through it and bursts into {the_count}; the camera ramps back over an endless
field of them with a wave on every beat; a dolly zoom runs down {the_destination} where they land in order; {n} hard
cuts turn the field into {the_features}; a kaleidoscope folds it into one inside {the_container}, where {the_objections}
fly at the glass and shatter; and the pieces lock into the logo at its official size. Then the flat logo with {line}
and {url}. One baked table drives the beats, the cuts, the shapes and a score composed in code.

Ingredients

stack
HyperFramesWebGL2GLSLGSAPPython (table, score)
length
32 s · 1920×1080 · 30 fps, with a 9:16 cut from the same shader
renderer
One WebGL2 fragment shader on a full-screen triangle, repainted on every seek, with fog, a floor glow and ACES tone mapping
field
One cell repeated across space: each march step checks the four nearest cells, and a soft square window decides which cells exist, from one tile to nine to the horizon
glass
Three refracted rays per tile, one each for red, green and blue, read the photo where they land, mixed with the reflected studio by Fresnel
waves
A height per cell from waves launched on the beat, with each tile tilted to the slope under it
shapes
Per-cell blends between a box, a sphere, crossed bars, lines, a squircle and QR bits, one weight each, so a hard cut is a new set of weights
kaleidoscope
A polar fold of the field's plane into mirrored wedges, opened and closed by one uniform
type
Archivo at 850 and 900 slammed in on the beat, Instrument Serif for the line, JetBrains Mono for the labels; the flying words are HTML scaled toward the camera and broken into pieces on impact
timing
The beat grid, the waves, the cuts, the posts, the tool shapes, the words and the title in one baked table on a 128 bpm grid
sound
128 bpm, D minor to F major: a sub and breaking glass for the burst, a ting per wave, a riser down the dolly zoom, a block per post, a climbing hit per tool cut, glass for each shattered word

how it's built

  1. 01 · 00:01

    Split into colour

    The first tile spins out of black; its three refracted rays land on slightly different parts of the photo, so the picture fringes red and blue at every bevel.

  2. 02 · 00:03

    One into nine

    The spinning tile is really nine tiles touching: on the beat they shrink apart and burst, each lifted and turned by its own hash, before settling into the grid.

  3. 03 · 00:05

    An endless field

    The camera ramps back as the window opens to the horizon; a wave launches on each beat and every tile rises and tilts to the slope under it.

  4. 04 · 00:08

    A dolly zoom

    The camera moves toward an empty slot in a profile column while its lens changes with the distance, so the slot stays the same size as the field around it stretches; then a hard cut lands straight above for the posts.

  5. 05 · 00:18

    Ten tools, ten cuts

    Each cut sets a new blend of shapes for every cell and a new camera: spheres for the covers, tiles in the photo's colours for the palette, a squash for the resize, bits for the QR code, lines for the captions.

  6. 06 · 00:23

    A kaleidoscope

    The field's plane is folded into mirrored wedges around the centre, turning it into a mandala, which then collapses into one tile in a browser window.

  7. 07 · 00:24

    Words that shatter

    UPLOAD, ACCOUNT and WATERMARK fly at the glass on the beat, slowing as they arrive, and break into pieces that scatter on impact.

  8. 08 · 00:29

    The mark, matched

    The tile multiplies into nine, which lock into the mark at exactly the official file's size before the official mark takes over, flat.

gotchas

  • With domain repetition, check the neighbouring cells as well as your own: a tile that rises or tilts pokes into the next cell, and checking one cell alone cuts it off.
  • Three refraction rays triple the texture reads, not the march: march once, then refract three times from the hit point.
  • A difference blend on type over a busy shader reads as noise: plain white with a soft shadow holds up over every frame.
  • Measure the flying words' widths once when the film is built: reading offsetWidth inside the paint function forces a layout on every frame.

source

Take the whole project

MIT for the code, composition and score. The Grid Studio mark and name are not included in the licence. The demo photo is by Stefan Kunze (Unsplash License) and is not in the repo: add your own image.