Oliver Wakeford

Held to a lower bar than /projects.

Everything on /projects is finished and stands on its own. This page is for things that are just interesting: small, self-contained, played with in the browser rather than written up. Three of those live here so far, all working, all built for this site.

Breeding terrain

A small game that breeds terrain from the ones you pick, using the method from my bachelor's thesis. The write-up is on the terrain generation project page.

Loading

What's going on

Each course is a list of terrain steps, like hills, ridges and erosion, each with its own settings. Breed mixes the ones you picked: crossover joins the start of one parent's steps to the end of another's, and mutation nudges a setting or adds or removes a step. There's no formula for a good course, so you're the fitness function. Your best lap shows on each tile, so you can breed from the fast ones.

This is the method from my bachelor's thesis at Charles University, graded 1 (Excellent). My Unity terrain tool had a lot of parameters and tuning them by hand was slow, so I added an interactive genetic algorithm, with eight terrains a generation, a crossover rate of 0.7 and a mutation rate of 0.1, same as here. My supervisor, Petr Šimůnek, extended it into a full paper at the IEEE Conference on Games, and I'm second author. The start, finish and checkpoints are fixed, like the road in the thesis. I added the racing so there's something to breed for, and because I think it's cool.

Ordered dithering

A Bayer-matrix ordered dither, run in real time over three renders from the terrain generator. Pick an image, a matrix size, a threshold and a palette, and the right-hand canvas redraws on every change. It’s a browser reimplementation of a decades-old printing technique, run over images that are actually mine.

Loading

Type specimen

This site is set in Funnel Display and Funnel Sans. Below, the home page’s headline and opening paragraph are set in Funnel and in two alternates, Bricolage Grotesque and Familjen Grotesk, so they can be compared side by side. All of them are variable fonts, and each slider drives the headline’s weight directly. The home page’s headline animates that same weight axis on load: it only tweens smoothly because it’s registered as a CSS @property in globals.css. Without that registration, a browser treats a custom property as an unanimatable string and jumps straight between the start and end values instead of moving through them.

Loading

Back to things I've built, or home.