Repository navigation
Conversation
A render3d/ subpath with Tower3dView: the tower from the render model as a 3D model to orbit and zoom. Rooms, shafts, side walls and roofs merge into one buffer per band of 8 floors (rebuilt only when the band changes, one per frame); cars and people are instanced and the crowd is sampled to the tier's cap. Day, dusk and night follow the clock or a pinned time, with night colors drawn unlit so occupied rooms glow. Three quality tiers step down on long frames. three 0.187.0 is the new dependency. This is the Epic 1 prototype for the 5.x Tower in 3D view; it stays a draft until the gate is measured and the owner picks the look. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ms7trapMwkZkC9CZhRUNeK
… from git Draft-only: npm builds a git dependency only through prepare. This line comes out before any non-draft PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ms7trapMwkZkC9CZhRUNeK
Contributor
|
Gallery preview: https://components.verticopolis.com/pr-preview/pr-155/ Built from f6b48a2. It updates when a push changes the package or the gallery, and it goes away with the next gallery deploy after this pull request closes. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ms7trapMwkZkC9CZhRUNeK
8 of 12 tasks
…e three's types Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ms7trapMwkZkC9CZhRUNeK
The far plane was fixed at 1,200 units, and the opening view backs off past that to fit a wide lot in a tall, narrow canvas, so the whole tower was clipped and only the sky drew. The far plane now follows the camera's distance, and the opening view frames the built rooms rather than the empty lot around them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ms7trapMwkZkC9CZhRUNeK
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ms7trapMwkZkC9CZhRUNeK
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
This is the Epic 1 prototype for the 5.x Tower in 3D view, Story 1.1. The plan is in Verticopolis/web#2630 and the issue is Verticopolis/web#2629. The owner picked the free 3D camera from the 2026-11-25 look study and asked for a prototype on draft branches. It stays a draft. Nothing here merges until two things happen: the gate is measured on real devices (Story 1.2), and the owner picks the look (Story 1.3, design sign-off).
It adds a
render3d/subpath.Tower3dView.mount(canvas, { sim, catalog, rules })draws the tower from the render model as a 3D model you can orbit and zoom:looks3d.ts, all made in code. A test fails if a kind has none.stats()reports frame-time percentiles, draw calls and triangles.Refs Verticopolis/web#2629
Type of change
Quality gates
npm run typechecknpm run lintnpm run format:check(npm run formatfixes it)npm testpasses (202 files, 2,387 tests, 20 of them new) and so doesnpm run build(262 modules).Versioning
versionalone, or this is a release PR.changes/, or this PR changes nothing the package shipsComplexity
Hot paths and call frequency (tier), sizes, complexity before and after, remaining scans and why, caches kept or replaced (HP-8), invalidation evidence, measurements:
Tower3dView.tickruns once per animation frame, and only while the 3D window is open. Nothing here touches the side view's frame loop.O(cars)to place cars andO(chosen people)to place people. The crowd choice is held for 500 ms, then re-picked: a filter overcrowd.people, plus a sort when the crowd is over the cap.towerBandsis one pass over the units and transports to fingerprint each band. Only the bands whose fingerprint changed are rebuilt, one per frame.FrameClock.percentilesorts a copy of up to 2 s of frame times on every frame.Hot-path record (section 6): not yet. This is a draft prototype, and the review skill runs on the non-draft story PRs.
Screenshots / recordings
None in this description yet: the renders are made in a scratch harness, not the gallery. Day, dusk and night renders of the made-up tower go to the owner with the web preview for the look pick. A gallery page is part of Story 2.x.
Notes for reviewers
threeis a regular dependency. A game that never importsrender3d/*bundles none of it.Generated by Claude Code