Skip to content

StageFlow v1.1.2 — Responsive & FOV-Normalized 3D Billboard Labels

Choose a tag to compare

@taruma taruma released this 15 Nov 02:46
· 37 commits to main since this release
0cf2fe6

StageFlow v1.1.2 is a focused visual ergonomics and optical LOD patch on top of v1.1.1. It resolves inconsistent 3D billboard badge sizing across desktop camera distances and prevents badges from appearing oversized on mobile and narrow split-pane viewports, while keeping all label and sublabel text intact.


What's Fixed in v1.1.2

🏷️ Responsive & FOV-Normalized 3D Billboard Label Sizing (#16)

  • Tighter Perspective Scale Bounds (src/stage/labelLodMath.ts): Tightened MAX_PERSPECTIVE_SCALE from 1.55 to 1.08 and raised MIN_PERSPECTIVE_SCALE from 0.72 to 0.75 to eliminate close-range badge bloat on desktop and mobile while retaining subtle depth cueing.
  • Horizontal-FOV Distance Normalization (computeEffectiveLodDistanceM): Normalized LOD scaling and pill-to-dot collapse distances against horizontal angular coverage (aspectRatio * tan(fovY / 2)) anchored to StageFlow's 35mm full-frame baseline (REF_HALF_HORIZ_TAN), keeping telephoto (85mm) pills readable beyond 28m, collapsing wide-angle (24mm) clutter earlier, and keeping adaptive narrow-pane FOV widening (computeAdaptiveDioramaFovDeg) LOD-invariant—while preserving physical proximity culling (< 1.2m) on raw Euclidean distance.
  • Unified-Breakpoint CSS Sizing & Zero-Churn 60fps Sync (src/stage/StageBillboardLabel.tsx): Aligned getBillboardSizeTier() (COMPACT_CANVAS_WIDTH_PX = 768) with isNarrowDiorama (CompactDioramaHeader) so React re-renders only when crossing 768px, switching cleanly between standard (px-3 py-1, 13px/11px) and compact (px-2 py-0.5, 11px/10px) pill typography while passing live PerspectiveCamera.fov and canvas aspect ratio inside useLayoutEffect and useFrame.

Quality & Verification

  • Unit Test Suite: 265 deterministic tests passing across 22 Vitest suites (including 19 tests in tests/unit/billboardLabelLod.test.ts covering [0.75, 1.08] bounds, < 768px tier switching, 85mm/24mm FOV normalization, adaptive narrow-pane invariance, and physical proximity culling).
  • Static Checks: oxlint (0 warnings / 0 errors), strict TypeScript tsc -b, and Vite production build clean.

Upgrade & Usage Notes

  • Backward Compatibility: All v1.1.1, v1.1.0, and v1.0.0 YAML choreography scores remain 100% compatible without changes.

Full Changelog & Documentation

What's Changed

  • fix(stage): normalize 3D billboard label sizing & prepare v1.1.2 (#16) by @taruma in #17

Full Changelog: v1.1.1...v1.1.2