← Back to Mini World
Mini World · how it's made · 17 Nov 2026

How to

Build your Mini World

How to make a miniature city: this is the step-by-step workflow behind Mini World. It turns Google's photorealistic 3D tiles into an isometric pixel-art city map, a tiny town you can fly over, one square at a time.

Every Mini World map starts as Google's photorealistic 3D city and ends as a warm pixel painting you can fly over. Twelve steps sit between them.

A city is cut into a grid of 1,024 px squares, all seen by one shared isometric camera. Each square is rendered in 3D, measured for height, repainted by our own pixel model, then stitched back together, fixed where water and buildings go wrong, and published to the map and the globe. The painter is the N1 model from the Pixel LoRAs work.

≈ 1¢
per square in the cloud: render ≈ $0.004 + paint ≈ $0.006
1,502
squares in Chicago, a mid-size city (≈ $15 in the cloud)
15,574
squares in New York, the biggest map so far
4
denoising steps per painting (FLUX.2 klein 4B + the N1 LoRA)
Capture Paint Fix and check Ship
01 · The pipeline

Twelve steps

  1. 1 Capture

    Check the city has 3D

    Before anything is rendered, a free probe looks at the city. Google Photorealistic 3D must cover the whole area with real buildings, not a flat satellite photo draped over terrain. Each city is reported as 3D: yes / partial / no.

    Flat cities (Teresina, Boa Vista, Bogotá) are skipped for now: the painter has no walls to work from and the result looks flat. Coastal cities are judged on their land squares, because a mostly-sea box scores zero.

    Tools
    render_shots.py <city> probe, relief_check.py
    Runs on
    Any Mac
    Time
    Minutes
    Cost
    Free
    Gate
    No 3D = skip
  2. 2 Capture

    Set the camera and the grid

    One camera per city: its anchor point, compass heading, elevation angle and pixels per metre. The probe stores one shared ground height. Because every square uses the same camera and ground, the squares join pixel-perfectly later.

    The box size sets the bill. Chicago is 1,502 squares, Los Angeles 1x is 38,600, Tokyo (cloud) is 28,190. A 2x close-up zone over a city centre doubles the detail and quadruples the square count there.

    Files
    cam/<city>.json, cam/<city>_shots.json
    Square
    1,024 px, named r<row>_c<col>
    Time
    Minutes
    Cost
    Free
  3. 3 Capture

    Render the 3D squares

    Headless Chrome loads Google Photorealistic 3D Tiles and renders each square at 2,048 px, saved as a 1,024 px JPEG. This is the slowest step, and the speed limit is Google's daily request quota, not the machines: when it runs out, renders hang silently on HTTP 429 errors.

    • A Mac Studio (M1 Ultra) is the main renderer, with up to 6 render slots.
    • Modal L4 GPUs render in the cloud for the cloud builder: about 285 squares an hour per container.
    Tools
    render_shots.py <city> all → render3d/render.mjs
    Runs on
    Mac Studio, M5 Maxes, or Modal L4
    Speed
    ≈ 360–1,000 squares / h on the Studio (quota-bound); 285 / h per L4
    Cost
    Mac: free · Modal: ≈ $0.004 / square
    Tokyo: 1,200 squares in 2 h for $4.80
    Output
    renders/<city>/r_c.jpg
  4. 4 Capture

    Render the height maps

    The same camera renders a second pass with no colour: a 16-bit height for every pixel, in 2 cm steps. The height maps tell water from land later, find the water level, keep piers and boats dry, and catch towers drawn wrong.

    Google 3D render of a Chicago neighbourhood: brick row houses, trees and streets in isometric view
    3D render (step 3)
    The same square as a grey height map, rooftops lighter than streets
    Height map (step 4)
    The same square painted as warm pixel art: red roofs, round green trees, clean streets
    N1 painting (step 5)

    Chicago, square r4_c-8, from this week's build.

    Tools
    render_shots.py <city> heights
    Runs on
    Same as step 3
    Time
    Similar to the colour pass, often run behind it
    Cost
    Mac: free · Modal: in the render price
    Output
    heights/<city>/r_c.png
  5. 5 Paint

    Paint every square with N1

    Each render is repainted image-to-image by the N1 LoRA (Round F) on distilled FLUX.2 klein 4B, in 4 steps. The model sees a 1,536 px window around the square and keeps the middle 1,152 px, so neighbours overlap and edges match.

    • Content-free prompt. Prompt words invented things: suburbs on water, trees on lawns. The prompt only says to repaint in place.
    • Empty streets. New cities are painted without cars; the map animates its own.
    • Two routes: Modal H100s for speed, or both M5 Max laptops for free.
    Model
    FLUX.2 klein 4B (distilled) + N1 warm-pixel LoRA
    Tools
    modal_paint.py · mac_paint.py
    Speed
    Modal: 1,386 squares in 42 min on 6 H100s
    Mac: 120 squares per ≈ 1.5 h per M5 Max
    Cost
    Modal ≈ $0.005–0.0064 / square · Mac: free
    Output
    painted_d4/<city>/r_c.jpg
  6. 6 Paint

    Stitch the squares

    The paintings are joined into one canvas. Each square gets a small colour offset so its tint matches its neighbours. A live city's rebuild is pinned to its old offsets, so the map never shifts under its places. Squares that are 60 % or more sea keep offset zero, so the sea is one colour, not a checkerboard.

    Tools
    stitch_city.py --pin … --zero-water 0.6
    Runs on
    Mac Studio or M5
    Time
    Minutes to an hour
    Cost
    Free
  7. 7 Fix and check

    Fix the water

    The painter often draws the sea as fields, beaches or tiny islands. The water fix repaints it from facts: OSM water polygons, the coastline, and the water level measured from the height maps. Rivers grow from real water across flat ground, up to 4 m above the water level.

    • A street guard from Overture roads means water never lands on a road.
    • Anything standing above the water (piers, boats, breakwaters) keeps its painting.
    • The fill colour must look like water; sand is rejected.
    Tools
    water_fix_protected.py (v3.8), 4 parts in parallel
    Data
    OSM, Overture roads, height maps
    Time
    ≈ 1–1.5 h (Orlando: 89 min)
    Cost
    Free
    Gates
    Street water passSea loss passMy eye
  8. 8 Fix and check

    Hunt the defects and repaint

    Every city gets a defect pass at full zoom before it ships. The usual suspects:

    • Black or blank squares from failed renders. Publishing now stops with a list if any painting is mostly black.
    • Google-blurred sites (prisons, bases) painted as lakes. They are rebuilt from OSM buildings and streets.
    • Dark slab towers where the 3D facade is near black.
    • Smeared textures, like the street map painted down a wall near the Willis Tower.
    • Line grids over car parks and fields (Port Newark).

    Fixes are new seeds, re-renders, or a hand repaint of one wall.

    Tools
    blur_fix.py, seed repaints, 1:1 crops
    Time
    Minutes to a few hours
    Cost
    Cents: a few squares at paint price
    Kill Van Kull: 229 squares ≈ $1.50
    Gate
    My eye, 1:1 crops
  9. 9 Fix and check

    Build the tiles and the moving water

    The fixed canvas is cut into a zoomable tile pyramid. A second layer marks where the water is, so the map can animate swell and reflections. Each painted blob in the sea is judged by its colour: reef rock stays and fades into the water, and land the painter invented becomes sea.

    Tools
    build_pyramid.py, water_mask.py --by-paint, reefs.py
    Time
    ≈ 1–2 h for a mid-size city
    Cost
    Free
    Output
    site_maps/tiles_<tag>, water.json
  10. 10 Ship

    Places and the opening view

    Landmarks are added as clickable places: 44 in Chicago, 13 for the Newark extension. One place is the opening view, chosen where no water fix shows a miss. The opening picture and the arrival from the globe are baked from the new tiles.

    Tools
    places.py, bake_open.cjs, bake_arrival.cjs
    Time
    ≈ 30 min
    Cost
    Free
  11. 11 Ship

    Publish the map

    Tiles go to the map server's storage, and the city joins the engine's city list, its country menu and the Mini World globe as a marker or a guest on a nearby marker, with two clouds placed in clear sky. The site deploys only after the automatic checks pass. Then the city is marked published, and the status page shows it within 5 minutes.

    Tools
    deploy_tiles.sh, ship_queue.sh, deploy.sh
    Runs on
    The map server (miniworld.marceloeduardo.com)
    Time
    ≈ 1 h including uploads
    Cost
    Hosting only
    Gates
    transition_checktag_checkcloud_checkLive shots
  12. 12 Ship

    Release: three pieces

    A city counts as released only when all three exist:

    • Globe miniature: the tiny 3D city on the globe. Builder cities get the template: seven low houses with red-orange roofs, one brick tower, three trees.
    • List diorama: a turning clip for the city list.
    • Tweet image: NN_<city>_live.jpg. The post is drafted for me; I post it by hand.
    Tools
    diorama/, capture.cjs, make_live.py, /tuita
    Time
    ≈ 1 h
    Cost
    A few cents
    Gate
    I pick the banner
02 · The cloud route

One click, no Macs

Since 16 Nov the cloud city builder runs steps 1–11 on Modal: L4 containers render, H100s paint, and the water and heights layers are made there too. A city goes live through the registry without a site deploy. It appears as a guest on the nearest globe marker and gets the template miniature.

Manchester NH was the first city built this way, for $2.30. Copenhagen was the first published straight from the builder. Tokyo, 50 × 50 km and 28,190 squares, is building now: estimated $254, likely about $340.

CitySquaresRouteApprox. cost
Manchester NHsmall boxCloud builder$2.30
Chicago1,502Studio render + Modal paint≈ $10
New York (all)15,574Studio + Modal + Macs≈ $100–160
Greater São Paulo34,600 + 12,257 overviewModal render + paint≈ $420 (plan)
Tokyo28,190Cloud builder$254 est., ≈ $340 likely

Costs are estimates from the run logs and plans, not invoices. The Mac route paints for free but takes about 80 squares an hour per M5 Max.

03 · Guard rails

What keeps it safe

Spend guards. Every cloud app runs under a guard that stops it at a set cap, and the cloud builder has its own. A cap only goes up when I say so.

Google. Attribution stays visible on every map, raw Google meshes are never stored or shared publicly, and old keys are retired and refused.

My eye. Every visual question comes with 1:1 crops and a close-up. Nothing new goes live before the checks pass and I've seen it.

