CD
Search esc to close

projects live 2026

Tiny Bend

Bend and Mt. Bachelor drawn pixel by pixel in summer and in winter, with a map that follows the real snow, lifts, river, smoke and sun.

#maps#bend
Seasons2
Tiles per season11,861
Days6
All-in cost~$275

Tiny Perth was the hard one. I'd never rendered anything, trained a model or rented a GPU, and that write-up covers the whole pipeline from Google's 3D tiles to a zoomable map. Tiny Bend is the second city, on the same pipeline, so this page skips everything that worked the same and covers what's new: a second season, a mountain, and a map that looks out of the window.

Short version: the summer map took about three days and $150. Winter took two more days and about $125. Everything after that, the people, the live weather, the lifts, the river, cost nothing.

Same recipe, different ground

Bend is a fraction of Perth's size: the town, widened west to take in Phil's trails, and a separate patch around Mt. Bachelor, 25 km away, on the same camera and the same grid. 526 shots instead of 4,640. The pipeline ran nearly unchanged, and the bugs that did turn up were all about the ground being different.

Height. Perth is flat and near sea level. Each shot saves a depth image, and its range was set as a kilometre around one ground height. Bachelor's ground is 1,000 m higher than town's, so the first test lost the depth on a third of every mountain shot. Now each shot looks up the real ground under 289 of its own pixels in a free elevation model and sets its own range. Along the way, Google's heights and the elevation model's disagreed by about 20 m: that's the geoid, the gap between GPS's smooth mathematical Earth and sea level, measured here from 16,384 points rather than looked up.

Green. Bend is high desert: grey sagebrush, olive juniper, tan dry grass. Gemini, the teacher model that draws the examples, thinks every park and field is wet. It turned dry scrub into bright green lawn on most of the frames that failed. The fix was the same trick as Perth's water: one sentence per frame, measured from the render, saying how much of it is actually green and that grey and tan stay grey and tan. It says how to colour, never what's there.

Rules that only made sense in Perth. Perth's training set threw out anything darker than a set brightness as "deep ocean". Bend has no ocean, so the rule was throwing out dense fir forest on Bachelor. Perth's water fix flattened anything near-black as sea, which in Bend would have painted over the Deschutes in canyon shadow. Every rule you copy carries the place it was written for.

Winter is a repaint, not a re-render

The obvious way to make a winter map is to draw it again from the render with a snowy prompt. The problem is the toggle. Two separate drawings never agree on where every tree and roof is, so switching seasons would make the whole town shimmer.

So winter never sees Google's render. A second LoRA (a small add-on that bends an open image model's style) takes the finished summer map as its input and paints snow onto it, keeping every outline. Summer and winter line up pixel for pixel, and the switch is a slow fade, not a jump.

Winter

How the winter map is made from the summer one

Same five steps as summer, but the input is the drawing

1. Choose a lightGemini repaints four pieces of the summer map in five kinds of winter light.80 drawings · $10.87
"Bluebird cold" chosen
2. Teacher pairsA crop of the summer map, beside Gemini's snowy repaint of it.247 drawings · 212 kept
$33.55
3. TrainA second LoRA learns summer in, winter out.1 H100 · 2,000 steps · 26 min
$1.74
4. Repaint the mapAll 56 areas, pinned to their neighbours as in summer.Three runs · one seam patched
$79.44
5. WaterOpen river repainted from map data; frozen ponds left under snow.River banks copied from summer
$0, on the laptop
6. PublishThe same 11,861 tiles in the same layout as summer.Swapped tile for tile
tiles.tinybend.city
Costs in US dollars · from runs/ledger.tsv

Choosing a winter

Each variant of the teacher prompt changed only one paragraph, the light: summer's hard sun on cool snow, a cloudless very cold day, overcast, a low warm sun, and deeper rounded snow. I picked the cold blue day. It looks the least like summer.

Downtown and Mirror Pond: the summer drawing, then five winter lights

