[claude] Session power meter — 3D balance visualizer (#16) #23

Closed
claude wants to merge 1 commits from claude/the-nexus:claude/issue-16 into main
Member

Fixes #16

Implemented the session power meter with two layers:

3D scene object placed at (-9, 0, 5) left of center:

  • Glass cylinder housing (MeshPhysicalMaterial, transparent)
  • Animated energy fill via custom GLSL shader — clips fragments by UV.y against uFill, teal→purple gradient, scan-line ripple, bright edge band at fill level
  • Switches to red/orange palette when power drops below 20%
  • Floating spinning orb that tracks fill height with subtle bob
  • 3 accent rings that dim when above the fill level
  • Dynamic PointLight tracks orb position and intensity
  • Canvas label: SESSION POWER / Fund once · Ask many

HUD panel (top-right corner):

  • Live percentage + gradient bar with glowing tip marker
  • Credits counter (out of 10,000)
  • SOVEREIGN tier badge
  • Fund once · Ask many models tagline
  • Low-power warning state (<20%) with red bar, pulsing border, and flashing warning text

Session power drains slowly over time (~1% per 5 seconds) to demo the live visualization. Ready to wire to a real credits/subscription API.

Fixes #16 Implemented the session power meter with two layers: **3D scene object** placed at (-9, 0, 5) left of center: - Glass cylinder housing (MeshPhysicalMaterial, transparent) - Animated energy fill via custom GLSL shader — clips fragments by UV.y against uFill, teal→purple gradient, scan-line ripple, bright edge band at fill level - Switches to red/orange palette when power drops below 20% - Floating spinning orb that tracks fill height with subtle bob - 3 accent rings that dim when above the fill level - Dynamic PointLight tracks orb position and intensity - Canvas label: SESSION POWER / Fund once · Ask many **HUD panel** (top-right corner): - Live percentage + gradient bar with glowing tip marker - Credits counter (out of 10,000) - SOVEREIGN tier badge - Fund once · Ask many models tagline - Low-power warning state (<20%) with red bar, pulsing border, and flashing warning text Session power drains slowly over time (~1% per 5 seconds) to demo the live visualization. Ready to wire to a real credits/subscription API.
claude added 1 commit 2026-03-23 22:35:32 +00:00
Implements issue #16. Adds a 3D power gauge to the Three.js scene and a
matching HUD panel showing remaining session credits.

3D scene object (left side of Nexus, visible from start position):
- Glass outer tube with animated energy fill (shader clips by UV.y per power level)
- Teal→purple gradient fill with scan-line and pulse animation
- Bright band at the top of the fill level
- Floating IcosahedronGeometry orb that hovers at the fill height
- Three spinning accent rings that dim above the fill level
- Point light whose intensity tracks session power
- Canvas-texture label: "SESSION POWER / Fund once · Ask many"

HUD panel (top-right corner):
- Live percentage and color-coded progress bar
- Credits counter (out of 10,000)
- Model tier badge ("SOVEREIGN")
- "Fund once · Ask many models" tagline
- Low-power warning state (<20%) turns bar/label red with alert animation

Both 3D object and HUD update every frame; session power drains very slowly
over time to demonstrate the live visualizer behavior.

Fixes #16

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude force-pushed claude/issue-16 from bdd9144ec8 to 2a7dbef0c9 2026-03-24 01:24:43 +00:00 Compare
claude force-pushed claude/issue-16 from 2a7dbef0c9 to d2706b18c2 2026-03-24 01:27:04 +00:00 Compare
Owner

Closing: foundation PRs #2, #28, #34 have been merged. This PR conflicts with the new base. The corresponding issue remains open and assigned — claude will re-implement on top of the merged foundation as a sequential PR.

Closing: foundation PRs #2, #28, #34 have been merged. This PR conflicts with the new base. The corresponding issue remains open and assigned — claude will re-implement on top of the merged foundation as a sequential PR.
Timmy closed this pull request 2026-03-24 01:36:17 +00:00

Pull request closed

Sign in to join this conversation.