Build an animated toy model of a city driven by real transit data

A Redditor had Claude Code write a Swift and Metal engine for a model-railway version of Fürth where every train, tram and bus moves to one day of real timetable and sensor data.

Done withClaude Code· Nov 12, 2026

What they did

u/Greedy-Giraffe-4269 set out to make a 3D world styled like an N gauge model railway, built on the real city of Fürth in Germany and the line to Munich. Claude Code wrote the code, a 3D engine from scratch in Swift and Metal with no game engine, while the poster directed, tested and complained. Nothing is hand-animated. Motion comes from recorded public data for one day, 10 October 2026: every train, S-Bahn, U-Bahn, tram and bus at its real time and place, river levels, wind turbines turning at measured wind speeds from the German weather service, free car park spaces, the real sun and a star catalogue. Buildings sit on real footprints at real heights. Given a goal, Claude kept building out places in whatever direction it was told.

How it went

The result is a single continuous camera flight of 22,680 frames, rendered straight from the app on two Macs, with music Claude also made. The poster says the project was about a week old at posting and the heavy work had moved to debugging. They named disk space, not the agent, as the real limit. They ran it on a $100 Max plan for the first 30 days and then on the $200 Ultra plan, and said it is not very token heavy because most of the logic is deterministic.

Worth knowing

The code is not public yet; the poster is working out how to open source it. A commenter suggested a practical debugging trick for a project like this: have the app dump a plain text table of each vehicle's actual and expected position at a timestamp and give Claude that file, rather than describing a visual glitch in a frame.

Try it

With Claude Code· 5 parts to fill in

Build a native 3D app in [language and graphics API] that shows [my town or area] as a stylised model, like [a model railway or other look]. Use real building footprints and heights from [data source], and drive everything that moves from recorded real data for one day: [transit timetables, sensors, weather or other feeds]. Show the data source and time on screen for each live value. Start with a small area and one data feed, add a debug dump of every moving object's actual and expected position at a given timestamp, and stop for me to check before you expand outward.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related