All projects

isotrail: my hikes as little pixel worlds

How I turned GPX files from my hikes into small pixel dioramas

Code on GitHub15 November 202624 minute read
isotrail's diorama of the Derwent Edge hike: a block of brown moorland, green fields and blue reservoirs, with the route in red

I record all of my hikes on AllTrails (you can find me there), and you should too, because it’s a really good app! When I get home after a hike, AllTrails gives me a green line on a map, a distance, an elevation gain and a little chart about the walk. They’re all very useful features to have, but they’re a little… underwhelming. When I scroll back through a year of hikes, they all just look like a squiggle on a beige map. I started thinking about how I could preserve all my adventures with more character.

The Derwent Edge hike in AllTrails: the route as a green line round Ladybower and Derwent reservoirs on a pale map, beside a panel with photos, the distance, gain and times, and a height chart

Derwent Edge as AllTrails shows it.

So I built isotrail! You download the GPX file from any tracking app and it gives you back this:

isotrail's picture of the Derwent Edge hike: a block of hills and reservoirs with the route in red under a cloudy sky, the hike's name and date above it, and its distance, gain, time and high point below

The picture isotrail makes of the hike.

That’s Derwent Edge in the Peak District, a 20.6 km loop I walked in April around the Ladybower and Derwent reservoirs with a friend. The different colours you see are the actual terrain on the hills, such as the woods and moorland. The sky and light are what the weather was doing that day. Finally, the red line is the route I walked.

Although this was very cool to look at when I was working on this project, having the route preserved as a still image of a 3D thing felt like a bit of a waste, so I also made it interactive. Drag it around, hold Ctrl and scroll to zoom, press play and watch the route draw itself:

Diorama of the Ladybower and Derwent Dams through Derwent Edge route

The 3D view isn't available here.

The rest of this post is about how a file of GPS points turns into that little block of land. A good chunk of it is about where the data comes from, as almost everything you see in the diorama is downloaded from free services other people very generously run and make available.

The idea

I really like the look of atmospheric pixel games such as Stardew Valley, A Short Hike and Dead Cells, but I wanted to take their art style into three dimensions. I wanted small, isometric worlds with chunky pixels, and lighting that’s much prettier than it has any right to be at that size.

A Short Hike: a small bird in a field of yellow flowers next to an old tractor, with autumn trees and a brick house, seen from aboveDead Cells: a fight on a stone bridge in front of a huge full moon, with red sword trails across the screen

A Short Hike by adamgryu and Dead Cells by Motion Twin.

My website (which you’re on right now) has a section for hiking, and I wanted every hike on it to look better than just a screenshot from an app. So pixel art plus hiking seemed like a good combination.

The project started off with “I want to draw the terrain and the route”. As the first dioramas came through, I started wanting to see the woods and lakes in the right places, then the sun in the right spot for the time I set off, then the weather, then the season. Somewhere along the way of adding more and more to the tool, my goal shifted away from a “better” way of displaying a hike, and towards preserving the experience of the hike exactly as it was on the day.

It was also my first time writing a whole tool in Rust from start to finish, and my first time writing anything for the GPU more demanding than a university assignment. Both of these will come up later.

isotrail works in two halves. The first gathers everything about a hike into a small file which holds the track, terrain, ground cover and weather. The second turns that file into a stylised 3D diorama.

What actually is a GPX file?

Most hiking apps can export a hike as GPX. It’s just an XML file, and the most interesting part looks like this (the start of the Derwent Edge file, with its times rounded):

<trk>
  <name><![CDATA[Ladybower and Derwent Dams through Derwent Edge]]></name>
  <src>AllTrails</src>
  <trkseg>
    <trkpt lat="53.36247" lon="-1.69866">
      <ele>191.76</ele>
      <time>2026-04-25T09:00:00Z</time>
    </trkpt>
    <trkpt lat="53.36253" lon="-1.69863">
      <ele>193.11</ele>
      <time>2026-04-25T09:00:06Z</time>
    </trkpt>
    ...
  </trkseg>
</trk>

Every recorded point has a latitude, a longitude and usually a height and time as well. A track is split into segments, which are created automatically when you pause and resume your activity. A day hike stores thousands of points (the Derwent Edge file has 5,308). That’s the quick overview of the GPX file format.

