Skip to content

Add gz-pazhou-city Mini App: a walkable 3D scene of Guangzhou's Pazhou-Canton Tower waterfront - #213

Open
juzicj wants to merge 2 commits into
MiniMax-AI:mainfrom
juzicj:add-gz-pazhou-city
Open

juzicj wants to merge 2 commits into
MiniMax-AI:mainfrom
juzicj:add-gz-pazhou-city

Conversation

@juzicj

@juzicj juzicj commented Dec 5, 2026 •

Copy link
Copy Markdown

Adds 广州琶洲—广州塔 3D 场景, a third-person 3D walk through the Pazhou–Canton Tower waterfront of Guangzhou, built entirely from public map data. The map extract ships inside the plugin as one bundled file, so the app opens and runs offline with no keys, accounts or network calls, and the interface makes it obvious which buildings come from OpenStreetMap and which are generated to fill empty blocks.

Tested environment and results

  • MiniMax Code 3.1.23 on Windows 11 (x64), Electron desktop build.
  • Client acceptance in the Host's FilePanel browser: the scene loads and renders, movement, the day/night button and key, the minimap toggle, the generated-building toggle and the collapsible panels all respond; no console errors and no failed network requests; 60 FPS at 1600x900.
  • npm run check reports plugins/juzicj/gz-pazhou-city: OK.
  • The package's own checks (node tools/lint.mjs, node tools/verify_world.mjs, node tools/serve_check.mjs) pass.

What was not verified

  • Other operating systems and other MiniMax Code versions.
  • Touch input, pointer lock inside a popped-out window, and very narrow panels.
  • The generated buildings are a deterministic fill of empty blocks, not surveyed geometry.

Remaining npm run check warnings

  • npm run check as a whole exits non-zero on this machine because two of the repository's own tests cannot create symlinks on Windows without the required privilege (files: a symlink inside the package is an error, files: a package root that is itself a symlink is rejected before walking — both fail with EPERM in the test setup, before any package is inspected). The package check itself reports OK.

Access declared by this Mini App

None. It declares no permissions: no Agent turns, no session reads, no tool or Connector calls, no microphone, camera or notifications, no Host navigation read. It reads no files and writes no files at runtime, spawns no processes and contacts no network hosts. Map data is © OpenStreetMap contributors under ODbL 1.0 and is attributed in the app and in docs/ATTRIBUTION.md; three.js r187 (MIT) is vendored in miniapp/client/vendor/.

Written by MiniMax Code (MCode)

Package layout

plugins/juzicj/gz-pazhou-city/

  • .minimax-plugin/plugin.json — plugin manifest (display name 广州琶洲—广州塔 3D 场景, category Other, one example query)
  • package.json — Mini App declaration (schemaVersion 2, mcode.miniApp → ./miniapp/miniapp.json)
  • miniapp/miniapp.json — payload roots, Node entry, /dashboard surface, no permissions
  • miniapp/node/server.mjs — static file server on context.listen, path-traversal guarded, disposes within 2 s
  • miniapp/client/index.html — Chinese UI shell with the instrument cluster, circular minimap and collapsible panels
  • miniapp/client/src/*.js — three.js scene: geometry builder, collision, player, minimap, HUD, city life (traffic, street lights, trees), time of day
  • miniapp/client/vendor/three.module.js, three.core.js — three.js r187, vendored so the app needs no build step and no CDN
  • miniapp/client/data/scene.json — the converted map scene (2,895 buildings, 2,833 road ways, 27 water bodies, 171 green areas, 23 landmarks)
  • docs/ATTRIBUTION.md — map-data provenance and licence
  • tools/*.py, tools/*.mjs — the offline conversion pipeline and the checks listed above
  • docs/screenshot.png, docs/screenshot-night.png — the app in day and at night

How the scene was built

  1. The OpenStreetMap extracts for the bounding box 113.312, 23.097, 113.372, 23.124 were downloaded with the public OSM API (/api/0.6/map tiles plus /api/0.6/relation/<id>/full for the water multipolygons).
  2. tools/build_scene.py converts them into scene.json: building footprints with heights, road ribbons with widths and lane counts, water and green polygons, named landmarks, and a deterministic fill for blocks that have no buildings in the map.
  3. tools/verify_scene.py checks the result and prints the statistics.

Buildings that come from OpenStreetMap and buildings that are generated are separate records (src is osm or infill), so the UI can show only what the map actually contains. The heights of three landmarks (Canton Tower 600 m, CTF Finance Centre 530 m, Guangzhou IFC 440 m) come from published figures rather than the map tags and are labelled as approximations in the app.

Repository notes

  • The plugin id gz-pazhou-city is unique in this repository (checked under plugins/*/`).
  • The two root README tables gained one row each.
  • The MIT license file uses Copyright (c) 2026 juzicj; change it if another holder should own the code.

Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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