Skip to content

Labels on the dome - #1145

Merged
rulkens merged 29 commits into
mainfrom
worktree-dome-labels
Nov 19, 2026
Merged

rulkens merged 29 commits into
mainfrom
worktree-dome-labels

Conversation

@rulkens

@rulkens rulkens commented Nov 19, 2026

Copy link
Copy Markdown
Owner

2D labels and their leaders draw once on the dome's fisheye image, upright toward the zenith, at the dome's own pixel scale. Follows the prep PR #1144.

  • OutputProjection gains equidistant; projectLabel has the branch in TS and WGSL (parity-tested). Every rig names its projection.
  • Text height and ink boxes read the projection, so nothing in the label path assumes a flat lens. The near-hide rule measures distance instead of view depth.
  • A new occlusion-mask pass writes coverage and distance per pixel; each dome face runs it and the resample carries it to the fisheye image, where the dome's labels read it. Mono keeps its sampled-depth test.
  • Frame contract: a view names its layer in layered targets; a render step can declare mask: { sample }.

Plan: docs/superpowers/plans/2026-11-19-dome-labels.md. Open: owner shots (C3), perf (D1), docs (D2), whole-branch review.

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
skymap 675457e Commit Preview URL

Branch Preview URL
Nov 19 2026, 02:12 PM

The zenith cap covered the angular turn only; the pixel-floor push went on in full and could land the anchor behind the zenith, the card flipped over its subject. The push is now clamped to the angle left to up3, in both twins. A subject exactly on up3 is no longer lifted: every direction from there leads past it.
Only the dome hands a mask over; mono no longer builds two shader modules, two pipelines and a bind group layout per label renderer that it never uses.
Tests that restated shader text are gone, headers are back inside the comment budget, and the plan's superseded B2 body points at B3. The resample's gate stays: switching the mask pass off in the DebugPanel is the frame no face wrote its mask, and the header now says so.
Full size cost 233 MB and about 4% of the frame at 2205 px; half size takes 58 MB and about 2%. Nothing indexes the mask 1:1 any more: the mask pass takes the most coverage and the nearest surface of the foreground texels under each mask texel, the resample maps by uv, and the label shaders map a window px by the output size.
The quad is max(width, 2) px and the fragment's one-pixel fade sits inside it, so the ink is max(width, 2) - 1 px: one pixel up to an authored 2 px, unchanged above. The 1.25 px threshold let the dome's 1.41 px and mono's 1.25 px leaders through with a quarter to half a pixel of ink.
Done audit READY: CI green on 675457e; mono matches the base outside the
owner-accepted changes; dome checks owner-signed. Plan and spec move to
completed/, ledger archived.
@rulkens
rulkens marked this pull request as ready for review November 19, 2026 14:29
@rulkens
rulkens merged commit d807fe7 into main Nov 19, 2026
3 checks passed
@rulkens
rulkens deleted the worktree-dome-labels branch November 19, 2026 14:56
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