Use fractal reservoirs as Zyphos terrain path

This commit is contained in:
Meta Vens 2026-05-20 09:39:05 +01:00
commit 5b3f1c9bb5
10 changed files with 50 additions and 35 deletions

View file

@ -459,6 +459,8 @@ public sealed class AquariumFractalReservoirField
public IReadOnlyList<AquariumPackedFractalIfsTransform> ProgramTransforms { get; init; } = [];
public Vector4 WorldCenterRadius { get; init; }
public bool HasInput =>
SplatCount > 0 &&
Depth > 0 &&

View file

@ -609,7 +609,8 @@ public sealed class D3D12Renderer : IAquariumRenderer
activeFractalReservoirField.HasInput ? activeFractalReservoirField.SplatCount : 0,
visibleFractalSplatCount,
activeFractalReservoirField.HasInput ? activeFractalReservoirField.ReservoirUpdatesPerPass : 0,
activeFractalReservoirField.HasInput ? activeFractalReservoirField.CandidatesPerReservoirUpdate : 0)));
activeFractalReservoirField.HasInput ? activeFractalReservoirField.CandidatesPerReservoirUpdate : 0),
activeFractalReservoirField.HasInput ? activeFractalReservoirField.WorldCenterRadius : Vector4.Zero));
frameResources.FrameConstantsDescriptor = frameResources.TransientShaderDescriptors.Allocate();
device.CreateConstantBufferView(
new ConstantBufferViewDescription(frameConstants.GpuVirtualAddress, frameConstants.SizeInBytes),
@ -2864,7 +2865,8 @@ public sealed class D3D12Renderer : IAquariumRenderer
Vector4 CursorWorlds,
Vector4 TemporalGaussianInfo,
Vector4 GpuFusionInfo,
Vector4 FractalReservoirInfo);
Vector4 FractalReservoirInfo,
Vector4 FractalReservoirFrame);
private sealed record D3D12ShaderPaths(
string HeightField,

View file

@ -85,9 +85,11 @@ float3 FractalPoint(uint index, out float radius)
float s = transform.rotationDomain.y;
float2 local = float2(rx * transform.radiiRotationFalloff.x, ry * transform.radiiRotationFalloff.y) * 0.65;
float2 rotated = float2((local.x * c) - (local.y * s), (local.x * s) + (local.y * c));
radius = max(max(transform.radiiRotationFalloff.x, transform.radiiRotationFalloff.y) * (0.34 + Random01(h + 104729u) * 0.16), 0.0001);
float z = transform.offsetScaleAmplitude.w + (Random01(h + 1299721u) - 0.5) * radius * 0.2;
return float3(transform.offsetScaleAmplitude.xy + rotated, z + transform.materialSeedShape.x * 0.05);
radius = max(max(transform.radiiRotationFalloff.x, transform.radiiRotationFalloff.y) * (0.045 + Random01(h + 104729u) * 0.02), 0.0001);
float relief = transform.offsetScaleAmplitude.w * 0.06 + (Random01(h + 1299721u) - 0.5) * radius * 0.25;
float2 surfacePoint = transform.offsetScaleAmplitude.xy + rotated;
float3 dir = normalize(float3(surfacePoint.x, surfacePoint.y, 1.0 + relief));
return dir * (1.0 + relief + transform.materialSeedShape.x * 0.012);
}
if (ProgramTransformCount > 0u)

View file

