Concordia: a 21 km rotating space city you can walk in the browser

Concordia is a full-scale model of a rotating space settlement at Earth-Moon L5, running in the browser on Three.js (WebGL 2). Four counter-rotating habitation rotors give 1 g at a 2,500 m radius, with a metro along the axis, an artificial sky, a shipyard and a 10 km launch track. You can walk it from a family’s kitchen up the lift to zero g.

Live: https://concordia.davidveksler.com (the 3D is at /explore/ and needs a desktop GPU; the guide and a 1:44 film work on a phone)
Film: https://www.youtube.com/watch?v=gvfHlFigOD4

Things that might interest this forum:

  • Scene units are 100 m, and rotor motion is computed analytically from absolute simulation time (angle = rate x time), never accumulated per frame, so the cameras, story travel and the offline-rendered film all share one clock.
  • The city is generated from a deterministic plan and streamed in cells as you move; buildings, planting and the pedestrian crowd use instanced geometry and quality-dependent density.
  • Rotors 1 and 2 spin opposite to 3 and 4, and the frame transforms (habitation, retro-habitation, spine, spacecraft) are explicit, so there is no global “up”.
  • Scripts capture the scene on a real GPU and fail the build when a check regresses.

It was built with coding agents under a written spec; my part was the direction, the review and the decisions the spec could not make. The website source and the issue tracker are public at GitHub - DavidVeksler/concordia: Concordia: the public website source and issue tracker for the rotating space city simulation · GitHub Bug reports and “this number looks wrong” challenges are welcome there.

Computing rotor angle as rate × absolute time instead of accumulating per frame is the decision I’d point newcomers to. I learned a cousin of that lesson: my page transitions navigate on a timer, never from a frame callback, so a slow frame can’t hold the route hostage. Your last bullet made me curious. Do the real-GPU capture checks run in CI, or on your own machine? My e2e suite runs in SwiftShader, and it and a real GPU disagree in both directions: SwiftShader is fine for distribution metrics but useless for judging fine detail on the bodies, and some failures it shows never reproduce on real hardware.

1 Like