Add fixed Fensalir capture lane

This commit is contained in:
Meta Vens 2026-05-22 01:19:40 +01:00
commit 40cad8364a
11 changed files with 234 additions and 29 deletions

View file

@ -0,0 +1,88 @@
param(
[string]$OutputPath,
[int]$Width = 1280,
[int]$Height = 720,
[int]$ReadyFrames = 8,
[int]$RetainSlots = 4,
[int]$TimeoutSeconds = 120
)
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
if ([string]::IsNullOrWhiteSpace($OutputPath)) {
$OutputPath = Join-Path $repoRoot ("artifacts\fensalir-captures\fensalir-fixed-" + (Get-Date -Format "yyyyMMdd-HHmmss") + ".png")
}
$OutputPath = [System.IO.Path]::GetFullPath($OutputPath)
$clientProject = Join-Path $repoRoot "src\Aquarium.Fensalir\Aquarium.Fensalir.csproj"
$devRoot = Join-Path $repoRoot "artifacts\dev-reload"
$slotRoot = Join-Path $devRoot "slots"
$slotPath = Join-Path $slotRoot ("fensalir-capture-" + (Get-Date -Format "yyyyMMdd-HHmmss") + "-" + [guid]::NewGuid().ToString("N").Substring(0, 8))
$cachePath = Join-Path $devRoot "fensalir-capture-cultcache\aquarium-client.msgpack"
$stdoutLog = Join-Path $devRoot "fensalir-capture.out.log"
$stderrLog = Join-Path $devRoot "fensalir-capture.err.log"
New-Item -ItemType Directory -Force -Path $slotPath | Out-Null
New-Item -ItemType Directory -Force -Path (Split-Path $cachePath) | Out-Null
New-Item -ItemType Directory -Force -Path (Split-Path $OutputPath) | Out-Null
Write-Host "Building Fensalir capture slot:"
Write-Host " $slotPath"
dotnet build (Join-Path $repoRoot "src\Aquarium.Engine\Aquarium.Engine.csproj") -c Debug -o $slotPath /p:UseAppHost=true
if ($LASTEXITCODE -ne 0) {
throw "Engine build failed with exit code $LASTEXITCODE."
}
dotnet build $clientProject -c Debug -o $slotPath /p:UseAppHost=false
if ($LASTEXITCODE -ne 0) {
throw "Fensalir client build failed with exit code $LASTEXITCODE."
}
$exePath = Join-Path $slotPath "Aquarium.Engine.exe"
$clientAssembly = Join-Path $slotPath "Aquarium.Fensalir.dll"
$arguments = @(
"--headless",
"--headless-width", $Width,
"--headless-height", $Height,
"--client-assembly", $clientAssembly,
"--cache", $cachePath,
"--shader-source", (Join-Path $slotPath "Render\Shaders\D3D12HeightField.hlsl"),
"--capture-frame", $OutputPath
)
$env:AQUARIUM_HEADLESS_READY_FRAMES = [string][Math]::Max(1, $ReadyFrames)
$process = Start-Process -FilePath $exePath -ArgumentList $arguments -NoNewWindow -PassThru -RedirectStandardOutput $stdoutLog -RedirectStandardError $stderrLog
if (-not $process.WaitForExit([Math]::Max(1, $TimeoutSeconds) * 1000)) {
$process.Kill($true)
$tail = if (Test-Path $stderrLog) { Get-Content -Path $stderrLog -Tail 80 } else { "<stderr missing>" }
throw "Fensalir capture timed out after $TimeoutSeconds seconds.`n$($tail -join [Environment]::NewLine)"
}
$process.WaitForExit()
$process.Refresh()
$exitCode = $process.ExitCode
if ($null -eq $exitCode -and (Test-Path $OutputPath)) {
$exitCode = 0
}
if ($exitCode -ne 0) {
$tail = if (Test-Path $stderrLog) { Get-Content -Path $stderrLog -Tail 80 } else { "<stderr missing>" }
throw "Fensalir capture failed with exit code $exitCode.`n$($tail -join [Environment]::NewLine)"
}
if (-not (Test-Path $OutputPath)) {
throw "Fensalir capture did not produce expected PNG: $OutputPath"
}
if ($RetainSlots -gt 0) {
Get-ChildItem -Path $slotRoot -Directory -ErrorAction SilentlyContinue |
Where-Object { $_.Name -like "fensalir-capture-*" } |
Sort-Object LastWriteTimeUtc -Descending |
Select-Object -Skip $RetainSlots |
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
}
Write-Host "Fensalir frame captured:"
Write-Host " $OutputPath"