@ -25,6 +25,7 @@ cbuffer AquariumFrame : register(b0)
float4 temporalGaussianInfo;
float4 gpuFusionInfo;
float4 fractalReservoirInfo;
float4 fractalReservoirFrame;
};
struct FractalSdfSplat
@ -71,8 +72,11 @@ struct FractalSplatVertexOut
nointerpolation uint splatIndex : TEXCOORD0;
float2 quad : TEXCOORD1;
float travel : TEXCOORD2;
float reservoirConfidence : TEXCOORD3;
float radiosityEnergy : TEXCOORD4;
nointerpolation float3 centerWorld : TEXCOORD3;
nointerpolation float worldRadius : TEXCOORD4;
nointerpolation float3 basisRight : TEXCOORD5;
nointerpolation float3 basisUp : TEXCOORD6;
nointerpolation float3 basisForward : TEXCOORD7;
};
struct SceneOut
@ -121,13 +125,14 @@ FractalSplatVertexOut D3D12FractalSplatVS(uint vertexId : SV_VertexID, uint inst
float3 right;
float3 up;
cameraBasis(cameraPosition, cameraTarget, forward, right, up);
float worldScale = max(viewRadius * 0.16, 0.05);
float3 center = cameraTarget + centerRadius.xyz * worldScale;
float fieldRadius = fractalReservoirFrame.w > 0.0 ? fractalReservoirFrame.w : max(viewRadius * 0.16, 0.05);
float3 fieldCenter = fractalReservoirFrame.w > 0.0 ? fractalReservoirFrame.xyz : cameraTarget;
float3 center = fieldCenter + centerRadius.xyz * fieldRadius;
float3 delta = center - cameraPosition;
float z = max(dot(delta, forward), 0.0001);
float2 projected = float2(dot(delta, right), dot(delta, up)) / z * 1.6;
float clipAspect = resolution.x / max(resolution.y, 1.0);
float boundRadius = max(centerRadius.w * worldScale * 1.8, 0.002 * viewRadius);
float boundRadius = max(centerRadius.w * fieldRadius * 0.72, 0.00035 * viewRadius);
float projectedRadius = boundRadius / z * 1.6 + 0.002;
float2 clipCenter = float2(projected.x / clipAspect, projected.y);
float2 clipRadius = float2(projectedRadius / clipAspect, projectedRadius);
@ -137,8 +142,11 @@ FractalSplatVertexOut D3D12FractalSplatVS(uint vertexId : SV_VertexID, uint inst
output.splatIndex = splatIndex;
output.quad = corners[vertexId];
output.travel = z;
output.reservoirConfidence = sdfResident ? saturate(sdf.validation.x) : saturate(splat.materialConfidence.w) * 0.25;
output.radiosityEnergy = 0.0;
output.centerWorld = center;
output.worldRadius = boundRadius;
output.basisRight = right;
output.basisUp = up;
output.basisForward = forward;
return output;
}
@ -158,8 +166,11 @@ SceneOut D3D12FractalSplatPS(FractalSplatVertexOut input)
bool sdfResident = sdf.weightTargetCount.z > 0.5;
bool pbrResident = pbr.weightTargetCount.z > 0.5;
bool radiosityResident = radiosity.weightTargetCount.z > 0.5;
float falloff = sdfResident ? sdf.radiiFalloff.w : splat.radiiFalloff.w;
float weight = pow(saturate(1.0 - r2), max(falloff * 0.35, 0.5));
float surfaceZ = sqrt(saturate(1.0 - r2));
float3 normal = normalize((input.basisRight * input.quad.x) + (input.basisUp * input.quad.y) - (input.basisForward * surfaceZ));
float3 surfaceWorld = input.centerWorld + normal * input.worldRadius;
float edgeCoverage = smoothstep(1.0, 0.82, r2);
float viewFacing = saturate(dot(normalize(cameraPosition - surfaceWorld), normal));
float material = saturate(splat.materialConfidence.x);
float3 fallbackColor = lerp(float3(0.05, 0.42, 1.0), float3(1.0, 0.72, 0.18), material);
float3 pbrColor = saturate(pbr.baseColorRoughMetal.rgb);
@ -170,18 +181,23 @@ SceneOut D3D12FractalSplatPS(FractalSplatVertexOut input)
pbrResident ? saturate(pbr.validation.x) : 0.0,
radiosityResident ? saturate(radiosity.validation.x) : 0.0));
float3 color = pbrResident ? pbrColor : fallbackColor;
color += radiosityResident ? radiosityColor * (0.18 + reservoirConfidence * 0.35) : 0.0;
float opacity = saturate(weight * (0.18 + reservoirConfidence * 0.28));
float roughness = pbrResident ? saturate(pbr.baseColorRoughMetal.w) : 0.6;
float diffuse = 0.28 + 0.72 * viewFacing;
float fresnel = pow(saturate(1.0 - viewFacing), 5.0);
float3 litColor = color * diffuse;
litColor += radiosityResident ? radiosityColor * (0.24 + reservoirConfidence * 0.48) : 0.0;
litColor += lerp(float3(0.02, 0.08, 0.14), float3(0.28, 0.42, 0.58), 1.0 - roughness) * fresnel * 0.35;
float opacity = saturate(edgeCoverage * (0.62 + reservoirConfidence * 0.38));
SceneOut output;
output.colorTravel = float4(color * opacity, min(input.travel, farDistance + 1.0));
output.metadata = float4(FIELD_ID_FRACTAL_SPLAT_BASE, normalize(float3(input.quad, 1.0)));
output.colorTravel = float4(litColor * opacity, min(input.travel - surfaceZ * input.worldRadius, farDistance + 1.0));
output.metadata = float4(FIELD_ID_FRACTAL_SPLAT_BASE, normal);
output.control = float4(opacity, reservoirConfidence, saturate((sdfResident ? sdf.centerRadius.w : splat.centerRadius.w) * 40.0), 0.0);
output.reservoirGuide = float4(
sdfResident ? saturate(sdf.validation.x) : 0.0,
pbrResident ? saturate(pbr.validation.x) : 0.0,
radiosityResident ? saturate(radiosity.validation.x) : 0.0,
reservoirConfidence);
output.depth = saturate(input.travel / max(farDistance, 0.0001));
output.depth = saturate((input.travel - surfaceZ * input.worldRadius) / max(farDistance, 0.0001));
return output;
}

