# Pixel Iso City

> Turn a real city block into an isometric pixel-art city: OpenStreetMap buildings at their mapped heights, labelled landmarks, traffic and water, pan, zoom and turn it from day into night.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.1.2
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/pixel-iso-city

## What you get

Bring a box on a city map and the landmarks to pin. The Skill returns a downloadable Skill (area bake, meta prompt, lessons, verification), a runnable scene and a 60-second film.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/pixel-iso-city (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/pixel-iso-city turn <your city block> into an isometric pixel-art city, pinning <your landmarks>
```

## How it works

1. **Bake a city box** Pixel Iso City bakes a bounding box from OpenStreetMap, for example node scripts/bake-area.mjs --bbox "52.3640,4.8790,52.3760,4.8960" --out my-city/src/city/area.json --title "Canal Ring" --pin "Westerkerk" --pin "Munttoren". The bake makes one request to a public Overpass server, caches the answer beside the output and refuses boxes over 3.5 km on a side. Set PIXEL_CITY_USER_AGENT first.
2. **Style the pixel city** src/city/area.json holds baked footprints and building parts with heights, roads, railways, water, coastline, parks and pinned landmarks; it is never hand-drawn. src/city/style.json sets the bilingual place name, ground colours, facade and roof palettes per building type, cars, driving side, landmark notes and the film. The shared renderer in src/iso/ traces the ground from a 2 m grid.
3. **Verify and record the tour** npm run build:single writes one offline HTML file, npm run shoot checks it in Chrome and npm run record writes film/film.mp4 and film/poster.jpg with FFmpeg. The Harbour Grid sample of Central, Hong Kong is a 60 second, 1920 by 1080, 30 fps silent film with 1406 buildings and parts and 8 landmarks. Release 0.1.2 passed seven interactions plus the compact embed.

## FAQ

### What does Pixel Iso City make?

Pixel Iso City turns a real city block into an isometric pixel-art city. Buildings stand as prisms on their mapped footprints at mapped or typical heights, towers get floor bands and windows, cars drive the main roads, water ripples and the light runs from day through sunset to lit windows and street lamps at night.

### Is Pixel Iso City a photo or 3D model of the city?

No. Pixel Iso City takes footprints, heights and names from OpenStreetMap and draws colours, windows and textures in code from the building type and style.json. The ground is flat, so the city follows the street plan but not hills.

### Why is a landmark missing or short in Pixel Iso City?

Pixel Iso City depends on OpenStreetMap coverage. Towers mapped as building parts take their tallest part, and unmapped heights come from the building type. Pin the exact mapped name with --pin, and add --english for English names.

### Does Pixel Iso City need a key or cost money?

No. Pixel Iso City needs no keys and calls no model; the only network use is one bake request to a public Overpass server, and the finished page makes no requests at all, so nothing is billed. If every Overpass replica answers empty while resyncing, the bake asks you to run it again later.

### What licence covers Pixel Iso City maps?

Pixel Iso City uses map data from OpenStreetMap contributors under the ODbL. A baked area.json is a derived database, so share it under the ODbL and keep the credits line visible wherever the city is shown. The pictures themselves are drawn by code.

### What are the Pixel Iso City controls?

Pixel Iso City plays or pauses its tour with Space, pans by dragging or with arrow keys, zooms with scroll, pinch or plus and minus, and turns a quarter with Q and E. A light slider runs day to night, N jumps to the next landmark and L toggles labels. ?lang=zh-CN switches to Simplified Chinese.

## Examples

- Pixel Iso City interactive demo (scene)
- Harbour Grid (video)