Each winter prompt gets one generated sentence about the ground, next to the one about water: how deep the snow is (a few inches in town, over a metre on Bachelor, from the ground's height) and what stays clear: ploughed main roads and car parks from OpenStreetMap, and rock too steep to hold snow from the terrain model. Rivers stay open and ponds freeze, by OpenStreetMap's tags. Mirror Pond is tagged as a reservoir, so the first list froze it. It's a dammed stretch of the Deschutes and never freezes, so it now has an override.

Gemini buries a forest

Town came out right first time. On the mountain, the deep-snow sentence said "every small shape is buried", and Gemini buried the forest: blank white, bare twigs, a lone clump, and in two frames, buildings it made up. The blue shadow colour also read as water on five frames, which grew little cyan pools. One rewritten sentence ("trees, buildings and rock still stand at full size") and a deeper shadow fixed 20 of the 28. I left the last six out. A model learns from its examples, mistakes included.

The guard earns its keep

The winter map was drawn the way summer was: 56 overlapping areas of about 2.8 km, each pinned to its finished neighbours, up to ten GPUs at once. The run measures the brightness step at every join and stops itself if one goes over 8. It stopped twice. Both times the cause was a sliver at the map's edge, mostly ground that gets cut away later, so I let it carry on. One was real: a 0.6 km strip of forest on Bachelor's east edge that drew more snow than the area beside it. That square got drawn again as a new area, pinned to every neighbour but that one, and its join went from 11.8 to 1.4. Nothing already drawn was overwritten. $1.16.

Always the water, again

The winter model had frozen Mirror Pond, so open water gets repainted from map data, as in Perth. The first repaint learned its colours from every water pixel, including the white ice the model had drawn, and painted the pond milky grey. It now learns only from dark water.

Mirror Pond: summer, winter as drawn, and winter after the water repaint

The river was harder. The model sometimes drew the Deschutes white, and on a narrow river the strip the repaint leaves along each bank is the whole river. My first fix repainted right up to the bank, and the checker loved it: 96% of tiles passed. By eye it was a soft grey smear with no bank line, running over trees in the canyon.

The fix that worked came from the way winter is made. The winter map is the summer map repainted, so the summer river, with its crisp drawn banks, sits exactly underneath. The repaint now copies it: where the map says water is near and the summer drawing shows the river's dark slate, winter takes that pixel's colour, a little darker and bluer. The winter river has summer's banks and ripples.

Summer, the first winter map, and the river copied from summer

The checker needed teaching too. It flagged 2,189 tiles as "too little snow", nearly all of them forest. Snow in shade isn't white. In this drawing it's a mid blue. Once the check counted blue snow between the tree crowns, that number fell to 125.

The gap between town and mountain

Two drawn patches with 25 km of forest between them would float in a blank page. Around and between them now is a relief chart made from the free Copernicus elevation model: tinted by height, shaded, contoured every 100 m, in four colourways to match the season and the light. Every chart pixel is a ray from the map's own camera, so the chart leans exactly as the drawing does and the contours land on the drawn cinder cones. A button on the side flies you from town to Bachelor across it.

From 45° above, though, the Three Sisters and Broken Top came out as flat smudges. So the ground above 2,100 m is stretched to 3.2 times its height and drawn again through the same camera, farthest first, and the peaks stand up off the chart like a pop-up book, in their real places, each named with its real height. The first try sorted by the stretched height, which let each summit's column cover its own slopes. Sorting by where the ground really is fixed it.

The Sisters and Broken Top, raised off the chart: winter night and winter day

Life that changes with the season

Perth's scene engine came over whole: a scene is a small data file saying which sprite, along which route, how many and how they move, and one engine draws every scene on a see-through layer over the map. Everyone is placed by the clock, so two people who open the map in the same minute see the same skier on the same turn.

Bend needed twelve new sprites, drawn by hand as text, one letter per pixel: skier, snowboarder, Nordic skier, sledder, a chair with riders and an empty one, mountain biker, hiker, inner-tube floater, paddleboarder and surfer. And new ways to move: top to bottom and round again for skiers and floaters, side-to-side turns, chairs spaced evenly up one side of a lift line and down the other. In summer they float the river, paddle Mirror Pond, surf the whitewater park and ride Phil's. In winter they ski Bachelor's runs and ride its lifts. The season switch fades the two crowds over the same four seconds as the tiles.

Chairs and skiers on Bachelor

The routes are OpenStreetMap's. The heights were the surprise. The elevation model the render uses measures the top of whatever is there, treetops included, which would have floated a rider under Phil's pines 10 to 25 m above the trail. Bike trails and ski runs take their heights from USGS 3DEP instead, a bare-earth model at about 10 m.

A map that looks out of the window

The season switch has a third setting, Live, and it's the default.

Snow. Every 15 minutes a small server function asks Open-Meteo for the snow depth in town and at Bachelor's base. With 3 cm or more, that patch shows the winter map. Town and mountain decide separately, so on most winter days Bend is bare and Bachelor is white, split along a line through the empty forest. If it's snowing, it snows on the map, only over the patch where it's happening.

The lifts. Mt. Bachelor's website reads its lift and run report from a public feed. The map's server function reads it every five minutes, and only lifts that are running turn. Skiers only ride open runs. When the resort is closed, as it was the day this was built, the whole mountain stands still. Matching the resort's names to OpenStreetMap's took a little folding ("Pine Marten Express" against "Pine Marten", "Roostertail" against "Rooster Tail"): 129 of 142 match.

The river. The Deschutes through Bend is a managed river: in summer the reservoirs upstream release water for irrigation and it runs at 1,500 to 2,000 cubic feet a second; from October it drops to a few hundred while they refill. The floaters only come out when the river's up and the day is hot, the surfers only when there's water to build the wave. The gauge at Benham Falls was the trap. The US Geological Survey's data service lists it, with a "latest" reading, and our first preview showed that reading as today's river. It was from 1991, when the USGS stopped running the gauge. The Oregon Water Resources Department runs it now, so that's where the reading comes from, and anything over three days old is ignored.

The same August afternoon at 1,620 and at 450 cubic feet a second

Smoke. August in Bend can mean wildfire smoke. From an air quality index of 51 a warm haze settles over the map, thicker towards the horizon and more amber as it gets worse, and most people stay in.

The sun. The page works out where the sun is over Bend from the date and time, and two see-through layers tint the map: warm in the golden hour, rose at sunset, blue through dusk to night. Just after sunset, a high summit still catches pink light the valley has lost. To draw that alpenglow only where it belongs, the bare-earth heights over Bachelor (667,200 points) were run through the map's camera to make a small light map of how high each patch of the drawing is and which way it faces. At dusk the high slopes facing the last of the sun turn pink.

Town at 2 pm, in the golden hour, under smoke and at night; alpenglow on Bachelor in August and December

None of this can cost money. The browser never calls a weather service, the resort or a model. Each feed goes through one small function whose answer the host caches, so the resort sees one request every few minutes however many people visit.

A trail map over the drawing

Turn on the trail map and Bachelor looks like the board at the ticket window: every run in its North American sign (green circle, blue square, black diamond, double black), lifts, terrain parks and bowls. In summer the same button shows 302 bike trails, 627 running and hiking trails and the paved river paths. While any lift is turning, open runs get a gold edge and closed ones go dashed.

The trail map on Bachelor, with the lift report open

The lines aren't painted into the tiles. They sit on their own layer, so they switch off and can change without redrawing anything. Each point goes through the renderer's camera maths at its bare-earth height, so a run lands on the exact patch of snow the drawing shows. A camera 45° up can't see ground behind a slope steeper than 45°, so every point was checked by walking back towards the camera. Bachelor is a cone of about 30°, and its whole north side is in view. Browsers draw smooth lines, which look wrong on pixel art, so each line is stamped square by square into a coarse grid and scaled up without smoothing.

Bend's own days

Some things only make sense in Bend.

  • The calendar. A scene can wait for a date: a fixed day, a run of days, or a rule like "the third Saturday in May", so moving events need no yearly edit. Hot air balloons over the south-east side for Balloons Over Bend in late July. Pole Pedal Paddle racers in May, with skiers on Bachelor if it's showing winter. The Fourth of July pet parade, dogs and all, on its real route from Harmon Park to Drake Park. And lights round the Old Mill District and up its three smokestacks from late November into January. ?date=2026-07-04 shows any day early.
  • The Ale Trail. A button puts a pint on each of the 24 Bend Ale Trail stops inside the town patch. Tap one for its card.
  • The last Blockbuster on Earth. Its roof has a tiny sign that glows and flickers now and then. You have to be very close to see it. Searching "Blockbuster" helps.

The Fourth of July pet parade

The Old Mill's holiday lights

Four outfits for the page

The page around the map has four looks, summer and winter, each by day and by night, in colours taken from Bend: pumice and dust, basalt black, ponderosa bark, Deschutes teal, fresh snow, ski-patrol red, alpenglow pink. Winter gets rounder corners and a snow cap on every card. The title card carries a pixel skyline of the Cascades drawn in code, and the snow line creeps down the peaks as winter comes in.

Each look is a list of 30 values. Told what kind of value each one is, the browser can slide every one of them from one list to the other, so a season change takes four seconds and light to dark 2.6, slow enough to watch, more like weather coming in than a switch. The type is Parkly for titles and Cartridge for everything else, two pixel faces from SimpleBits. Their licence doesn't allow passing the files on and the repo is public, so they live in the tile bucket instead, and a test fails if a font file is ever committed.

The bill

Spend

What each step cost

US dollars · about $275 for both seasons

Summer look tests$14.16
Summer teacher$54.30
Summer training$2.22
Summer map$77.28
Winter look tests$10.87
Winter teacher$33.55
Winter training$1.74
Winter map and patch$79.44
  • Gemini (teacher)
  • Modal GPUs
Summed from runs/ledger.tsv · Google's tiles cost about a dollar
Summer~$150
Winter~$125
Google tiles~$1
Everything live$0

About $275 for two seasons, against Perth's $726 for one. Most of that is size: Bend is 526 shots, Perth's big map was 3,909. Some of it is the second time through: no account stopped mid-wave by a spend limit I hadn't read, and every guard was already in place before the first dollar. Winter came in almost exactly at summer's price, because repainting an area costs the same GPU time as drawing it.

What's still wrong

Google's aerial photos of Bend were flown on different days, and some tan and green blocks from that patchwork still show faintly in the east and on Bachelor. Bachelor's summer forest came out warmer and greener than the render, consistently, and I kept it. In the canyon north of downtown, four winter tiles still show the river snowed over, because the summer river there is a pale stripe between rocks of nearly the same colour. One square on Bachelor's east edge shows a little summer red-brown through the snow.

On the moving side: there are no sledders, because OpenStreetMap has no sled hill in either patch. Nothing hides behind trees or buildings, because Bend has no depth tiles yet. And there are no cars, buses or planes yet; those are next.

What I'd tell you if you're doing a second one

Copy the pipeline, not the rules: every threshold you inherit was tuned for a different place. Make the second season from the first, not from scratch, and it lines up for free. When a checker says your fix scored 96%, look at the tiles anyway. And when a data service hands you a "latest" reading, check the date on it.

Now go switch seasons in Bend and watch the snow come in.


Credits: 3D city model from Google Map Tiles. Map data, routes, trails, runs and lifts © OpenStreetMap contributors (ODbL). Relief chart and skyline from Copernicus DEM GLO-30, © DLR e.V. 2010–2014 and © Airbus Defence and Space GmbH 2014–2018, provided under COPERNICUS by the European Union and ESA. Bare-earth heights from USGS 3DEP. Weather and air quality from Open-Meteo (CC BY 4.0) and NOAA's aviationweather.gov. River flow from the Oregon Water Resources Department's Benham Falls gauge. Lift and run status from Mt. Bachelor's lift and trail report. Ale Trail stops from the Bend Ale Trail. Type: Parkly and Cartridge by SimpleBits. Map viewer OpenSeadragon. Teacher drawings by Gemini; small model FLUX.2 klein 4B, trained with ai-toolkit on Modal. Inspired by tiny.london, using none of its images, model or prompts. Built with Claude.