Talk, Scroll or Fly: Three Ways into One Portfolio
My site now has three ways in: a conversation, the ordinary scroll, and a game where every project sits behind a pane of glass. How the third one works, from the grid's ripple to the shattering glass.
- creative coding
- game design
- interaction design
- portfolio
- three.js
- webgl
Most portfolios ask the visitor to do the work. You land, you scroll, and you decide for yourself whether anything on the page is relevant to you. For a while now the front of this site has tried something different: it's a conversation, grounded only in my published record, that works out relevance with you.
That suits people who arrive with a question. It doesn't suit everyone. Some people want to scan, which is what menus and long pages are good at. And some people, given the choice, would rather play. So the site now has three routes into the same record, and none of them is the "real" one. Talk, scroll or fly: you end up at the same work.
This piece walks through all three, then spends most of its time on the newest, the Playground, because that's where the interesting problems were.
Talk
The front page opens on a question: what's on your mind? Ask it something and it answers from my writing and work, placing the relevant pieces into the conversation as cards. The model can only choose from closed lists, and every card is built from the record itself, so nothing it invents can be rendered. If the conversation gets somewhere useful, it can carry on into a booked call, or hand the whole record to your own AI so you can ask it whether I'm a fit.
Scroll
The conventional route is still there, in plain sight. Scroll down from the conversation and the front page hands over to the work: agency projects through Tonic, pitch prototypes, and the products I build through Merlin Studio. The Projects and Thinking menus open the whole record from any page, and every project and essay has a page of its own. On a phone the same menus live in a bar at the bottom that tucks itself away while you read.
Play
Then there's the button in the header with a small plane looping through it. Press it and the page folds into a world built from its own background. Every project, every essay and every way out of the site (contact, Merlin Studio, Ask your AI, the two indexes) becomes a ring on a map, grouped into districts. Each ring is sealed with glass. Shoot the glass out, fly through, and the ring opens a card for that piece of work, with a link to its full page.
There are 49 rings in all, and the game keeps score. Breaking a pane, flying through a ring and clearing a whole district all earn points. Flying into glass that's still whole is a crash: you lose a life, bounce back and go again. Lives are infinite, because the point is to get people to the work.
Starting from the page you're on
The first decision was that the world shouldn't feel like a different website. The site has always had a living grid behind every page: a three.js plane of faint lines that ripples when you click, scroll or move. It sits square to a fixed camera with a 38° field of view, framed so that 620 units of grid fill the height of the screen.
The Playground starts from exactly that framing. Its camera begins straight above the ground, at the height that frames the same 620 units, so the first frame of the world is the background you were already looking at:
const START_FOV = 38; // the page grid's camera
const START_H = 310 / Math.tan((START_FOV * Math.PI) / 360); // frames 620 units
From there the camera tips forward over two seconds and drops in behind a small craft, and the grid becomes a floor running to the horizon. Leaving runs the same move backwards and lands over the nearest grid crossing, so when the world fades out, the page's grid lines up underneath it.
Where you start depends on where you were. Open it from an essay and you start facing that essay's ring. From Thinking you face the newest essays, and from a project page, that project. The 404 page uses it too: an address that doesn't exist takes off into the world with a single line, "You seem to have lost your way", and every real page out there to fly to.
The ripple, reused
The ground is the same grid with the same ripple. On the page, a click sends a damped wave out across the plane; in the world, the wave lifts the ground. The maths didn't change, which is a large part of why the two feel like one thing:
float d = distance(wp.xz, uRipOrigin[i]);
float ring = d - age * 560.0; // the front travels outward
float env = exp(-(ring * ring) / 45000.0); // a packet around the front
float decay = exp(-age * 1.7); // fading over its life
lift += uRipStrength[i] * env * decay * cos(ring * 0.045);
The craft trails a wake through it, stronger the lower and faster you fly, so skimming the floor throws up proper waves. Breaking glass sends one out from under the ring, and so does a crash. The grid lines are drawn in the fragment shader from world position, with a heavier line every five cells, and lines thinner than a pixel at grazing angles fade away rather than shimmer.
Glass, shots and crashes
Each pane takes three hits. The first two don't break it: the glass flexes from the point of impact, a red wave runs out across it, and a stain deepens with each hit, so you can see how close it is to giving. The pane is a subdivided disc held at the rim, with the wave in its vertex shader:
float d = distance(p.xy, uHit);
float front = uHitT * 150.0;
float env = exp(-pow(d - front, 2.0) / 260.0) * exp(-uHitT * 2.0);
float dent = -exp(-d * d / 120.0) * exp(-uHitT * 6.0) * 6.0;
lift = sin((d - front) * 0.32) * env * 8.0 + dent;
lift *= smoothstep(R, R - 14.0, length(p.xy)); // pinned at the rim
The third hit shatters it. The pane is cut into nine uneven wedges, each split again into three triangles, and every shard flies outward with the shot's momentum, spins, falls under gravity and fades.
Shots and the craft are tested the same way: did this step of travel cross the plane of the ring, inside the hoop, and from which side? Rings turn to face the craft as it approaches, so the test only has to care about the front.
const d0 = rel.copy(a).sub(r.pos).dot(r.normal);
const d1 = rel.copy(b).sub(r.pos).dot(r.normal);
if (d0 > 0 === d1 > 0) return 0; // didn't cross the face
const t = d0 / (d0 - d1);
rel.copy(a).lerp(b, t).sub(r.pos);
return rel.length() < reach ? (d0 > 0 ? 1 : -1) : 0;
There's a little aim assist. A whole pane that's ahead and within about 13° draws the shot towards its centre, and the crosshair shows the same choice before you fire: it closes onto the pane, turns and goes red when it has one in its sights.
One lesson from testing: the first version flew forward from the moment the world opened. Someone who hadn't touched anything yet flew straight into the first pane, bounced, and flew into it again, losing life after life without doing a thing. Now the craft hovers until you first move, press or touch, and holds again after each crash until you act.
The cards
Fly through a ring and it opens a card: graphite, with a foil layer that catches the light as it tilts towards the pointer, drawn by a single WebGL2 fragment shader on one quad. The engraving is the site's own vocabulary: the blueprint grid, a set of survey contours and the registration crosshair from the rulers, each catching a diffraction rainbow as the angle changes. Every project seeds the pattern differently, so no two cards are engraved alike.
The text sits above the shader as ordinary HTML, so it stays sharp, selectable and readable by a screen reader. Left alone, the light drifts slowly by itself, so the foil still moves on a phone between touches.
Controls for a desk and a phone
Flight is forward by default, so steering and firing are the whole game. On a desktop the mouse is a stick that never needs holding: how far it sits from the centre of the screen is how hard you turn or climb, with a small dead zone so a resting hand flies straight. Click to fire, hold to keep firing, and Shift boosts.
On a phone you drag anywhere to steer, and a stick appears under your thumb. A tap fires once; a finger held still fires until it lifts. So a second finger, put down while the first is steering, fires continuously, and steering and shooting can happen together. Boost is a button you hold.
Credits
Two pieces of other people's work started this. Google's Antigravity tutorial on building a 3D browser world got me thinking about flying through a site, and the holographic card example on vgpu.sh shaped the foil on the cards. Both are worth a look. Everything here runs on three.js inside the site's existing Next.js build, and I made it with Claude Code, in short loops of change, look and adjust.
You can try it from the Play button at the top of any page, or go straight in at leantonio.me/?play.
