diff --git a/src/Mimir.Runtime/MimirRuntime.cs b/src/Mimir.Runtime/MimirRuntime.cs index 6383926..d35cfe4 100644 --- a/src/Mimir.Runtime/MimirRuntime.cs +++ b/src/Mimir.Runtime/MimirRuntime.cs @@ -31,6 +31,8 @@ public sealed class MimirRuntime : IAquariumRuntime private const float SpectrumCameraFitPadding = 1.12f; private const float SpectrumFrustumMinimumNear = 0.01f; private const float SpectrumSplineTubePadding = 0.18f; + private const float SpectrumSplineEmission = 1.85f; + private const float SpectrumSplineHotBloom = 8.0f; private const int DefaultSpectrumSplineWindowStride = 4; private const int DefaultSpectrumSplineBandStride = 2; private const int DefaultSpectrumSplineSubdivisions = 1; @@ -917,7 +919,7 @@ public sealed class MimirRuntime : IAquariumRuntime splines.Add(new AquariumSpline3D( $"spectrum-{spectrum.SourceId}-{windowIndex}", points, - new AquariumSplineStyle(0.018f, 1.35f, 1.0f, 0.78f, 0.22f), + new AquariumSplineStyle(0.020f, SpectrumSplineEmission, 1.0f, 0.72f, 0.20f), CatmullRomSubdivisions: subdivisions)); } } @@ -998,10 +1000,19 @@ public sealed class MimirRuntime : IAquariumRuntime private static Vector4 SpectrumColor(float normalized, float alpha) { var hot = Math.Clamp(normalized, 0.0f, 1.0f); - var red = 0.90f + 2.20f * hot; - var green = 0.14f + 1.55f * hot * hot; - var blue = 0.42f * (1.0f - hot) + 0.08f * hot; - return new Vector4(red, green, blue, alpha); + var hardDrive = SmoothStep(0.58f, 0.96f, hot); + var bloom = 1.0f + SpectrumSplineHotBloom * hardDrive * hardDrive; + var red = (0.72f + 2.35f * hot) * bloom; + var green = (0.10f + 1.90f * hot * hot) * bloom; + var blue = (0.40f * (1.0f - hot) + 0.16f * hot + 0.22f * hardDrive) * (1.0f + 2.8f * hardDrive); + var drivenAlpha = alpha * Math.Clamp(0.34f + 0.88f * hot + 0.35f * hardDrive, 0.24f, 1.0f); + return new Vector4(red, green, blue, drivenAlpha); + } + + private static float SmoothStep(float edge0, float edge1, float value) + { + var t = Math.Clamp((value - edge0) / Math.Max(0.0001f, edge1 - edge0), 0.0f, 1.0f); + return t * t * (3.0f - 2.0f * t); } private static string SpectrumBars(MimirAudioSpectrumSnapshot spectrum) diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 5112786..6f9ca53 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -128,3 +128,4 @@ {"status":"ok","note":"Spectrum dashboard authority cut: Mimir no longer submits AquariumBufferFieldFrame/reservoir splats for the live audio spectrum view. The surface is direct AquariumSplineFrame tube trails only; config/mimir-spectrum-field.aquafield was deleted so the old ReservoirSplats path cannot reappear through configuration.","type":"correction","ts":"2026-05-26T10:08:18+01:00"} {"status":"ok","note":"Corrected the previous overcut: the spectrum dashboard is back on a single AquariumBufferFieldFrame reservoir authority with direct spline triangles disabled. Defaults are 32768 reservoir samples, 8192 updates/frame, one candidate/update, and WorldCenterRadius=(0,0,0,1) to prevent sample radii from inflating into giant discs. Fensalir transparent-field splats no longer enforce the 0.035*fieldRadius minimum billboard radius. Runtime proof logs 32768 visible splats at about 3-6 ms CPU frame time and about 0.2 ms command recording. Compute sampling is still hash-jittered rather than true blue-noise texture driven.","type":"correction","ts":"2026-05-26T10:31:00+01:00"} {"ts": "2026-05-26T10:48:57+01:00", "type": "correction", "status": "ok", "note": "Spectrum dashboard authority is direct spline-tube SDF again: Mimir submits AquariumSplineFrame trails and leaves AquariumBufferFieldFrame empty, so fractal ReservoirSplats cannot own the view. The live run artifacts/runtime/mimir-spectrum-sdf-temporal-sparse.out.log showed four 192 kHz ASIO lanes, no D3D12 fractal reservoir lines, and about 4-7 ms D3D12 CPU frames with record near 3 ms using sparse rotating spline budgets."} +{"ts": "2026-05-26T11:01:55+01:00", "type": "implementation", "status": "ok", "note": "Spectrum spline heat now drives HDR bloom instead of relying on flat color. Mimir maps normalized band energy through a hard-drive curve: quiet bins stay dim/transparent, hot bins raise alpha and HDR red/yellow/white energy before Fensalir bloom/ACES tonemapping. Live ASIO proof artifacts/runtime/mimir-spectrum-hot-bloom-screen.png shows loopback lanes glowing while quiet lanes stay subdued; frame timing remained about 4.5-6.9 ms with no ReservoirSplats/fractal dashboard path."}