View file

@ -14,8 +14,6 @@ public static class ZyphosRenderPlan
var app = new AquariumApp();
app.Shaders
.Core("D3D12HeightField.hlsl", "D3D12Scene.hlsl", "D3D12Post.hlsl")
.SdfShader("D3D12ZyphosPlanet.hlsl")
.SdfShader("D3D12ZyphosUmbros.hlsl")
.SdfShader("D3D12ZyphosStar.hlsl");
var heightField = app.RenderTargets.Create("height-field")

View file

@ -15,7 +15,8 @@ public static class ZyphosSceneBuilder
FractalReservoirField = new AquariumFractalReservoirField
{
SplatCount = 2_000_000,
ReservoirUpdatesPerPass = 50_000,
ReservoirUpdatesPerPass = 20_000,
WorldCenterRadius = new Vector4(ZyphosUmbrosSystem.ZyphosCenter, ZyphosUmbrosSystem.ZyphosSurfaceRadius),
ProgramTransforms = fractalPlan.GpuProgramTransforms,
},
SdfObjects = BuildSdfObjects(timeSeconds, previousTimeSeconds),
@ -25,22 +26,11 @@ public static class ZyphosSceneBuilder
private static AquariumSdfObject[] BuildSdfObjects(float timeSeconds, float previousTimeSeconds)
{
var planetCenter = ZyphosUmbrosSystem.ZyphosCenter;
var rotation = ZyphosUmbrosSystem.MutualPhase(timeSeconds);
var umbrosCenter = ZyphosUmbrosSystem.UmbrosCenter(timeSeconds);
var previousUmbrosCenter = ZyphosUmbrosSystem.UmbrosCenter(previousTimeSeconds);
var starCenter = ZyphosUmbrosSystem.PrimaryStarCenter(timeSeconds);
var previousStarCenter = ZyphosUmbrosSystem.PrimaryStarCenter(previousTimeSeconds);
var objects = new AquariumSdfObject[ZyphosRenderPlan.SdfObjectCount];
objects[ZyphosRenderPlan.PlanetIndex] = new AquariumSdfObject(
new Vector4(planetCenter, ZyphosUmbrosSystem.ZyphosBoundRadius),
new Vector4(planetCenter, 0.0f),
new Vector4(ZyphosUmbrosSystem.ZyphosSurfaceRadius, rotation, ZyphosUmbrosSystem.SeaLevel, rotation));
objects[ZyphosRenderPlan.UmbrosIndex] = new AquariumSdfObject(
new Vector4(umbrosCenter, ZyphosUmbrosSystem.UmbrosBoundRadius),
new Vector4(previousUmbrosCenter, 0.0f),
new Vector4(ZyphosUmbrosSystem.UmbrosSurfaceRadius, rotation, ZyphosUmbrosSystem.CenterSeparation, 0.0f));
objects[ZyphosRenderPlan.StarIndex] = new AquariumSdfObject(
new Vector4(starCenter, ZyphosUmbrosSystem.PrimaryStarVisualRadius),
new Vector4(previousStarCenter, 0.0f),

View file

@ -185,3 +185,4 @@
{"timestamp":"2026-05-20T08:04:00+01:00","topic":"authored-ifs-program-gpu-splat-population","lesson":"The GPU splat producer now has a compact authored-program path. `FractalGpuProgramCompiler` lowers selected `.aquageo` claims into `AquariumPackedFractalIfsTransform` rows, Zyphos passes those rows through `AquariumFractalReservoirField.ProgramTransforms`, and D3D12 uploads them as a small compute SRV before dispatch. `D3D12FractalReservoirCompute.hlsl` uses those transforms when present and keeps the old hash fractal only as fallback/receipt mode. This keeps million-splat population GPU-resident while making the source fractal structure come from the DSL instead of private shader folklore.","files":["src/Aquarium.Engine.Contracts/Fractal/AquariumFractalContracts.cs","src/Aquarium.Engine.Contracts/Render/AquariumRenderPlan.cs","src/Aquarium.Engine.Fractal/Lod/FractalGpuProgramCompiler.cs","src/Aquarium.Engine/Render/D3D12Renderer.cs","src/Aquarium.Engine/Render/Shaders/D3D12FractalReservoirCompute.hlsl","src/Aquarium.Zyphos/ZyphosFractalTerrain.cs","src/Aquarium.Zyphos/ZyphosSceneBuilder.cs","tests/Aquarium.Engine.Fractal.Tests/FractalGpuProgramCompilerTests.cs"],"source":"continued Perfect Machine build: replace hardcoded GPU splat generation with a DSL-driven program seam"}
{"timestamp":"2026-05-20T08:16:00+01:00","topic":"authored-ifs-program-gpu-receipt","lesson":"The receipt harness now has a nonzero authored-program mode via `-ProgramTransforms`. On the GTX 1070, 2,000,000 splats plus 2,000,000 SDF, PBR, and radiosity reservoirs per layer with 4 IFS transforms, depth 1, 20,000 stochastic updates per reservoir layer, and 2 candidates/update measured 4.438 ms/frame, 225.3 FPS equivalent, with full reservoir coverage in 100 frames. Depth 2 and 4 are below the hundreds-FPS bar at this budget, so deeper authored IFS generation needs a better shader strategy or adaptive depth/cut scheduling instead of pretending the simple receipt covers all fractal detail depths.","files":["tools/Aquarium.Fractal.Receipt/Program.cs","scripts/fractal-splat-receipt.ps1","src/Aquarium.Engine/Render/Shaders/D3D12FractalReservoirCompute.hlsl","state/map.yaml","state/memory.json"],"source":"user demanded a receipt showing millions of splats populating a simple fractal at hundreds of FPS"}
{"timestamp":"2026-05-20T08:32:00+01:00","topic":"precomposed-selected-cut-splat-generation","lesson":"Nested domain ancestry must not be replayed inside the million-splat compute kernel. Authored program mode now treats `AquariumPackedFractalIfsTransform` rows as precomposed selected-cut support packets and samples one row per splat in O(1); the CPU/compiler/planner owns collapsing planetary/cave/mushroom/rib ancestry into selected supports before GPU dispatch. A depth-48 receipt with 2,000,000 splats, 2,000,000 reservoirs per SDF/PBR/radiosity layer, 4 program rows, 15,000 updates per layer, and 2 candidates/update measured 4.908 ms/frame, 203.7 FPS equivalent on the GTX 1070. Depth is now semantic lineage/planner pressure, not a hot-loop multiplier.","files":["src/Aquarium.Engine/Render/Shaders/D3D12FractalReservoirCompute.hlsl","src/Aquarium.Engine/Render/D3D12Renderer.cs","tools/Aquarium.Fractal.Receipt/Program.cs","state/map.yaml","state/memory.json"],"source":"user pointed out real scenes will regularly render nested domains dozens of layers deep"}
{"timestamp":"2026-05-20T09:39:00+01:00","topic":"zyphos-fractal-reservoir-primary-terrain","lesson":"The Zyphos demo must test the fractal reservoir renderer as the terrain path, not as a debug layer over direct SDF planets. `AquariumFractalReservoirField` now carries `WorldCenterRadius`; Zyphos binds it to the planet frame, reduces live reservoir updates to 20,000/pass, and removes the direct planet/Umbros SDF proxy shaders from its render plan. `D3D12FractalReservoirCompute.hlsl` emits normalized spherical support for authored selected-cut program rows, and `D3D12FractalSplatRender.hlsl` maps SDF/PBR/radiosity reservoir rows into the world frame with SDF support/depth/normal, PBR material, and radiosity illumination. The remaining direct SDF body is the parent star. Future visual problems in Zyphos terrain should be fixed in reservoir lowering/shading, not hidden behind direct SDF terrain.","files":["src/Aquarium.Engine.Contracts/Render/AquariumRenderPlan.cs","src/Aquarium.Engine/Render/D3D12Renderer.cs","src/Aquarium.Engine/Render/Shaders/D3D12FractalReservoirCompute.hlsl","src/Aquarium.Engine/Render/Shaders/D3D12FractalSplatRender.hlsl","src/Aquarium.Zyphos/ZyphosRenderPlan.cs","src/Aquarium.Zyphos/ZyphosSceneBuilder.cs","tests/Aquarium.Engine.Fractal.Tests/ZyphosFractalTerrainTests.cs"],"source":"user correctly pointed out that Zyphos fractal domains should be the pipeline test and should replace direct SDF rendering"}

View file

@ -138,10 +138,11 @@ renderer_state:
- Compact 3D SDF splats now have a stable fractal contract and CPU compiler/kernel: structural FractalProbeSample evidence can lower into AquariumFractalSdfSplat3D packets with compact shaped support before GPU rendering exists.
- Hot fractal splats and their temporal cache layers must be GPU-resident packed buffers. AquariumPackedFractalSdfSplat3D is the 80-byte numeric splat packet; the SDF envelope, PBR material, and radiosity reservoir packets are distinct 64-byte UAV rows sampled in independent compute passes. tools/Aquarium.Fractal.Receipt proves a D3D12 compute path can keep 2,000,000 splats and 2,000,000 reservoirs per layer resident on the GTX 1070. The fallback hash-fractal receipt updates 50,000 entries per reservoir layer per frame with 2 candidates/update and runs at 4.471 ms/frame, 223.7 FPS equivalent. The authored IFS-program path now uses precomposed selected-cut rows instead of replaying ancestry per splat; a depth-48 authored receipt with 4 compact transforms and 15,000 updates per reservoir layer runs at 4.908 ms/frame, 203.7 FPS equivalent, with full reservoir coverage in 133.3 frames. Receipts use only tiny checksum readback and compile the shared engine shader asset src/Aquarium.Engine/Render/Shaders/D3D12FractalReservoirCompute.hlsl.
- 2D-projected-to-3D splats have a pure compiler seam: FractalProjectedSdfSplatCompiler maps resident SignedDistance2D page payload samples through an explicit page-to-world function and normal into bounded AquariumFractalSdfSplat3D packets.
- AquariumSceneState now carries AquariumFractalReservoirField as the narrow client-to-renderer request for GPU-resident fractal reservoirs: resident splat count, IFS depth/seed, candidates per reservoir update, and stochastic updates per pass. This is a budgeted GPU field request, not a CPU splat list.
- AquariumSceneState now carries AquariumFractalReservoirField as the narrow client-to-renderer request for GPU-resident fractal reservoirs: resident splat count, IFS depth/seed, candidates per reservoir update, stochastic updates per pass, authored program transforms, and an explicit world center/radius. This is a budgeted GPU field request, not a CPU splat list.
- D3D12Renderer owns the first live fractal reservoir compute hook: a separate root signature, four compute pipelines from D3D12FractalReservoirCompute.hlsl, lazy UAV buffers for splats/SDF/PBR/radiosity reservoirs, a UAV barrier after splat population, and per-frame dispatch when AquariumFractalReservoirField is present. Zyphos requests the 2M-splat, 50k-updates/pass field by default.
- Fractal reservoir population can now be driven by authored `.aquageo` structure: FractalGpuProgramCompiler lowers selected DSL claims into compact, precomposed AquariumPackedFractalIfsTransform support rows, Zyphos passes those rows through AquariumFractalReservoirField.ProgramTransforms, and D3D12 uploads the small program buffer as a compute SRV so D3D12FractalReservoirCompute.hlsl can generate splats from authored selected-cut supports in O(1) per splat instead of replaying nested domain ancestry.
- The renderer now has a first visible layered-reservoir consumption path for computed fractal splats: D3D12FractalSplatRender.hlsl binds separate GPU SRVs for raw splats, SDF envelope reservoirs, PBR material reservoirs, and radiosity reservoirs, then draws a capped 131,072-instance debug subset into the scene after compute updates. This is an observability/render-consumption proof for the three-pass reservoir contract, not the final terrain/material/radiosity shading path.
- Zyphos now uses the fractal reservoir surface as its primary planetary terrain test path. The old direct SDF planet and Umbros proxy shaders are removed from the Zyphos render plan; the remaining SDF proxy is the parent star. Zyphos binds the fractal reservoir field to the Zyphos world center/radius, and D3D12FractalSplatRender maps SDF/PBR/radiosity reservoir splats into that world frame instead of drawing camera-relative blobs.
- 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.
- 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 SDF splats, 3D SDF splats, 2D-projected-to-3D surface splats, 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.

View file

@ -100,6 +100,8 @@
"AquariumFractalSdfSplat3D is the compact 3D SDF splat packet contract for Phase F. FractalSdfSplat3DCompiler lowers FractalProbeSample evidence into stable domain/node/payload-keyed splats, and FractalSdfSplat3DKernel owns CPU compact-weight/signed-distance parity math. Zyphos exposes a first structural splat from its probe reservoir before D3D12 lowering.",
"Hot fractal splat storage must be GPU-resident packed buffers manipulated by compute shaders. Stable string-keyed splat contracts are metadata/debug boundaries, not million-instance hot buffers. `AquariumPackedFractalSdfSplat3D` is the numeric 80-byte packet shape; C# staging/readback paths use unsafe `FractalNativeBuffer<T>` when CPU memory is genuinely needed.",
"Fractal reservoir compute can now take a compact authored IFS program. `FractalGpuProgramCompiler` lowers selected `.aquageo` brush claims into precomposed `AquariumPackedFractalIfsTransform` support rows; Zyphos passes those rows through `AquariumFractalReservoirField.ProgramTransforms`; D3D12 uploads the small program as a compute SRV. The shader samples one selected-cut row in O(1) for authored programs; nested domain ancestry belongs in the compiler/planner, not the million-splat kernel. The hash fractal remains a fallback/receipt mode, not the live authored generator.",
"The fractal reservoir field owns world placement through `WorldCenterRadius`. Zyphos binds this to the planet center and surface radius, and the visible splat pass maps SDF/PBR/radiosity reservoir rows into that frame. Do not fall back to camera-relative debug splats for the primary terrain demo.",
"Zyphos' primary planetary terrain test path is now the fractal reservoir surface. The direct SDF planet and Umbros proxy shaders are removed from the render plan; only the parent star remains as a direct SDF body/light. If the planet looks wrong, fix the reservoir lowering/shading path instead of letting the old SDF terrain hide it.",
"The GPU splat receipt harness lives at tools/Aquarium.Fractal.Receipt and scripts/fractal-splat-receipt.ps1. The live receipt allocates one 80-byte packed SDF splat UAV plus three distinct 64-byte reservoir UAVs for SDF envelopes, PBR material envelopes, and radiosity; those reservoirs are sampled in independent compute passes under a stochastic update budget. On the local NVIDIA GTX 1070 it kept 2,000,000 splats and 2,000,000 reservoirs per layer resident. The fallback hash-fractal receipt updated 50,000 entries per layer with 2 candidates/update at 4.471 ms/frame, 223.7 FPS equivalent. The authored precomposed selected-cut receipt used depth 48, 4 compact transforms, and 15,000 updates per layer at 4.908 ms/frame, 203.7 FPS equivalent, with full reservoir coverage in 133.3 frames. D3D12FractalSplatRender consumes the raw splat, SDF, PBR, and radiosity buffers through separate graphics SRVs for the visible debug subset. This proves compute-side GPU residency, budgeted temporal convergence, authored-program splat population decoupled from domain ancestry depth, and first layered GPU consumption; final terrain/material/radiosity shading is still future work.",
"FractalProjectedSdfSplatCompiler is the Phase G 2D-projected-to-3D lowering seam: it converts resident SignedDistance2D page payload samples into compact 3D SDF splats through an explicit page-local Vector2 -> Vector3 mapping, surface normal, support radius, and splat budget. Zyphos caches a bounded first set with a flat local mapping until cube-sphere/torus mappers are added.",
"Zyphos camera distance limits belong to the selected spatial domain, not one global planetary clamp. Leaf/pebble domains must be able to zoom below whole-body distances, and the parent star must be a visible SDF body when it is also the primary light source.",

View file

@ -87,8 +87,9 @@ public sealed class ZyphosFractalTerrainTests
Assert.True(scene.FractalReservoirField.HasInput);
Assert.Equal(2_000_000, scene.FractalReservoirField.SplatCount);
Assert.Equal(50_000, scene.FractalReservoirField.ReservoirUpdatesPerPass);
Assert.Equal(20_000, scene.FractalReservoirField.ReservoirUpdatesPerPass);
Assert.Equal(2, scene.FractalReservoirField.CandidatesPerReservoirUpdate);
Assert.Equal(ZyphosUmbrosSystem.ZyphosSurfaceRadius, scene.FractalReservoirField.WorldCenterRadius.W);
Assert.NotEmpty(scene.FractalReservoirField.ProgramTransforms);
}