The ships of Tiefenkontakt (the browser submarine game, Three.js) come
over as polygon meshes for our painter: tools/tiefenkontakt/export_models.mts
writes the opaque triangles of 22 designs from a Tiefenkontakt checkout,
tools/build_tk_models.py snaps, decimates the smooth submarine hulls,
joins coplanar faces of one colour, shares a 40-colour palette and keeps
the navigation lamps (data/unit_models/tiefenkontakt.json.gz, commit
embedded).
src/ui/tk_models.py maps catalog types to designs: corvettes, frigates
and destroyers up to 160 m, container ships, tankers, bulk carriers,
reefers, RoRo/car carriers, general cargo, heavy lift, ferries, tugs,
trawlers and all submarines (79 of 111 types); carriers, cruisers, big
destroyers, cruise ships, auxiliaries and aircraft keep their own models.
Each is stretched to its type's beam and draught; light positions come
from the design. The browser loads one module per design
(views/tk/<name>.js) and stretches it the same way (parity test in
Chromium).
uConsole: a detailed partition is built in a background thread on first
sight while the flat silhouette shows (model_bsp.tree_if_ready), and
eyepiece sprites grow in ~4 % steps (scene_length). By day the models
show their paint (scene_vivid), fading to the steel outline at night and
in haze, on both renderers.
Docs: manual (bridge, editors), changelog, README, notices, AGENTS;
screenshots and manual figures regenerated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUgHR8PXDGer54DH6ie