The pedigree tree booted one WebGL context per node card (pooled by cullCanvasNodes
to on-screen nodes). A tree with many nodes visible at once could still exceed the
browser's ~16-context cap and blank/flicker. Replace it with installTreeScissor: one
renderer per .buddy-canvas (sitting above its dot-grid, below the panning card layer)
draws every node into its on-screen rect via the scissor test, clipped to the canvas
viewport — so the tree uses exactly 1 context regardless of size.
Node cards become transparent windows onto the shared canvas: the A/B badge moves
into the footer and selection shows as a card ring (both outside the thumb) so the
behind-content canvas never occludes them. The renderer keys on its real canvas
child (not a JS-prop lock) so it re-attaches after Gradio swaps the tree HTML, and
the loop self-disposes when its canvas is stripped. cullCanvasNodes is now a no-op.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(tools): place shared GL canvas behind content so page text shows
The single scissor canvas was z-index:50 (on top, pointer-events:none). That
composites fine in DevTools screenshots but on real Chrome the full-viewport
transparent WebGL layer occluded all page text (header, filter pills, card names).
Move it to z-index:-1 behind content (three.js multi-element pattern): the page
backdrop moves to <html>, <body> and card stages go transparent so the 3D shows
through the stage windows while all text/chrome paints normally on top.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
perf(tools): render all report cards from one WebGL context via scissor
Replace the per-card-context approach (capped at ~12 to stay under the browser's
~16-context hard limit, which also caused flicker as the browser killed and
recreated the oldest contexts) with a single shared renderer that draws every
card into its on-screen rect via the scissor test. Removes the cap entirely: all
106 parts / 52 creatures stay live at once with no flicker. Per-frame transparent
clear avoids scroll ghosting; per-card 256px shadow maps bound memory; minimal
document-level pointer hit-testing keeps drag-to-orbit.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(tools): live-3D Part Catalog page + compendium rework
Both report pages render every part/creature with the real in-game rig (shared
voxel-rig.js) instead of static thumbnails: production lighting, contact shadows,
ACES tone mapping, turntable, drag-to-orbit. A shared IntersectionObserver
context-cap manager (voxel-cards.js) keeps live WebGL contexts capped (~12,
nearest-to-viewport-center prioritized) so 106 parts / 52 creatures never blow the
browser's context limit. Part Catalog adds category sections + a full table.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(tools): extract shared voxel rig + parts-catalog data sync