Then you open real files and find out how messy they are. My first experience of this was a hike whose export started with a couple of points dated to 1970, so isotrail decided I’d been walking for 56 years. Pretty impressive walking time. Because of this, here are a few things that isotrail now has to put up with:

  • Points stamped 1 January 1970, from a device whose clock wasn’t set. Anything before 1990 gets its time thrown away.
  • One point stamped decades away from the rest. If a time is more than 30 days from both its neighbours and from the middle of the hike, it goes.
  • Two glitched points, next to each other, both in the wrong year. They agree with each other, so the check above lets them through. Instead, the times are sorted, split wherever there’s a gap of more than 31 days, and the biggest group is kept.
  • Stray points that teleport a few kilometres away and back. A point goes when the legs to it and from it are both faster than 100 m/s. A single fast leg stays, as that’s usually a drive with the recording left on pause.
  • Times that run backwards, segments with a single point in them, and files with no heights or no times at all.

None of these are hard to handle once you know about them, but finding them was the real chore. They mostly showed up when the stats panel said something ridiculous, which then led to me digging through the XML file to find out why.

Mont Blanc… in the Peak District?

The more interesting problem is how to calculate the elevation gain of a hike. The obvious way to work it out is to add up every rise from one point to the next:

Graw=∑imax⁡(0, hi+1−hi)G_\text{raw} = \sum_i \max(0,\ h_{i+1} - h_i)

The problem with this approach is that GPS heights wobble by a few metres from one point to the next, even when you’re walking along a flat path. Every wobble up gets counted, and the wobbles down are ignored. Over thousands of points in a normal hike, this adds up to hundreds, possibly thousands, of metres of climbing that never happened. On my South to North walk across the Peak District, adding up every rise gives 7,086 m, well over the height of Mont Blanc (about 4,800 m). isotrail makes it 3,735 m.

This was solved in two steps. First, the heights are smoothed with a moving average, over a window measured in metres along the track instead of a number of points:

hˉi=1∣Wi∣∑j∈WihjWi={ j:∣sj−si∣≤50 m }\begin{gathered} \bar h_i = \frac{1}{|W_i|} \sum_{j \in W_i} h_j \[0.6em] W_i = \lbrace, j : |s_j - s_i| \le 50\ \text{m} ,\rbrace \end{gathered}

where sis_i is how far along the track point ii is, which makes the window 100 m wide. Measuring the window in metres means it doesn’t matter whether your phone logged a point every second, or every ten.

Second, a climb is only counted once you’ve gone at least 3 m above the last counted height, and that height also moves down whenever you drop 3 m below it. Small ups and downs that don’t get past 3 m don’t count at all. (Fun fact: the proper name for this is hysteresis, and it’s the same trick a thermostat uses so it doesn’t flick your heating on and off every few seconds.)

Below is a synthetic walk with GPS-style noise added to it. Try playing around with it to see the impact the smoothing has on the final elevation gain:

592 mreal climb
1,891 madding up every wobble
565 msmoothed, with the threshold
A made-up 8 km walk with a height logged every 10 m. Dashed: the real hills. Faint: what the GPS recorded. Solid: after smoothing.

Without any smoothing, the GPS noise massively inflates the elevation gain of our synthetic hike. A smoothing window of 100 m and a threshold of 3 m gets it back to within 5% of the real climb. Push the window up to a few hundred metres, and it starts flattening the real hills of your hike. The numbers used are a trade-off, and they’re tuned for hiking, as that’s what I’m interested in. A bike ride would probably want different values.

Moving time gets a similar treatment. A gap between two points counts as a pause if it’s longer than a minute, or longer than three times the usual gap between points if your device logs slowly.

Cutting out a slab

Next, we need to decide which piece of the world to draw. The diorama is a rectangular slab of terrain around the route, so the most obvious choice is a box with north-south and east-west sides.

This works fine for a route that runs north to south or east to west, but for any diagonal ones you’d get a big square with corners of empty land nobody walked anywhere near. Instead, the box is turned to follow the direction the route mostly runs in.

Finding that direction is the same problem as finding the long axis of a cloud of points. The route is treated as a chain of straight segments, each weighted by its length wkw_k, with a midpoint ckc_k (measured from the weighted centre of the route) and a direction vector dkd_k. These add up to how spread out the route is:

Sxx=∑kwk(ck,x2+dk,x212)Syy=∑kwk(ck,y2+dk,y212)Sxy=∑kwk(ck,x ck,y+dk,x dk,y12)\begin{aligned} S_{xx} &= \sum_k w_k \left( c_{k,x}^2 + \frac{d_{k,x}^2}{12} \right) \[0.6em] S_{yy} &= \sum_k w_k \left( c_{k,y}^2 + \frac{d_{k,y}^2}{12} \right) \[0.6em] S_{xy} &= \sum_k w_k \left( c_{k,x},c_{k,y} + \frac{d_{k,x},d_{k,y}}{12} \right) \end{aligned}

