Skip to content

City: realistic models only, no low-poly kit - #34

Merged
Sagyam merged 1 commit into
claude/textured-parksfrom
claude/no-kit
Nov 7, 2026
Merged

Sagyam merged 1 commit into
claude/textured-parksfrom
claude/no-kit

Conversation

@Sagyam

@Sagyam Sagyam commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Stacked on #33. GitHub retargets it to main once #33 merges.

Deletes the low-poly kit and every fallback to it. The city now draws only the realistic models.

  • Removed: city-kit.glb, blender/city_kit.py, kit.ts, and the kit window atlas (textures.ts; the particle sprite moved to fx.ts). Also removed: the kit building stacker and yards, and the kit trees, cars, people, crane, scaffold, rubble, bridge and lamps. The flat-colour stand-ins for lawns, streets and fences went too.
  • Startup: the city is created only once the model pack is complete. Until then the HUD shows the download line, and the city appears in place with no reload.
  • Failure is loud: loadReal loads every model or throws. A missing model, or a GPU without BC7, shows Skyline unavailable: … and the HUD keeps working. The viewer pages (proto.html, town.html) still skip missing models.
  • Plan styles: dropped the kit-only round office and the glass, twist and TV towers. A new test checks that every look the plan can produce has a model.
  • Crane: its anchor points now live in CRANE in models.ts.

341 lines added, 938 removed.

Checks: tsc, bun test (38 pass, including the new test, which fails if a model-less style is put back), vite build, cargo check -p deepwork-ui. Screenshots in headless Chromium of the hamlet, city with a construction site, ruins, metropolis, and the city at night. Renaming s3.glb showed Skyline unavailable: Error: models missing: s3.

🤖 Generated with Claude Code

Delete the low-poly kit (city-kit.glb, city_kit.py, kit.ts), the window
atlas it used (textures.ts; the particle sprite moves to fx.ts), and every
fallback to it: kit buildings and yards, kit trees, cars, people, crane,
scaffold, rubble, bridge, street lamps, fences and the flat-colour stand-ins
for lawns and streets.

- The app creates the city only once the model pack is whole; until then
  the HUD shows the download. It starts the city in place, no reload.
- loadReal loads every model or throws, so a missing model or a GPU without
  BC7 shows "Skyline unavailable" instead of a half-drawn city. The
  viewers (proto, town) still skip missing ones.
- STYLES drops the kit-only round office and glass, twist and TV towers;
  a test checks every look the plan can produce has a model.
- The crane's anchors move into models.ts (CRANE).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Sagyam
Sagyam merged commit 8079a29 into claude/textured-parks Nov 7, 2026
6 checks passed
@Sagyam
Sagyam deleted the claude/no-kit branch November 7, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant