After the animated map on our home page, we moved into the third dimension. The scene above is the real Le Locle: terrain, buildings, roads, railway and street lamps all come from Swiss federal open data and OpenStreetMap. The town's geometry is not modelled by hand: it comes straight from this data. You can fly over it freely, with the mouse or the keyboard, like a drone.
What you see
- Terrain and aerial imagery come from swisstopo: the digital terrain model and the SWISSIMAGE orthophoto.
- The buildings are swissBUILDINGS3D, loaded tile by tile depending on the viewpoint, like an online map.
- The roofs take their colour from the aerial photo; the walls stay plain, with no invented decoration.
- Lit windows are spread floor by floor across each façade, giving the town its evening life.
- The light is computed separately: 1,320 street lamps from OpenStreetMap, headlights following the real roads, a train on the SBB line, and the town hall floodlit, as every evening.
What is real, reconstructed or simulated
- Real: the terrain, the footprint and height of the buildings, the course of the roads and railway, the position of the street lamps and the aerial photo of the roofs.
- Reconstructed: the colour of the walls and the layout of the windows, chosen to stay plausible without claiming to reproduce each façade.
- Simulated: the evening activity. Headlights, the train, lit windows and cast light are computed, not recorded.
Why the loading is shown step by step
A 3D town is heavy: about 30 MB on a first visit. Rather than leaving you in front of a blank screen, we first show an image of the final render, then each step as it happens: engine, aerial photo, terrain, buildings, vegetation, then lighting, vehicles and train. On a second visit the swisstopo files are already in the browser and the town appears in a few seconds. Returning visitors can skip the animation.
How we built it
The chain is fully scripted, from raw data to the page. Building and vegetation tiles are served as 3D Tiles and displayed with three.js. Roofs and lit windows are computed directly in the browser, without heavy textures to download. Street lamps, headlights and the train write into a top-down light map that the ground and façades then read: that is what creates the pools of light on the road and at the foot of the walls. Measured on 28 November 2026 on a computer with an NVIDIA GeForce RTX 4070, at 1440 × 860 pixels: 80 to 100 frames per second. Without graphics acceleration, the scene lowers its own resolution and effects to stay usable.
The same craft goes into our assignments: gathering public or internal data, assembling it cleanly, making it readable, and delivering something that holds up.
Sources
Terrain, orthophoto, buildings and vegetation: © swisstopo. Roads, railways and street lamps: © OpenStreetMap contributors (ODbL). Simulated lighting.