Record Fensalir evidence-machine invariant
This commit is contained in:
parent
fc54890ac9
commit
67c0e3d773
5 changed files with 31 additions and 5 deletions
|
|
@ -13,6 +13,24 @@ The old stable-key accumulator was useful, but it was not ReSTIR. The live
|
|||
architecture now splits the problem into a small resampled-importance core, a
|
||||
spatial evidence track layer, typed lowerings, renderer passes, and TAA history.
|
||||
|
||||
## Engine Identity
|
||||
|
||||
Fensalir is not a traditional rendering pipeline. A pass is not correct because
|
||||
it produces pixels. A pass is correct only when it preserves the field evidence
|
||||
contract for the surface or volume it claims to represent.
|
||||
|
||||
The renderer is allowed to use rasterization, compute, ray marching, splats,
|
||||
meshlets, direct SDF proxies, or old-fashioned triangles, but those are lowering
|
||||
strategies. They do not own truth. The live truth is the claim packet: stable
|
||||
domain identity where available, bounded support, color/travel, metadata,
|
||||
control/coverage, reservoir-guide evidence, and depth when temporal validation
|
||||
needs it.
|
||||
|
||||
Any implementation that treats Fensalir as "draw some geometry, blend some
|
||||
color, let post handle the rest" is violating the engine body. That path may
|
||||
exist only as an explicitly named fallback/debug draw with no authority over
|
||||
field evidence.
|
||||
|
||||
## Research Spine
|
||||
|
||||
- NVIDIA ReSTIR DI repeatedly resamples candidate light samples, then applies
|
||||
|
|
|
|||
|
|
@ -1139,7 +1139,7 @@ public sealed class D3D12Renderer : IAquariumRenderer
|
|||
var scene = CreateScenePipelineState(paths.Scene);
|
||||
scene.Name = "Aquarium D3D12 Scene Pipeline";
|
||||
var spline = CreateSplinePipelineState(paths.Scene);
|
||||
spline.Name = "Aquarium D3D12 Spline Pipeline";
|
||||
spline.Name = "Aquarium D3D12 Spline Surface Claim Pipeline";
|
||||
var temporalGaussian = CreateTemporalGaussianPipelineState(paths.TemporalGaussian);
|
||||
temporalGaussian.Name = "Aquarium D3D12 Temporal Gaussian Pipeline";
|
||||
var gpuSensorFusion = CreateGpuSensorFusionPipelineState(paths.GpuSensorFusion);
|
||||
|
|
@ -1704,7 +1704,7 @@ public sealed class D3D12Renderer : IAquariumRenderer
|
|||
context.CommandList.DrawInstanced(6, (uint)visibleFractalSplatCount, 0, 0);
|
||||
}
|
||||
|
||||
RenderSplines(context.CommandList, frameResources);
|
||||
RenderSplineSurfaceClaims(context.CommandList, frameResources);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
@ -1715,7 +1715,7 @@ public sealed class D3D12Renderer : IAquariumRenderer
|
|||
PresentBackBuffer(context, frameResources);
|
||||
}
|
||||
|
||||
private void RenderSplines(ID3D12GraphicsCommandList activeCommandList, FrameResources frameResources)
|
||||
private void RenderSplineSurfaceClaims(ID3D12GraphicsCommandList activeCommandList, FrameResources frameResources)
|
||||
{
|
||||
if (!activeSplineFrame.HasInput || splinePipelineState is null)
|
||||
{
|
||||
|
|
@ -1733,7 +1733,7 @@ public sealed class D3D12Renderer : IAquariumRenderer
|
|||
continue;
|
||||
}
|
||||
|
||||
AppendSplineGeometry(vertices, spline);
|
||||
AppendSplineSurfaceEnvelopeGeometry(vertices, spline);
|
||||
}
|
||||
|
||||
if (vertices.Count == 0)
|
||||
|
|
@ -1749,7 +1749,7 @@ public sealed class D3D12Renderer : IAquariumRenderer
|
|||
activeCommandList.DrawInstanced((uint)vertices.Count, 1, 0, 0);
|
||||
}
|
||||
|
||||
private static void AppendSplineGeometry(List<D3D12SplineVertex> output, AquariumSpline3D spline)
|
||||
private static void AppendSplineSurfaceEnvelopeGeometry(List<D3D12SplineVertex> output, AquariumSpline3D spline)
|
||||
{
|
||||
var style = spline.Style.Normalized();
|
||||
var controls = spline.Vertices;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ struct VertexOut
|
|||
|
||||
struct SceneOut
|
||||
{
|
||||
// alpha does not live in colorTravel.a. That lane is camera travel for temporal
|
||||
// reprojection; coverage/confidence belong in control and reservoirGuide.
|
||||
float4 colorTravel : SV_Target0;
|
||||
float4 metadata : SV_Target1;
|
||||
float4 control : SV_Target2;
|
||||
|
|
|
|||
|
|
@ -224,3 +224,4 @@
|
|||
{"lesson":"Fensalir restored Aquarium/Aetheria blue-noise jitter as a renderer-owned D3D12 R8 threshold tile bound to scene shaders, so stochastic spline tube SDF sampling uses a real blue-noise texture with frame offsets instead of hash-noise impostors. Spline tube emission and alpha now derive from pow(saturate(-dot(ray, normal)), exponent) with a camera-facing tube normal model.","timestamp":"2026-05-25T22:00:15+01:00","files":["src/Aquarium.Engine/Render/D3D12BlueNoiseTexture.cs","src/Aquarium.Engine/Render/D3D12Renderer.cs","src/Aquarium.Engine/Render/Shaders/D3D12Scene.hlsl","src/Aquarium.Engine.Contracts/Render/AquariumRenderPlan.cs","docs/stochastic-transparent-surface-pipeline.md"],"source":"user corrected blue noise ownership and spline tube normal shading","topic":"renderer-native-blue-noise"}
|
||||
{"status":"ok","timestamp":"2026-05-25T22:16:17.0210257Z","note":"Spline renderer ownership moved to shader-evaluated capsule/tube SDF over XRLineRenderer-style segment packets; CPU spline geometry now emits conservative envelope vertices with previous/current/next context and radius/material data, not visual strip authority.","type":"decision"}
|
||||
{"status":"ok","timestamp":"2026-05-26T09:29:35.4764774Z","note":"Transparent reservoir field samples no longer use the opaque fractal minimum billboard radius. Density/tube samples now keep a tiny minimum envelope so client-authored radii and reservoir budgets control visual footprint instead of inflating sparse probes into giant discs.","type":"correction"}
|
||||
{"lesson":"Fensalir is not a traditional rendering pipeline. It is a field/evidence machine: raster, compute, mesh, SDF, splat, and volume passes are lowering strategies for bounded Form/Appearance/Transport claims. A pass that only paints pixels is fallback/debug unless it emits the shared evidence lanes needed for temporal validation and reservoir/TAA reuse.","timestamp":"2026-05-26T10:40:08.7370172Z","files":["state/map.yaml","docs/temporal-spatial-evidence-reservoir.md","src/Aquarium.Engine/Render/D3D12Renderer.cs","src/Aquarium.Engine/Render/Shaders/D3D12Scene.hlsl"],"source":"Mimir/Fensalir spline ownership correction","topic":"fensalir-not-traditional-renderer-invariant"}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@ current_model:
|
|||
|
||||
invariants:
|
||||
- Fensalir owns reusable host, renderer, audio, reload, contracts, and engine mechanisms.
|
||||
- Fensalir is not a traditional rendering pipeline. It is a field/evidence
|
||||
machine: contributors emit bounded Form, Appearance, and Transport claims
|
||||
with identity, travel/depth, metadata, control, and reservoir-guide lanes.
|
||||
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.
|
||||
- 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue