Describe Fensalir field machinery
This commit is contained in:
parent
bf79d1a145
commit
5d9a5c07ca
3 changed files with 132 additions and 29 deletions
134
README.md
134
README.md
|
|
@ -4,18 +4,19 @@
|
|||
<img src="Fensalir-Icon.png" alt="Fensalir icon" width="160" />
|
||||
</p>
|
||||
|
||||
Fensalir is a native C# runtime for interactive visual clients. It opens the
|
||||
window, owns the D3D12 renderer, loads client runtimes behind contracts, keeps
|
||||
hot reload alive, mixes audio, draws debug UI, and carries the reusable
|
||||
field/fractal machinery used by Aquarium-style projects.
|
||||
Fensalir is the native C# runtime and field engine under GameCult's interactive
|
||||
visual clients. It opens the window, owns the D3D12 frame, loads client runtimes
|
||||
behind contracts, keeps hot reload alive, mixes PCM audio, draws debug UI, and
|
||||
houses the reusable machinery for volumetric fields, fractal geometry, temporal
|
||||
evidence, and synth-backed sound.
|
||||
|
||||
The repo is not the Epiphany Aquarium client. Epiphany now lives in
|
||||
`GameCult/Aquarium-Engine` and consumes this repo as its runtime dependency.
|
||||
The repo is not the Epiphany Aquarium client. Epiphany lives in
|
||||
`GameCult/Aquarium-Engine` and consumes Fensalir as the runtime dependency.
|
||||
|
||||
## What Runs
|
||||
|
||||
Fensalir runs a host executable from `src/Aquarium.Engine`. The host loads a
|
||||
client assembly that implements `IAquariumRuntime`, then drives this loop:
|
||||
The host executable in `src/Aquarium.Engine` loads a client assembly that
|
||||
implements `IAquariumRuntime`, then drives this loop:
|
||||
|
||||
```text
|
||||
Win32 input + window
|
||||
|
|
@ -23,23 +24,111 @@ Win32 input + window
|
|||
-> AquariumFrame + AquariumSceneState
|
||||
-> D3D12 renderer passes
|
||||
-> DirectWrite debug overlay
|
||||
-> WASAPI audio output
|
||||
-> AquaSynth/WASAPI audio output
|
||||
```
|
||||
|
||||
Clients describe render targets, cameras, shaders, SDF proxy objects, UI panels,
|
||||
audio buffers, and frame state through `Aquarium.Engine.Contracts`. The engine
|
||||
translates that data into D3D12 resources, pipeline state, command lists,
|
||||
presentation, hot reload, and diagnostics.
|
||||
Clients declare render targets, cameras, shaders, SDF proxy objects, UI panels,
|
||||
audio buffers, synth patches, and frame state through
|
||||
`Aquarium.Engine.Contracts`. Fensalir lowers those declarations into native
|
||||
resources: D3D12 pipelines and command lists, shader reloads, presentation,
|
||||
audio playback, debug telemetry, and headless capture.
|
||||
|
||||
## Spatial Evidence Machine
|
||||
|
||||
Fensalir's field work is not just "some fractal helpers." It is a
|
||||
spatio-temporal reservoir system for deciding which field evidence deserves
|
||||
rendering, fusion, and residency under a budget.
|
||||
|
||||
The working model is:
|
||||
|
||||
```text
|
||||
authored geometry, live sensors, IFS probes, simulation claims
|
||||
-> domain binding
|
||||
-> evidence candidates
|
||||
-> target evaluation
|
||||
-> resampled importance reservoirs
|
||||
-> temporal/spatial/domain reuse
|
||||
-> stable evidence tracks
|
||||
-> backend packets
|
||||
-> renderer, fusion, and TAA guide buffers
|
||||
```
|
||||
|
||||
`ResampledImportanceReservoir<TSample>` owns the selected candidate, weight sum,
|
||||
candidate count, target value, and contribution weight. The track layer
|
||||
(`TemporalSpatialEvidenceReservoir`) adds stable keys, confidence smoothing,
|
||||
delay, velocity, expiry, and eviction so a field sample can persist long enough
|
||||
to become useful state instead of one-frame noise.
|
||||
|
||||
Every sample declares both layer and encoding. The current layer split is:
|
||||
|
||||
- `Form`: shape evidence such as SDF, height, displacement, and occupancy.
|
||||
- `Appearance`: material, albedo, emission, feature, and surface claims.
|
||||
- `Transport`: density, extinction, phase, radiance, confidence, fog, smoke,
|
||||
plasma, and other volumetric participation claims.
|
||||
|
||||
The same reservoir spine serves fractal rendering and Mimir/LocalCast-style
|
||||
sensor fusion. The renderer-facing TAA guide uses confidence, sample age, domain
|
||||
validity, and invalidation codes so temporal reuse can be explained instead of
|
||||
merely hoped for. CPU reservoirs, fractal probe samples, track state, and
|
||||
validator coverage exist now; full GPU reservoir storage and page residency are
|
||||
the next steel that still needs bolting down.
|
||||
|
||||
## Fractal And Volumetric Field DSL
|
||||
|
||||
`src/Aquarium.Engine.Fractal` is the home of the fractal field language. The
|
||||
intent is a semantic volumetric DSL, not a decorative shader toy.
|
||||
|
||||
The path is:
|
||||
|
||||
```text
|
||||
client intent, world seed, agent state
|
||||
-> .aquageo domain roots
|
||||
-> semantic IFS brush grammar
|
||||
-> ownership tree
|
||||
-> node summaries
|
||||
-> contribution cache and residency hints
|
||||
-> backend packets
|
||||
-> height, SDF, density, extinction, material, and debug passes
|
||||
```
|
||||
|
||||
`.aquageo` documents describe domains and claims. IFS brushes contribute
|
||||
coherent field evidence rather than isolated meshes: height ripples, signed
|
||||
distance surfaces, density/extinction volumes, projected fields, and material or
|
||||
feature channels can all be expressed as claims attached to a domain. Node
|
||||
summaries and contribution caches let Fensalir choose what to evaluate, reuse,
|
||||
or evict without pretending the whole fractal world fits in one eager pass.
|
||||
|
||||
The Fensalir splash client and Zyphos terrain work are demo clients for this
|
||||
machinery. They exist to force the field DSL to survive real rendering pressure:
|
||||
fractal art reconstruction, planetary domains, field lowering, and debug
|
||||
evidence all share the same contract surface.
|
||||
|
||||
## AquaSynth Integration
|
||||
|
||||
Fensalir also owns the audio lane. `AquariumSynthHost` consumes client
|
||||
`AquariumAudioDocument` PCM buffers and `AquariumSynthDocument` patch state,
|
||||
compiles Faust DSP through AquaSynth, and sends rendered buffers to WASAPI.
|
||||
|
||||
The synth path currently includes:
|
||||
|
||||
- per-patch desired/ready/failed compile keys;
|
||||
- debounced async Faust compilation from the bundled `Synth` source directory;
|
||||
- cached rendered sound buffers by patch and gain;
|
||||
- trigger revision and interval playback;
|
||||
- master gain, patch gain, compile status documents, and debug synth support.
|
||||
|
||||
Clients say what sound should exist. Fensalir handles patch compilation,
|
||||
buffering, playback, and failure reporting without requiring the client to know
|
||||
how WASAPI or Faust got invited to the party.
|
||||
|
||||
## Projects
|
||||
|
||||
- `src/Aquarium.Engine.Contracts`: public client/runtime contracts.
|
||||
- `src/Aquarium.Engine`: Win32 host, D3D12 renderer, reload transport, debug UI,
|
||||
audio host, bundled assets, and renderer-owned shaders.
|
||||
- `src/Aquarium.Engine.Fractal`: `.aquageo`, fractal/IFS, reservoir, temporal
|
||||
field, and lowering machinery.
|
||||
- `src/Aquarium.Fensalir`: splash/art reconstruction demo using a Fensalir
|
||||
scene patch and custom shaders.
|
||||
audio/synth host, bundled assets, and renderer-owned shaders.
|
||||
- `src/Aquarium.Engine.Fractal`: `.aquageo`, IFS/fractal fields, temporal
|
||||
reservoirs, evidence tracks, contribution cache, and lowering machinery.
|
||||
- `src/Aquarium.Fensalir`: Fensalir splash/art reconstruction demo.
|
||||
- `src/Aquarium.Sample.Minimal`: tiny client proving the runtime boundary.
|
||||
- `src/Aquarium.Zyphos`: planetary/fractal terrain demo.
|
||||
- `src/Aquarium.LocalCast`: LocalCast/Mimir-facing bridge experiments.
|
||||
|
|
@ -95,12 +184,13 @@ Start with:
|
|||
- `docs/hlsl-renderer.md`
|
||||
- `docs/perfect-machine-architecture.md`
|
||||
- `docs/temporal-spatial-evidence-reservoir.md`
|
||||
- `research/rendering/fractal-brush-architecture-plan.md`
|
||||
- `research/README.md`
|
||||
- `state/README.md`
|
||||
|
||||
## Boundary
|
||||
|
||||
Fensalir owns reusable runtime and renderer authority. Client repos own meaning.
|
||||
If a feature requires app-specific policy, role names, story state, or client
|
||||
layout semantics, it belongs outside the engine unless it has been reduced to a
|
||||
reusable data-only contract.
|
||||
Fensalir owns reusable runtime, renderer, field, reservoir, and synth authority.
|
||||
Client repos own meaning. If a feature requires app-specific policy, role
|
||||
names, story state, or client layout semantics, it belongs outside the engine
|
||||
unless it has been reduced to a reusable data-only contract.
|
||||
|
|
|
|||
|
|
@ -3,20 +3,32 @@
|
|||
Start here if you are trying to understand the engine rather than a specific
|
||||
historical branch scar.
|
||||
|
||||
## Core Runtime
|
||||
|
||||
- `engine-client-boundary.md`: what Fensalir owns versus what client repos own.
|
||||
- `hlsl-renderer.md`: current D3D12/HLSL frame path.
|
||||
- `vortice-spine.md`: native host and renderer spine.
|
||||
- `cult-runtime-surface.md`: cache-path and typed-state boundary.
|
||||
- `input.md`: input and camera contracts.
|
||||
- `temporal-spatial-evidence-reservoir.md`: stable-key temporal evidence cache.
|
||||
|
||||
## Fields, Reservoirs, And Fractals
|
||||
|
||||
- `perfect-machine-architecture.md`: end-to-end map for authored/sensor field
|
||||
input, domain binding, evidence candidates, reservoir reuse, residency, and
|
||||
renderer lowering.
|
||||
- `temporal-spatial-evidence-reservoir.md`: stable-key temporal evidence cache
|
||||
for fractal rendering and Mimir/LocalCast-style sensor fusion.
|
||||
- `temporal-sdf-gaussian-field.md`: temporal Form-field evidence lane.
|
||||
- `perfect-machine-architecture.md`: broader field/reservoir architecture.
|
||||
- `tsr-inspired-taa-spec.md`: temporal resolve design.
|
||||
- `stochastic-transparent-surface-pipeline.md`: transparent field rendering
|
||||
notes.
|
||||
- `tsr-inspired-taa-spec.md`: temporal resolve design and guide-buffer intent.
|
||||
- `stochastic-transparent-surface-pipeline.md`: density/extinction and
|
||||
transparent field rendering notes.
|
||||
|
||||
## Migration And Demo Context
|
||||
|
||||
- `d3d12-best-practices-audit.md` and `d3d12-migration.md`: D3D12 migration and
|
||||
audit notes.
|
||||
- `zyphos-eusocial-sync.md`: Zyphos demo worldbuilding boundary.
|
||||
|
||||
Research notes live under `research/`. Persistent agent state lives under
|
||||
`state/`.
|
||||
Fractal DSL and rendering research starts in
|
||||
`../research/rendering/fractal-brush-architecture-plan.md`. Persistent agent
|
||||
state lives under `../state/`.
|
||||
|
|
|
|||
|
|
@ -214,3 +214,4 @@
|
|||
{"timestamp":"2026-05-23T00:00:00+01:00","topic":"fensalir-repo-split","lesson":"Fensalir now has its own adjacent repo at E:\\Projects\\Fensalir and owns the native host, renderer, contracts, fractal machinery, audio host, reload scripts, and engine demos. Epiphany Aquarium moved out to E:\\Projects\\Aquarium-Engine as a client repo that references Fensalir source projects until packaging exists. Keep dependency direction one-way: client repos may depend on Fensalir; Fensalir must not depend on client policy nouns.","files":["Fensalir.sln","README.md","AGENTS.md","state/map.yaml","state/memory.json"],"source":"user directed Fensalir and engine demos into a new adjacent repo while Aquarium-Engine remains only the Epiphany Aquarium client"}
|
||||
{"timestamp":"2026-05-23T19:17:41+01:00","topic":"fensalir-face-initialization","lesson":"Fensalir is now initialized as a VoidBot repo Face with tracked avatar, voice identity, and typed state under .voidbot/. The Face identity is a marsh-lit hall-spirit/native runtime steward grounded in repo state and mythology: protect the engine/client boundary, demand visible renderer proof, advocate for host/renderer/reload/audio/contracts/fractal-field machinery, and coordinate with client Faces through clean contracts rather than policy leakage.","files":[".voidbot/voice/fensalir.png",".voidbot/voice/identity.json",".voidbot/state/fensalir.cc"],"source":"user asked to give the new Fensalir repo the same project-Face treatment as the other repos"}
|
||||
{"timestamp":"2026-05-23T19:16:55.4706855+01:00","topic":"visitor-docs-refresh","lesson":"Fensalir visitor docs now describe the live runtime machine: host loop, contracts, D3D12 frame path, field/fractal lane, demo clients, build/run commands, and doc indexes. Keep README/docs oriented around current ownership and runnable surfaces, not split-history cleanup prose.","files": ["README.md","docs/hlsl-renderer.md","docs/README.md"],"source":"user asked both repos to describe the machines they contain for visitors"}
|
||||
{"date":"2026-05-23","topic":"visitor-docs","lesson":"Fensalir visitor docs must name the live machine: spatio-temporal reservoirs, Form/Appearance/Transport field layers, .aquageo/IFS volumetric DSL, and AquaSynth audio integration. Boundary-only prose hides the engine's actual authority."}
|
||||
|
|
|
|||
Loading…
Reference in a new issue