And the angle of the long axis is

θ=12 atan2⁡ ⁣(2Sxy, Sxx−Syy)\theta = \tfrac{1}{2}, \operatorname{atan2}!\left( 2 S_{xy},\ S_{xx} - S_{yy} \right)

The 112\frac{1}{12} terms are the spread of a single straight segment around its own middle. Weighting by length matters because phones log points by time. If you stop for lunch or crawl up a very steep bit, you’d get a pile of points in one spot, which would drag the axis towards it.

Turn the route below and watch both boxes:

4.5 kmfurthest ground, north-south sides
2.8 kmfurthest ground, following the route
A made-up 7 km ridge walk. Both boxes get 15% padding (at least 500 m) on each side and are never more than twice as long as they are wide.

The dashed box changes shape as the route turns, and at around 45° the furthest ground from the route is over 4 km away. The solid one doesn’t care which way the route points.

After that, the slab gets 15% of the route’s length and width added on each side as padding (at least 500 m) to show some surrounding scenery, and it’s never more than twice as long as it is wide. It’s then cut into a grid of 256 cells along its long side. For a normal day hike, a cell comes out at around 25 m across.

Where the ground comes from

Every one of those cells needs a height, which adds up to tens of thousands of heights per hike.

isotrail gets them from Terrain Tiles, a free dataset on AWS that stitches together several public elevation models into one global set of map tiles. They do a really cool thing with how they store the data. Each tile is a normal 256 x 256 PNG, but the colours store a height according to this formula (this is called Terrarium encoding):

h=256R+G+B256−32768 metresh = 256R + G + \frac{B}{256} - 32768 \ \text{metres}

So a pixel of (128,0,0)(128, 0, 0) is sea level, and (130,20,128)(130, 20, 128) is 33280+20+0.5−32768=532.5 m33280 + 20 + 0.5 - 32768 = 532.5\ \text{m}. Red does the big steps, green the metres and blue the fractions of a metre.

A Terrarium elevation tile over Derwent Reservoir: speckled bands of purple and green that follow the slopes, with the reservoir in one flat green
129red
242green
137blue
498.54 mheight

256 x 129 + 242 + 137/256 - 32768 = 498.54 m

One of the 14 tiles isotrail downloaded for Derwent Edge, at zoom 13 over Derwent Reservoir, shown at twice its size. Red is 128 for ground below 256 m and 129 above that, so the bands you can see are green counting up through the metres, and the speckle is blue. The reservoir is flat, so its green barely changes. Point at a pixel, or use the arrow keys, to read its height.

The tiles come in zoom levels, and each level up halves the size of a pixel on the ground. A pixel at zoom zz and latitude φ\varphi covers

r(z,φ)=2π⋅6378137 m⋅cos⁡φ256⋅2zr(z, \varphi) = \frac{2\pi \cdot 6378137,\text{m} \cdot \cos\varphi}{256 \cdot 2^z}

The coarsest zoom where a pixel is at most half a grid cell is chosen, so each cell is at least two pixels across. For 25 m cells in the Peak District that’s zoom 13, where a pixel is about 11.4 m. A multi-day trek with bigger cells drops to a lower zoom and downloads a lot less data.

Why these tiles?

Terrain Tiles isn’t the newest option. In fact, the project behind it (Mapzen’s joerd) hasn’t changed since 2017. The data is frozen, which makes total sense, as the hills don’t move that much! But what else is out there for people to use?

Mapbox and MapTiler both serve terrain as coloured tiles too, with a slightly different formula, h=−10000+0.1 (65536R+256G+B)h = -10000 + 0.1,(65536R + 256G + B). Both have generous free tiers, but both need an account and an API key. For a tool that other people download and run, asking every user to sign up somewhere and create an API key is a lot of friction.

Copernicus GLO-30 is a newer 30 m global model, also free on AWS without a key. It comes as GeoTIFF files that you read a window out of, instead of PNGs, which means more code and a heavier dependency for the same job.

OpenTopography has lots of datasets behind one API, but it also needs a (free) key and allows 50 calls a day for non-academic users.

Then there are APIs that take a list of points and give you back their heights. They look like the easy option, but with thousands of cells they really aren’t. Open-Meteo’s elevation API takes 100 points per request, so a single hike would be hundreds of requests. Google’s needs a billing account.

