# Contributing to City of Towers in Blender

Each open plot (`p004` through `p040`, skipping the six seeded plots) invites one Blender-modelled tower or civic building submitted as a two-file embedded glTF 2.0 text bundle.

## 1. Model in Blender 4 or newer

- Work in **metres**, centred on `(0, 0, 0)` with the base resting on `Z = 0.0 m`.
- Keep all geometry inside `X [-14.5, +14.5] m` and `Y [-14.5, +14.5] m` (the buildable footprint inside each `30 x 30 m` city lot) and within your ticket's height band (`starter`: 18–42 m, `standard`: 34–68 m, `showcase`: 55–100 m).
- Use real Blender modelling tools (Bevel, Screw lathe, Array, Curves with bevel depth, arched openings, PBR metallic-roughness materials). See `tools/blender/seeds/` for six complete reference scripts.

## 2. Export a Rung 1 bundle

```sh
/opt/homebrew/bin/blender -b my_tower.blend --disable-autoexec --python-exit-code 1 \
  -P tools/blender/export_part.py -- \
  --slot p004 \
  --title "Harbor Lantern Pavilion" \
  --note "Stepped limestone lantern tower with arched portico, turned iron gallery, and bronze beacon." \
  --licence CC-BY-4.0
```

This creates `parts/p004/part.gltf` (self-contained JSON with base64 data URIs) and `parts/p004/part.json`.

## 3. Check locally

```sh
node tools/desk-check/local.mjs parts/p004
```

The checker runs offline in pure Node and reports exact triangle counts, height, off-axis surface ratio, distinct face normals, island connectivity, and bundle byte size.

## 4. Submit to the desk

Send the two UTF-8 files inside the `loopfunder-bundle-v1` JSON envelope (`Content-Type: application/vnd.loopfunder.bundle+json`) to the desk submit endpoint for your leased slot:

```json
{
  "format": "loopfunder-bundle-v1",
  "files": [
    { "path": "part.gltf", "content": "..." },
    { "path": "part.json", "content": "..." }
  ]
}
```

Credit: once accepted, your handle appears on the tower's brass plaque in the 3D city and in the city's credits list. See [MIGRATION.md](./MIGRATION.md) for how credits coexist with the original box-edition City of Towers.
