From ea127ec1ae96cfd6286637aeace8c6f7389b25d9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 28 May 2026 14:26:19 +0100 Subject: [PATCH] Add built-in blackbody ramp resource --- .../Render/AquariumBuiltInFieldResources.cs | 21 ++++++++++++++++++ .../Assets/Textures/Gradients/blackbody.png | Bin 0 -> 17799 bytes state/evidence.jsonl | 1 + state/map.yaml | 4 ++++ 4 files changed, 26 insertions(+) create mode 100644 src/Aquarium.Engine.Contracts/Render/AquariumBuiltInFieldResources.cs create mode 100644 src/Aquarium.Engine/Assets/Textures/Gradients/blackbody.png diff --git a/src/Aquarium.Engine.Contracts/Render/AquariumBuiltInFieldResources.cs b/src/Aquarium.Engine.Contracts/Render/AquariumBuiltInFieldResources.cs new file mode 100644 index 0000000..6499adf --- /dev/null +++ b/src/Aquarium.Engine.Contracts/Render/AquariumBuiltInFieldResources.cs @@ -0,0 +1,21 @@ +namespace Aquarium.Engine.Render; + +public static class AquariumBuiltInFieldResources +{ + public const string BlackbodyRampResourceKey = "aquarium:resource:ramp:blackbody"; + public const string BlackbodyRampRelativePath = "Assets/Textures/Gradients/blackbody.png"; + + public static string ResolveBlackbodyRampPath(string? baseDirectory = null) => + System.IO.Path.Combine( + baseDirectory ?? System.AppContext.BaseDirectory, + "Assets", + "Textures", + "Gradients", + "blackbody.png"); + + public static AquariumFieldResourceDeclaration BlackbodyRamp(ulong version = 1, string? baseDirectory = null) => + AquariumFieldResourceDeclaration.LocalTexture2D( + BlackbodyRampResourceKey, + ResolveBlackbodyRampPath(baseDirectory), + version: version); +} diff --git a/src/Aquarium.Engine/Assets/Textures/Gradients/blackbody.png b/src/Aquarium.Engine/Assets/Textures/Gradients/blackbody.png new file mode 100644 index 0000000000000000000000000000000000000000..84c3544a7571220db42917516bb066ea6a3722c4 GIT binary patch literal 17799 zcmeI4cT`i^x5qD{(u)c<#0dcbkyM(AA(T+12?PmNLJ~rRkeEaRs0>Al_SxTa&gbmA?@iXa z>|5t-t022n761SR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de9%;Ibv~<2j1V{jLt}&wj?O?}3=ND;&_=6`Fj(xwBEJp)PTGn?+cBO) zU!>`vw66~q%Rpo42=D-hSWO3|sjH392w%FfA=MX)Gw{V=zDmys|4!P4#{!EGHDE@c z@!9`RhxmcacSG5+_+aV;&qygSu_nrlJ7fE|tzR7htch~LrSkZU@w3nr{`EARsxMRJ zV?1W!Y{pY*lp=q7r^mYNFTA zMfehb z8FV7*YubKo_-C6oxs~6ZPhZQx_vashPQ&|hcx4t`Si4L9VhK5c@dIYirM6kY3 zOcc^QBWnC&I|muNl^uNW5uh-g!cOEe#dSBwh+M6@Z!C7KV! zE5-!@BH9$=63qwV72|>c5p9ZbiRJ_Gig7`Jh&IKzMDu}o#ke3qM4Mt?P?fd8r_5&-@l13!BK zUhfqocnrLCc*1)oQUAF3N@p_@m{l7NR-k7@Pv kBxR=t`|k$lGd3m(z%OlGcU}L?W6%Wbt(~n3EWIQC4Y^=>r~m)} literal 0 HcmV?d00001 diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 98a2876..f0b2397 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -267,3 +267,4 @@ {"lesson":"AquariumAudioDocument now carries profile-keyed AquariumStreamingAudioBlock input lanes. AquariumStreamingDspHost maps declared channel indices into the persistent Faust DSP input array, processes the block, and AquariumSynthHost can optionally monitor selected output lanes. Aquarium.Engine.Tests proves declared input blocks are processed through a controlled streaming Faust graph. This closes the samples-enter-DSP seam; durable stem routing/publication remains separate.","timestamp":"2026-05-27T20:18:14+01:00","files":["src/Aquarium.Engine.Contracts/Audio/AquariumAudio.cs","src/Aquarium.Engine/Audio/AquariumStreamingDspHost.cs","src/Aquarium.Engine/Audio/AquariumSynthHost.cs","tests/Aquarium.Engine.Tests/SynthPlaybackTests.cs","state/map.yaml"],"source":"streaming DSP input block contract","topic":"streaming-audio-blocks"} {"lesson":"Processed streaming Faust DSP output lanes now become named AquariumAudioStemFrame records published through an engine-owned IAquariumAudioStemBus exposed by AquariumRuntimeServices. Streaming DSP programs may declare output stems; otherwise outputs receive deterministic outputN names. AquariumSynthHost publishes stem frames after processing and keeps optional monitor playback explicit. OBS-facing publication remains a separate host cut. Fensalir build, Aquarium.Engine.Tests, Mimir build, and Mimir --audio-actuator-bank-smoke passed.","timestamp":"2026-05-27T20:28:37+01:00","files":["src/Aquarium.Engine.Contracts/Audio/AquariumAudio.cs","src/Aquarium.Engine.Contracts/AquariumRuntimeServices.cs","src/Aquarium.Engine/Audio/AquariumAudioStemBus.cs","src/Aquarium.Engine/Audio/AquariumStreamingDspHost.cs","src/Aquarium.Engine/Audio/AquariumSynthHost.cs","src/Aquarium.Engine/AquariumHost.cs","tests/Aquarium.Engine.Tests/SynthPlaybackTests.cs","state/map.yaml"],"source":"streaming DSP stem publication cut","topic":"streaming-audio-stem-bus"} {"lesson":"The named D3D12 program-output texture is an external publication surface, so Fensalir must not leave it in CopyDest after publishing. D3D12Renderer now transitions the shared program texture back to Common after copying the completed backbuffer, letting OBS/EVE/native readers transition it for GPU-side reads without inheriting stale internal producer state. Fensalir build passed; Mimir's Eve relay reader now transitions the shared texture Common -> CopySource -> Common before readback.","timestamp":"2026-05-27T21:25:38+01:00","files":["src/Aquarium.Engine/Render/D3D12Renderer.cs","state/map.yaml"],"source":"OBS direct program texture source cut","topic":"program-output-shared-texture-state"} +{"lesson":"Fensalir now owns the reusable blackbody ramp as a built-in local Texture2D field resource. The asset lives at Assets/Textures/Gradients/blackbody.png, is copied with engine texture assets, and AquariumBuiltInFieldResources exposes the stable resource key/path/declaration for clients so client render DSL does not depend on project-local absolute asset paths.","timestamp":"2026-05-28T00:00:00+01:00","files":["src/Aquarium.Engine.Contracts/Render/AquariumBuiltInFieldResources.cs","src/Aquarium.Engine/Assets/Textures/Gradients/blackbody.png","state/evidence.jsonl"],"source":"Mimir spectrum dashboard ramp promotion","topic":"built-in-blackbody-ramp-resource"} diff --git a/state/map.yaml b/state/map.yaml index 5512024..8dcc2b9 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -15,6 +15,7 @@ current_model: renderer: src/Aquarium.Engine/Render shaders: src/Aquarium.Engine/Render/Shaders assets: src/Aquarium.Engine/Assets + built_in_field_resources: src/Aquarium.Engine.Contracts/Render/AquariumBuiltInFieldResources.cs scripts: scripts fractal: implementation: src/Aquarium.Engine.Fractal @@ -40,6 +41,9 @@ invariants: Treating a pass as "just drawing pixels" violates the engine invariant unless it is explicitly marked as a fallback/debug draw with no authority. - Client repos own policy, role names, narrative semantics, app state, and client shaders. + - Fensalir may own reusable built-in field resources, such as the blackbody + ramp, when the resource is generic engine utility. Clients should reference + those through contracts instead of hardcoded project-local asset paths. - Epiphany Aquarium depends on Fensalir; Fensalir must not depend on Epiphany. - Demo projects inside this repo are allowed to exercise engine features but must not become hidden engine policy. - Public `Aquarium.*` assembly names remain for continuity until a deliberate namespace/package migration.