Mapterhorn is a newer project that uses the same Terrarium encoding, but it serves its tiles as 512-pixel WebP images, which isotrail can’t read yet. isotrail does take a --terrain-url argument, so any server with 256-pixel Terrarium PNGs can be swapped in.

Making hills look like hills

One more step. If you draw the terrain at its true height, most hikes look surprisingly flat. A 10 km slab with 500 m of relief is basically a tabletop with a few bumps, so I took the creative liberty of exaggerating the hills a little for better visuals. The heights are stretched according to this formula:

e=clamp⁡ ⁣(0.15⋅LR, 1, 5)e = \operatorname{clamp}!\left( 0.15 \cdot \frac{L}{R},\ 1,\ 5 \right)

where LL is the slab’s long side and RR is the difference between its highest and lowest points. To simplify, the relief gets stretched until it’s about 15% of the slab’s length. That 10 km slab with 500 m of relief gets e=3e = 3, whereas gentle moorland maxes out at 5. Somewhere super steep, the Alps for example, works out at less than 1 and gets clamped back to true height.

Derwent Edge drawn at its true height, an almost flat slabDerwent Edge drawn 3.8 times taller, with steep valley sides and edges

Derwent Edge at its true height, and stretched 3.8 times, which is what isotrail picked for it. The slab is 9.8 km long, with 390 m between its lowest and highest ground.

What’s on the ground

The heightmap gives us a grey lump by itself. To get woods, lakes, moorland and paths, OpenStreetMap is queried through the Overpass API. Overpass lets you send a query like “give me every wood and lake inside this box” and returns just those shapes with their outlines.

One query is sent per hike. This is the one for Derwent Edge:

[out:json][timeout:180];
(
  way["natural"~"^(water|wood|scrub|heath|grassland|bare_rock|scree|shingle|sand|glacier|wetland|fell)$"](53.34641,-1.77608,53.44464,-1.64952);
  way["natural"="cliff"](53.34641,-1.77608,53.44464,-1.64952);
  way["natural"="coastline"](53.34641,-1.77608,53.44464,-1.64952);
  way["landuse"](53.34641,-1.77608,53.44464,-1.64952);
  way["waterway"~"^(river|canal|stream)$"](53.34641,-1.77608,53.44464,-1.64952);
  way["highway"~"^(motorway|trunk|primary|secondary|tertiary|path|footway|track|bridleway|steps|cycleway|unclassified|residential|living_street)(_link)?$"](53.34641,-1.77608,53.44464,-1.64952);
);
out tags geom;
(
  relation["type"="multipolygon"]["natural"~"^(water|wood|scrub|heath|grassland|bare_rock|scree|shingle|sand|glacier|wetland|fell)$"](53.34641,-1.77608,53.44464,-1.64952);
  relation["type"="multipolygon"]["landuse"](53.34641,-1.77608,53.44464,-1.64952);
);
out geom;

The numbers in brackets are the box around the slab (south, west, north, east). Ways are lines and plain shapes. Relations are the big complicated ones, like a forest with clearings cut out of it. Paths, streams and minor roads are only asked for when the cells are 100 m or smaller, as on a big trek they’d be thinner than a cell anyway.

The shapes then get painted onto the grid. Some cells are left over that the map doesn’t cover, and those get classified from the terrain instead. Slopes steeper than 40° become bare rock. So does high ground, which is anything above the treeline that’s steeper than 30°, or anything more than 800 m above the treeline. Everything else becomes grass.

Before anything gets rendered, the slab looks like this. On top is the terrain shaded as if lit from one side, and below it is what isotrail thinks is on the ground:

The Derwent Edge terrain in grey, shaded as if lit from one side, with the route in redThe Derwent Edge ground cover: brown moorland over most of it, dark green woods and light green fields along the valley, blue reservoirs and grey rock along the edges, with the route in red

Derwent Edge’s grid of 256 by 128 cells, each 38 m across. Brown is heath and moorland, dark green mixed woodland, light green grassland, blue water and grey bare rock.

The sea

Coastal hikes had their own puzzle to solve, as OpenStreetMap doesn’t store the sea as a shape. It stores coastlines as lines, with a rule that the land is always on the left as you walk along the line in the direction it was drawn (… what?), so the cells on the right of a coastline are the sea.

The sea is drawn flat at 0 m whatever is happening on the sea bed, and the first cells of land next to it are lifted to at least 0 m. Then a broken line of foam goes along the shore, with flecks of surf a little further out.

A diorama of the Seven Sisters seen from the sea, with the route running along the cliff tops, the sea flat beside it and foam along the shore

None of my hikes reach the sea, so this is a made-up route along the Seven Sisters, from Exceat to just past Birling Gap. It follows the South Downs Way as OpenStreetMap has it and is timed for 20 June 2026. The land, the sea and the weather for that day are real.

Other ways to get the map

The public Overpass server is shared by everyone who works with OpenStreetMap data, and its usage policy asks you to stay under roughly 10,000 queries and 1 GB a day. One query per hike is nowhere near that.

The other way to get OpenStreetMap data is to download it in bulk through something like Geofabrik, which has extracts for every country. The problem with this approach is that Great Britain alone is 2.1 GB, and that’s a lot of download for a few square kilometres of hills. It would start making sense if you’re rendering hundreds of hikes, but at that point you’d probably want to run your own Overpass server anyway.

Vector tiles from projects like Protomaps or OpenMapTiles are made for drawing web maps. At low zoom they swap OpenStreetMap for coarser datasets, and small things like footpaths only appear when you’re zoomed right in. You end up fetching the most detailed tiles anyway, and the shapes have been cut up into tiles you’d need to stitch back together.

ESA WorldCover is a satellite-based map of the whole world at 10 m, where each pixel is one of 11 classes like tree cover, grassland or water. It’s the same quality everywhere, which OpenStreetMap isn’t, but it has no paths, streams or lake outlines, and its most recent version is from 2021.

The weather on the day

Weather and seasons were big features for me, as they really glued the diorama together nicely.

The weather comes from Open-Meteo, a free weather API that doesn’t need a key for non-commercial use. Each hike requests the hourly temperature, cloud cover at three heights, rain, snowfall, snow depth and wind, among others, from an hour before the start to an hour after the end.

For hikes that ended at least five days ago, the numbers come from the historical archive, which is built on reanalysis, where weather models are re-run over the past with all the observations that came in, to get the best guess at what the weather was everywhere, every hour. More recent hikes use the forecast models’ own records of the last few days, because the archive takes a few days to catch up.

The weather is read at the route’s average height, so the temperature is the one up where I was walking and not down in the valley. Long routes are split into stretches, one for roughly every 20 km of ground they cover and eight at most. Each stretch is read at its own average height, and each hour takes the weather from the stretch I was on at that time.

The season

The weather also sets the season. Snow on the ground comes from that day’s snow depth. If there wasn’t any, but snow fell in the fortnight before, the snowline goes 300 m above the fortnight’s average freezing level.

Lakes freeze if it’s been cold enough for long enough. The daily temperatures are taken for the two weeks before the hike, then they’re carried up or down the hill at 6.5° per kilometre (roughly how much air cools as you climb), and then the frost is added up in degree-days:

F(z)=∑d=114max⁡ ⁣(0, − Td(z))Td(z)=Td−0.0065 (z−z0)\begin{gathered} F(z) = \sum_{d=1}^{14} \max!\big(0,\ -,T_d(z)\big) \[0.6em] T_d(z) = T_d - 0.0065,(z - z_0) \end{gathered}

Where FF reaches 30 degree-days, lakes are turned into ice! For real-life consistency, the sea never freezes.

Trees get their own calendar as well. Each broadleaf tree comes into leaf, turns and drops its leaves on its own days, two days later in spring (and earlier in autumn) for every 100 m it stands above the lowest ground. This means the top of a valley can already be bare while the bottom still has leaves. South of the equator, the year is shifted by six months.

A few hikes with all of this switched on:

Hope Circular in May: bright green fields and woods under a blue sky with white cloudsLow Bradfield in October: orange and brown autumn woods around two reservoirs, in light rainStanage Edge in February: hills white with snow around a reservoir, under a pale skyMorskie Oko at night: dark forested mountains under a starry sky with a full moon

Hope Circular (10 May 2026), Low Bradfield (20 October 2024) and Stanage Edge (14 February 2026), all lit as if it were midday, then Morskie Oko (29 July 2026) at 22:00.

The night one uses the sun and moon positions for that exact time and place, worked out with the equations from Jean Meeus’ Astronomical Algorithms (the book NOAA’s solar calculator is based on). The moon even has the right phase! That walk was on the day of July’s full moon, and a full moon is what you get.

Where the numbers come from