View file

@ -15,8 +15,9 @@ public static class AquariumHost
using var runtimeLoader = new ClientRuntimeLoader(runtimeOptions, ParseClientAssemblyPath(args), ParseClientReloadPointerPath(args));
var runtime = runtimeLoader.Load();
var input = new InputState();
var width = runtime.Options.Headless ? 640 : 1280;
var height = runtime.Options.Headless ? 360 : 720;
var headlessSize = ParseHeadlessSize(args);
var width = runtime.Options.Headless ? headlessSize.Width : 1280;
var height = runtime.Options.Headless ? headlessSize.Height : 720;
var iconPath = Path.Combine(AppContext.BaseDirectory, "Assets", "Fensalir-Icon.ico");
var splashPath = Path.Combine(AppContext.BaseDirectory, "Assets", "Fensalir-Splash.bmp");
using var window = Win32Window.Create("Fensalir", width, height, input, iconPath, splashPath, visible: !runtime.Options.Headless);
@ -30,6 +31,7 @@ public static class AquariumHost
runtime.RenderPlan,
runtime.GraphicsSettings,
message => window.PaintSplash("Fensalir", message));
renderer.DebugUiVisible = !runtime.Options.Headless;
var settingsRuntime = runtimeLoader.Runtime;
var frameClock = Stopwatch.StartNew();
@ -37,6 +39,8 @@ public static class AquariumHost
var frames = 0;
var readyFrames = 0;
var requiredReadyFrames = ParseHeadlessReadyFrames();
var captureFramePath = ParseCaptureFramePath(args);
var capturedFrame = false;
while (true)
{
@ -51,6 +55,11 @@ public static class AquariumHost
lastFrame = now;
renderer.UpdateUi(input, runtimeLoader.Runtime.Ui);
if (runtime.Options.Headless)
{
renderer.DebugUiVisible = false;
}
var runtimeInput = renderer.CapturesInput ? input.WithoutInteractiveInput() : input;
if (!renderer.CapturesInput)
{
@ -81,6 +90,16 @@ public static class AquariumHost
readyFrames++;
}
if (runtime.Options.Headless
&& !capturedFrame
&& !string.IsNullOrWhiteSpace(captureFramePath)
&& readyFrames >= requiredReadyFrames)
{
renderer.SaveFramePng(captureFramePath);
Console.WriteLine($"Headless Aquarium frame captured: {Path.GetFullPath(captureFramePath)}");
capturedFrame = true;
}
if (runtime.Options.Headless && frames >= 2 && readyFrames >= requiredReadyFrames)
{
Console.WriteLine("Headless Aquarium completed requested frames.");
@ -103,6 +122,27 @@ public static class AquariumHost
: 1;
}
private static (int Width, int Height) ParseHeadlessSize(IReadOnlyCollection<string> args)
{
var width = ParsePositiveIntArgument(args, "--headless-width", "AQUARIUM_HEADLESS_WIDTH", 640);
var height = ParsePositiveIntArgument(args, "--headless-height", "AQUARIUM_HEADLESS_HEIGHT", 360);
return (width, height);
}
private static string? ParseCaptureFramePath(IReadOnlyCollection<string> args)
{
var values = args.ToArray();
for (var index = 0; index < values.Length - 1; index++)
{
if (string.Equals(values[index], "--capture-frame", StringComparison.OrdinalIgnoreCase))
{
return values[index + 1];
}
}
return Environment.GetEnvironmentVariable("AQUARIUM_CAPTURE_FRAME");
}
private static string? ParseCachePath(IReadOnlyCollection<string> args)
{
var values = args.ToArray();
@ -180,6 +220,23 @@ public static class AquariumHost
: null;
}
private static int ParsePositiveIntArgument(IReadOnlyCollection<string> args, string name, string environmentName, int fallback)
{
var values = args.ToArray();
for (var index = 0; index < values.Length - 1; index++)
{
if (string.Equals(values[index], name, StringComparison.OrdinalIgnoreCase)
&& int.TryParse(values[index + 1], out var value))
{
return Math.Max(1, value);
}
}
return int.TryParse(Environment.GetEnvironmentVariable(environmentName), out var environmentValue)
? Math.Max(1, environmentValue)
: fallback;
}
private static IAquariumRenderer CreateRenderer(
IntPtr windowHandle,
int width,

View file

@ -130,6 +130,15 @@ public sealed class FensalirRuntime : IAquariumRuntime
internal void SetOptions(AquariumRuntimeOptions options)
{
Options = options;
if (options.Headless)
{
autoDrift = false;
timeSeconds = 4.0f;
previousTimeSeconds = timeSeconds - (1.0f / 60.0f);
orbitYaw = 0.0f;
orbitPitch = 0.12f;
orbitDistance = 6.1f;
}
}
private Vector3 ComposeCamera(Vector3 target)

View file

@ -5,7 +5,7 @@ namespace Aquarium.Fensalir;
public static class FensalirSceneBuilder
{
private static readonly Vector3 SpineCenter = new(0.0f, 0.18f, 2.45f);
private static readonly Vector3 SpineCenter = new(0.0f, -0.55f, 2.9f);
private const float SpineBoundRadius = 5.8f;
public static AquariumSceneState Build(float timeSeconds, float previousTimeSeconds)

View file

@ -197,16 +197,25 @@ float fractalNoise3(float3 p)
float3 backgroundRadiance(float3 direction)
{
float horizon = smoothstep(-0.24, 0.42, direction.z);
float verticalAxis = pow(saturate(1.0 - abs(direction.x) * 6.4), 3.0) * smoothstep(-0.18, 0.72, direction.z);
float hall = pow(saturate(1.0 - abs(abs(direction.x) - 0.22) * 12.0), 2.0) * smoothstep(-0.08, 0.58, direction.z);
float horizon = smoothstep(-0.28, 0.34, direction.z);
float verticalAxis = pow(saturate(1.0 - abs(direction.x) * 7.8), 3.0) * smoothstep(-0.18, 0.76, direction.z);
float hall = pow(saturate(1.0 - abs(abs(direction.x) - 0.24) * 11.0), 2.0) * smoothstep(-0.10, 0.62, direction.z);
float fog = pow(saturate(fractalNoise3(direction * 4.1 + float3(0.0, timeSeconds * 0.015, 0.0)) - 0.18), 2.2);
float2 hallPoint = float2(direction.x * 8.0, direction.z * 5.8 + 1.1);
float cathedralField = max(0.0, abs(terrainHeight(hallPoint)) - 0.022);
float cathedralPane = smoothstep(0.001, 0.016, cathedralField) * smoothstep(-0.22, 0.74, direction.z);
float verticalShard = pow(saturate(1.0 - abs(frac((direction.x + 0.5) * 28.0) - 0.5) * 2.0), 22.0);
float horizonLine = exp(-abs(direction.z + 0.095) * 34.0);
float runeDust = pow(saturate(fractalNoise3(float3(hallPoint * 4.0, 3.0)) - 0.54), 5.0) * cathedralPane;
float3 voidColor = lerp(float3(0.001, 0.006, 0.009), float3(0.018, 0.055, 0.062), horizon);
float3 cyan = float3(0.50, 1.55, 2.25) * verticalAxis * 0.62;
float3 magenta = float3(1.25, 0.12, 0.82) * hall * 0.18;
float3 magenta = float3(1.25, 0.12, 0.82) * (hall * 0.16 + horizonLine * 0.11);
float3 mist = float3(0.12, 0.36, 0.38) * fog * (0.18 + horizon * 0.24);
return voidColor + cyan + magenta + mist;
float3 cathedral = float3(0.10, 0.66, 0.88) * cathedralPane * (0.22 + verticalShard * 0.35);
cathedral += float3(1.15, 0.16, 0.72) * cathedralPane * smoothstep(0.12, 0.52, abs(direction.x)) * 0.16;
cathedral += float3(1.0, 0.74, 0.28) * runeDust * 0.22;
return voidColor + cyan + magenta + mist + cathedral;
}
float3 surfaceMirrorRadiance(float3 p, float3 direction, out float3 normal)

View file

@ -25,41 +25,69 @@ float sdDiamond(float3 p, float3 radius)
return (q.x + q.y + q.z - 1.0) * min(radius.x, min(radius.y, radius.z));
}
float sdDiamondShell(float3 p, float3 radius, float thickness)
{
return abs(sdDiamond(p, radius)) - thickness;
}
float sdDiamondPane(float3 p, float2 radius, float halfDepth, float thickness)
{
float outline = abs((abs(p.x) / max(radius.x, 0.001)) + (abs(p.z) / max(radius.y, 0.001)) - 1.0) * min(radius.x, radius.y) - thickness;
float depth = abs(p.y) - halfDepth;
return max(outline, depth);
}
float fensalirSpineDistance(float3 local)
{
float core = sdCappedCylinderZ(local - float3(0.0, 0.0, 0.18), 0.045, 2.75);
float core = sdCappedCylinderZ(local - float3(0.0, 0.0, 0.24), 0.018, 3.05);
float diamonds = 999.0;
float panes = 999.0;
[unroll]
[loop]
for (int index = 0; index < 8; index++)
{
float t = (float)index;
float z = -1.34 + t * 0.47;
float z = -1.42 + t * 0.52;
float pulse = 0.5 + 0.5 * sin(timeSeconds * 0.42 + t * 1.7);
float side = lerp(0.22, 0.46, smoothstep(0.0, 7.0, t)) * lerp(0.92, 1.08, pulse);
float broadMiddle = smoothstep(0.0, 3.5, t) * smoothstep(7.5, 3.5, t);
float side = lerp(0.42, 0.88, broadMiddle) * lerp(0.94, 1.04, pulse);
float3 q = local - float3(0.0, 0.0, z);
q.xy = mul(float2x2(cos(t * 0.42), -sin(t * 0.42), sin(t * 0.42), cos(t * 0.42)), q.xy);
diamonds = min(diamonds, sdDiamond(q, float3(side, side * 0.58, 0.24)));
diamonds = min(diamonds, sdDiamondPane(q, float2(side, 0.31), 0.024, 0.016));
}
float haloGlass = sdCappedCylinderZ(local - float3(0.0, 0.0, 0.1), 0.18, 2.45);
return min(min(core, diamonds), haloGlass);
[loop]
for (int paneIndex = 0; paneIndex < 4; paneIndex++)
{
float side = paneIndex < 2 ? -1.0 : 1.0;
float rank = (float)(paneIndex % 2);
float x = side * (0.36 + rank * 0.32);
float z = -0.82 + rank * 0.78;
float3 p = local - float3(x, 0.02, z);
p.x -= side * p.z * (0.16 + rank * 0.08);
panes = min(panes, sdRoundBox(p, float3(0.014, 0.018, 1.35 - rank * 0.16), 0.012));
}
return min(core, min(diamonds, panes));
}
float fensalirPillarDistance(float3 local)
{
float pillars = 999.0;
[unroll]
for (int index = 0; index < 4; index++)
[loop]
for (int index = 0; index < 12; index++)
{
float side = index < 2 ? -1.0 : 1.0;
float rank = (float)(index % 2);
float x = side * (1.1 + rank * 0.82);
float y = 0.34 + rank * 0.42;
float side = index < 6 ? -1.0 : 1.0;
float rank = (float)(index % 6);
float x = side * (0.92 + rank * 0.38);
float y = 0.32 + rank * 0.16;
float3 p = local - float3(x, y, 0.0);
float lean = side * (0.08 + rank * 0.04);
float lean = side * (0.06 + rank * 0.018);
p.x -= p.z * lean;
pillars = min(pillars, sdRoundBox(p, float3(0.028 + rank * 0.012, 0.055, 2.55), 0.018));
pillars = min(pillars, sdRoundBox(p, float3(0.015 + rank * 0.003, 0.038, 2.15 + rank * 0.19), 0.012));
float3 rib = local - float3(side * (0.7 + rank * 0.34), y - 0.1, -1.2 + rank * 0.28);
rib.x -= side * rib.z * 0.34;
pillars = min(pillars, sdRoundBox(rib, float3(0.012, 0.028, 0.72), 0.01));
}
return pillars;
@ -119,14 +147,14 @@ SdfSurface sdfSurface(float3 p, int sdfIndex)
{
surface.baseColor = float3(0.35, 0.86, 0.98);
surface.roughness = 0.06;
surface.emission = float3(0.35, 1.55, 2.45) * (1.2 + coreGlow * 4.0 + rune * 1.8);
surface.emission = float3(0.35, 1.55, 2.45) * (2.0 + coreGlow * 5.6 + rune * 2.4);
}
else if (nearest == pillars)
{
surface.baseColor = float3(0.018, 0.030, 0.034);
surface.metallic = 0.35;
surface.roughness = 0.34;
surface.emission = float3(0.75, 0.03, 0.48) * (0.08 + magentaEdge);
surface.emission = float3(0.75, 0.03, 0.48) * (0.13 + magentaEdge + rune * 0.10);
}
else
{

View file

@ -13,4 +13,8 @@ ripple magenta-right 2.4 -0.72 0.64 2.6 -0.12 4.4 0.9 0.004 0.022 17.0 0.17 1.42
ripple hall-wake 0 1.2 4.8 1.2 0 3.0 1.1 -0.006 0.019 11.0 -0.08 1.25 29 hall-wake
ifs edge-reeds 3 2 -6.5 -0.8 0.52 1.8 0.48 3.5 0.91 5.0 1.05 0.006 31 reed-shadow
ifs edge-reeds 3 2 6.5 -0.7 0.52 1.8 0.48 3.5 -0.91 5.0 1.05 0.006 37 reed-shadow
ifs micro-ripples 4 3 0 -1.6 2.8 1.2 0.42 2.6 0.37 6.2 0.8 0.003 41 micro-ripple
ifs micro-ripples 3 2 0 -1.6 2.8 1.2 0.42 2.6 0.37 6.2 0.8 0.003 41 micro-ripple
ifs hall-spires 3 2 0 2.35 5.2 0.42 0.52 2.2 0.0 5.4 1.15 0.028 47 cathedral-spire
ifs rune-strata 3 2 0 3.15 3.2 0.22 0.46 2.8 0.42 7.0 0.92 0.018 53 cathedral-rune
ifs magenta-buttress 2 2 -2.4 1.1 1.6 0.28 0.58 2.1 0.72 5.4 1.1 0.020 59 cathedral-magenta
ifs magenta-buttress 2 2 2.4 1.1 1.6 0.28 0.58 2.1 -0.72 5.4 1.1 0.020 61 cathedral-magenta

View file

@ -209,3 +209,4 @@
{"timestamp":"2026-05-21T12:05:00+01:00","topic":"fractal-splat-taa-guide-schema","lesson":"D3D12FractalSplatRender now writes the shared reservoir/TAA guide schema instead of leaking backend layer validation into resolver fields. The guide is x combined reservoir confidence, y sample age in frames from the oldest resident Form/Appearance/Transport row update, z domain validity, w invalidation code. This matches D3D12Post.hlsl expectations and docs/temporal-spatial-evidence-reservoir.md; the previous x/y/z = SDF/PBR/radiosity validation mapping made the resolver interpret PBR validation as sample age and radiosity validation as domain validity.","files":["src/Aquarium.Engine/Render/Shaders/D3D12FractalSplatRender.hlsl","state/map.yaml","state/memory.json"],"source":"continued TAA/reservoir integration after noticing the live guide buffer violated its own documented schema"}
{"timestamp":"2026-05-21T12:10:00+01:00","topic":"reservoir-guide-debug-view","lesson":"Render debug mode 12 now visualizes the reservoir/TAA guide schema directly: red is current reservoir confidence, green is normalized guide sample age, and blue is domain validity. The previous debug view mixed confidence, temporal detail, and history weight, which made the labeled guide mode unable to diagnose guide-buffer bugs.","files":["src/Aquarium.Engine/Render/Shaders/D3D12Post.hlsl","state/map.yaml","state/memory.json"],"source":"continued after fixing the fractal guide producer and checking whether the visible debug mode matched the schema"}
{"timestamp":"2026-05-21T11:42:16+01:00","topic":"fensalir-splash-ripple-scene","lesson":"The first Fensalir art-target client proves a cleaner scene reproduction boundary than more abstract splat demos: the .aquageo patch owns the marsh surface and ripple brushes, FensalirSceneBuilder publishes those brushes plus one bounded SDF spine proxy, and client shaders own the dark reflective water/mist and luminous stacked-diamond hall silhouette. Aetheria's transferable primitive is the compact radial wave splat: envelope * powered cosine, not a bespoke water mesh. Missing future work is now visible at the right boundary: richer material/page DSL for water color/roughness, transparent fog density fields, and an IFS-owned spine/pillar grammar instead of a hand-authored first proxy shader.","files":["src/Aquarium.Fensalir/Worlds/fensalir-spine-emblem.aquageo","src/Aquarium.Fensalir/FensalirRuntime.cs","src/Aquarium.Fensalir/FensalirSceneBuilder.cs","src/Aquarium.Fensalir/Shaders/D3D12FensalirScene.hlsl","src/Aquarium.Fensalir/Shaders/D3D12FensalirSpine.hlsl","src/Aquarium.Engine.Fractal/Grammar/FractalDslCompiler.cs","src/Aquarium.Engine.Fractal/Brushes/FractalHeightBrushCompiler.cs","src/Aquarium.Engine.Contracts/Fractal/AquariumFractalContracts.cs","tests/Aquarium.Engine.Fractal.Tests/FensalirFractalSceneTests.cs","state/map.yaml","state/memory.json"],"source":"user pivoted from abstract Perfect Machine work to reproducing the documented Fensalir splash art as an actual DSL/rendering target"}
{"timestamp":"2026-05-22T01:20:00+01:00","topic":"fensalir-fixed-headless-capture","lesson":"Fensalir now has a repeatable headless frame-capture lane for art-target iteration. AquariumHost accepts --capture-frame plus headless width/height, suppresses overlay debug UI while headless, waits for ready frames, and saves the last presented backbuffer through IAquariumRenderer.SaveFramePng. scripts/capture-fensalir-frame.ps1 builds disposable engine/client slots and uses Start-Process with a timeout because Aquarium.Engine is a Windows GUI exe and plain PowerShell invocation can return before rendering is complete. The latest capture, artifacts/fensalir-captures/fixed-cathedral-forward.png, proves the current gap honestly: the cathedral silhouette is now visible and DSL patch claims drive surface/cathedral fields, but the spine/pillar grammar is still partly shader-authored and needs a real IFS-owned structural lowering before the splash reproduction stops being a hand-guided proxy.","files":["src/Aquarium.Engine/AquariumHost.cs","scripts/capture-fensalir-frame.ps1","src/Aquarium.Fensalir/FensalirRuntime.cs","src/Aquarium.Fensalir/FensalirSceneBuilder.cs","src/Aquarium.Fensalir/Shaders/D3D12FensalirScene.hlsl","src/Aquarium.Fensalir/Shaders/D3D12FensalirSpine.hlsl","src/Aquarium.Fensalir/Worlds/fensalir-spine-emblem.aquageo","tests/Aquarium.Engine.Fractal.Tests/FensalirFractalSceneTests.cs","state/map.yaml","state/memory.json"],"source":"user asked to exercise the cathedral through the DSL and set up fixed-camera headless capture for unattended renderer iteration"}

View file

@ -59,10 +59,13 @@ current_model:
world_patch: src/Aquarium.Fensalir/Worlds/fensalir-spine-emblem.aquageo
splash_prompt: research/rendering/fensalir-spine-emblem-ifs-demo.md
ground_truth_image: src/Aquarium.Engine/Assets/Fensalir-Splash.png
fixed_capture: scripts/capture-fensalir-frame.ps1
latest_capture: artifacts/fensalir-captures/fixed-cathedral-forward.png
purpose: >
First artistic Fensalir reconstruction client: loads a .aquageo scene
patch, lowers marsh/water surface claims into shaped 2D ripple brushes,
and renders the central luminous spine through the normal SDF proxy path.
projects cathedral detail from the patch-owned 2D field, and renders the
central luminous stacked-diamond spine through the normal SDF proxy path.
samples:
minimal_client: src/Aquarium.Sample.Minimal
dependencies:
@ -179,6 +182,7 @@ renderer_state:
- FractalFlameFileParser now has ParseFirstWithReport for import accountability. Receipt runs emit fractal-flame-import-report-*.json beside flame histogram/GPU receipts. The JWildfire selftest report currently records 15 accepted fields, 3 approximations, 45 ignored render/presentation fields, and 11 rejected geometry/sampling fields: wfield_* weighting-field attributes. Successful XML parsing is not successful translation.
- FractalFlameIterationState and FractalFlameIterationStepper define the persistent flame iteration invariant before GPU lowering: advancing a sample in chunks must match a one-shot advance from the same state. This is a parity/mock boundary for the future GPU state buffer, not a runtime CPU renderer.
- D3D12 capacity logging now reports active fractal reservoir resident MiB, splat count, visible debug splat count, updates/pass, and candidates/update so the GPU cache has a receipt in normal runtime logs, not just in the standalone benchmark.
- Fensalir has a fixed headless art-repro capture lane: `scripts/capture-fensalir-frame.ps1` builds disposable engine/client slots, launches the Fensalir client headless at an explicit resolution, waits for a ready frame, and writes a PNG through `IAquariumRenderer.SaveFramePng`. Headless capture disables overlay debug UI and locks the Fensalir camera/time so shader and `.aquageo` changes can be compared against `src/Aquarium.Engine/Assets/Fensalir-Splash.png` without manual window judgment.
- The consolidated fractal brush architecture plan defines the intended pipeline: client intent -> domain roots -> semantic IFS brush grammar -> ownership tree -> node summaries -> contribution cache/residency scheduler -> backend packets -> renderer passes -> debug/evidence, with explicit module boundaries and mockable unit-test seams.
- The Perfect Machine architecture lives in docs/perfect-machine-architecture.md. It is the current waterfall design authority for fast 2D/3D/projected scalar-field splats, Form/Appearance/Transport reservoir layers, SDF level-set surfaces for opaque solids, density/extinction/confidence fields for flames and sensor fusion, IFS `.aquageo` structural probes, Mimir-style camera/audio evidence candidates, ReSTIR/GRIS reservoir reuse, heuristic occupancy graph updates, resource-tier residency, and TAA guide-buffer integration.
- Fractal surface page planning now has a CPU boundary: FractalSurfacePagePlanner lowers selected IFS cuts into stable height, 2D signed-distance, material, and confidence page metadata; ZyphosFractalRenderPlan exposes these pages, while the live D3D12 page store and atlas remain future work.

View file

@ -33,7 +33,7 @@
],
"rendering": [
"Height-field shape is defined by brush data uploaded by the client. Epiphany currently supplies its gravity wells, CPU placement, and cursor projection; generic engine height-field and scene shaders consume the resulting brush constants.",
"Fensalir is now the engine brand and has a first artistic reconstruction client at src/Aquarium.Fensalir. It loads Worlds/fensalir-spine-emblem.aquageo, lowers the foreground marsh into shaped 2D ripple brushes, renders a custom dark water/mist scene shader, and draws the central luminous stacked-diamond spine through an SDF proxy shader. The splash image at src/Aquarium.Engine/Assets/Fensalir-Splash.png and prompt note at research/rendering/fensalir-spine-emblem-ifs-demo.md are the art target, not incidental branding.",
"Fensalir is now the engine brand and has a first artistic reconstruction client at src/Aquarium.Fensalir. It loads Worlds/fensalir-spine-emblem.aquageo, lowers the foreground marsh into shaped 2D ripple brushes, projects patch-owned cathedral detail into the scene shader, renders a custom dark water/mist scene shader, and draws the central luminous stacked-diamond spine through an SDF proxy shader. The fixed capture lane is scripts/capture-fensalir-frame.ps1, with latest comparison art under artifacts/fensalir-captures. The splash image at src/Aquarium.Engine/Assets/Fensalir-Splash.png and prompt note at research/rendering/fensalir-spine-emblem-ifs-demo.md are the art target, not incidental branding.",
"The `.aquageo` DSL has a first-class `ripple` primitive for flat surface domains: center, radii, rotation, falloff, shape power, base amplitude, wave amplitude, radial frequency, speed, sine-power, seed, and tags. This is the Aetheria/Epiphany-style compact wave splat lowered into AquariumHeightFieldBrush; do not hard-code future water waves in client C# when the patch should own them.",
"The height-field surface is direct-traced as a terminating reflective surface over scalar height data. It writes the primary surface packet with FIELD_ID_HEIGHT_FIELD, terrain normal, full coverage, and Studio2 PMREM reflection; flat regions sample up to PMREM mip 3 while sloped/waved regions sharpen toward mip 0. Ray misses use a cone-averaged Studio2 PMREM mip 3 as the soft background so low-resolution mip texels do not become visible blocks.",
"Mouse/cursor-owned SDF bodies need object-motion reprojection. Carry current and previous cursor world anchors through frame constants and reproject cursor hits from current center to previous center.",
@ -158,6 +158,7 @@
"Global graphics presentation settings live in epiphany.aquarium.graphics_settings. The debug UI edits the renderer copy; the host syncs changed renderer settings back to the client runtime; the runtime flushes dirty settings through CultCache.",
"A truncated or unreadable single-file CultCache backing store is not a schema migration failure. Aquarium should quarantine the corrupt snapshot and boot fresh typed state.",
"dev-reload builds disposable apphost slots so a running window does not lock normal build output. Headless smoke runs use a separate CultCache from the visible dev window.",
"Headless art captures should use disposable build slots and `Start-Process -Wait` style ownership. Aquarium.Engine is a Windows GUI executable, so plain PowerShell `&` can return before the renderer has finished pipeline compilation or frame capture.",
"Live runtime reload is not successful just because dev-watch wrote live-current.txt. The watcher must see the host acknowledge the exact live DLL path in stdout.",
"Shader reload failure must keep the previous good shader objects bound. Live-runtime reload failure must keep the previous runtime alive."
]

View file

@ -16,7 +16,11 @@ public sealed class FensalirFractalSceneTests
Assert.Contains(tree.Domains, domain => domain.Kind == AquariumFractalDomainKind.Object3D && domain.Key.Value == "fensalir/spine");
Assert.Contains(tree.Claims, claim => claim.Tags == "cyan-ripple" && claim.WaveAmplitude > 0.0f);
Assert.Contains(tree.Claims, claim => claim.Tags == "micro-ripple");
Assert.Contains(tree.Claims, claim => claim.Tags == "cathedral-spire");
Assert.Contains(tree.Claims, claim => claim.Tags == "cathedral-rune");
Assert.Contains(tree.Claims, claim => claim.Tags == "cathedral-magenta");
Assert.Equal(tree.Claims.Count(claim => claim.PayloadKind == AquariumFractalPayloadKind.Height), brushes.Length);
Assert.True(brushes.Length <= 64);
Assert.Contains(brushes, brush => brush.WaveAmplitude > 0.0f && brush.WaveFrequency > 0.0f && brush.WaveSinePower > 0.0f);
Assert.Contains("surface brushes", FensalirFractalScene.Summary, StringComparison.Ordinal);
}