04 · Questions

Making a mini city

How do you make a miniature city map like Mini World?
It starts from Google's photorealistic 3D tiles. The city is cut into 1,024 px squares, each rendered from one shared isometric camera, then repainted as warm pixel art by our own image model (FLUX.2 klein with the N1 LoRA). The squares are stitched back into one map, water and buildings are fixed, and the city goes on the globe.
Can I get a tiny town of my own city?
If Google has real 3D buildings there, yes: use “Request a city” on the globe and it joins the builder's queue, which the Roadmap shows. Places where Google only has flat satellite photos are skipped for now, because the painting comes out flat.
How much does it cost to make a mini city?
About one cent per square in the cloud: rendering is about $0.004 and painting about $0.006. A mid-size city like Chicago (1,502 squares) comes to about $15; New York, the biggest map so far, is 15,574 squares.
What do I need to build one myself?
A Google Maps key for the Photorealistic 3D Tiles, a headless browser to render the squares, and a GPU with at least 24 GB of memory to run the painter. The rest is Python scripts. The My LoRA page explains how the painting model was trained.
How long does a city take?
The cities measured so far took between about 1 and 11 hours of build time in the cloud, most of it painting. The 3D check before the start takes minutes and is free.
Is the pixel art drawn by hand?
No. Every square is painted by an image model taught on pairs of 3D renders and paintings, then checked automatically for missing renders, water and blurred sites. A person looks the map over before it goes live.