The archive Open-Meteo uses is built on the same ERA5 reanalysis you can download from the Copernicus Climate Data Store yourself. Using it directly means an account, a queue that can take hours and GRIB files, which is a binary format meteorologists love and everyone else has to look up. Open-Meteo hands you the same numbers as a bit of JSON instead.

The small catch with reanalysis is the resolution. ERA5 works on a grid of a quarter of a degree (about 28 km north to south), and ERA5-Land, which Open-Meteo blends in, on one of about 11 km. This means that the weather drawn is the general weather around the hike rather than the exact cloud I walked under. That’s more than enough for this renderer.

The alternatives mostly need keys or come from weather stations. Meteostat collects station records, but the nearest station to a mountain route is often down in a valley miles away, and its free API plan is 500 requests a month. Visual Crossing and OpenWeather both have historical data with free allowances behind an account. Open-Meteo needs nothing for non-commercial use, which is exactly what rendering my own hikes is.

Making it look like a game

That’s everything that needs to be downloaded to render the hike. All of this data is packed into a single scene file of about 100 KB (94 KB for Derwent Edge), and from here nothing else touches the internet.

The drawing happens on the GPU with wgpu, a Rust graphics library that runs on Vulkan, Metal, Direct3D or WebGPU. This was my first time doing any real GPU programming apart from two basic GPU modules at university, so a lot of time was spent relearning how everything works.

To make the render look like a pixel game, the main trick is to draw the scene small. An Instagram story is 1080 x 1920 pixels, but the renderer draws it at 360 x 640 and then scales it up three times with no smoothing. This makes every pixel a crisp 3 x 3 square. Everything else is about making those few pixels look nice:

  1. Each grid cell becomes a column of blocks, with its height rounded to whole blocks. Trees, bushes and boulders go on top, placed with a seed made from the hike’s own data, so the same hike always gets the same trees.
  2. The cut sides of the slab get layers like a cake, with a block of darker topsoil, two or three blocks of dirt with the odd pebble, then stone flecked with ore.
  3. The sun lights the scene, and the light is squashed into four flat bands to get the cel-shaded look from games.
  4. Dark outlines go around the slab and anywhere one surface sits in front of another.
  5. The route is drawn on top, and where a ridge hides it, it shows as a faint dashed line so you can still follow it.
  6. Every pixel is snapped to the nearest colour in a fixed palette.

The banding in step 3 is one line in the shader. For light ℓ\ell between 0 and 1 and n=4n = 4 bands:

ℓ′=⌈n ℓ−0.25⌉n\ell' = \frac{\lceil n,\ell - 0.25 \rceil}{n}
let banded = ceil(diffuse * bands - 0.25) / bands;

The −0.25-0.25 moves each step up a little, so faces that are barely lit stay in the shadow instead of jumping straight to the first band.

The nearest colour isn’t always the nearest colour

“Snapping to the nearest colour” in step 6 sounds straightforward. The obvious approach would be to treat red, green and blue as coordinates and take the closest one. However, RGB distance doesn’t match what your eyes see. Take dark navy (30,30,120)(30, 30, 120) and a palette of black, white and pure blue (0,0,255)(0, 0, 255). In RGB it’s closer to black (a distance of 127 against 142), but to anyone looking at it, it’s obviously blue.

So instead of using RGB, colours are compared in OKLab, which is a colour space designed so that equal distances look like equal differences. This makes navy land on blue, as it should.

The colour palettes are taken from Lospec, and any of them can be swapped in. Three are built in: Apollo by AdamCYounis, which this website takes its colours from too, Resurrect 64 by Kerrie Lake and AAP-64 by Adigun A. Polack. The terrain can also be drawn as a smooth surface instead of blocks:

Derwent Edge in the Apollo paletteDerwent Edge in the Resurrect 64 palette, with yellower moorland and a brighter red routeDerwent Edge in the AAP-64 palette, with browner hills and bluer waterDerwent Edge in Apollo with smooth terrain, its slopes drawn as flat faces instead of steps

Derwent Edge in Apollo, Resurrect 64 and AAP-64, then in Apollo with smooth terrain.

In the browser

The same renderer also compiles to WebAssembly, which is how the diorama at the top of this post runs in your browser. It uses WebGPU where the browser has it and falls back to WebGL2 where it doesn’t. Each hike is its own scene file of about 100 KB, and every hike on this site shares one runtime of about 1.1 MB compressed.

Animations come out of the same code, with routes drawing themselves, stats counting up, and the sun, clouds and rain following the time at the head of the route.

Conclusion

The code is all on GitHub under the MIT licence. If you make something with it, or something like it, I’d love to see it!