2026-05-08 20:04:10 +01:00
project :
name : Aquarium Engine
root : E:\Projects\Aquarium-Engine
upstream : https://github.com/GameCult/Aquarium-Engine
purpose : >
Native C# engine core for the Epiphany Aquarium client. The engine owns the
Win32/D3D11 host, HLSL renderer, input loop, live runtime boundary,
CultCache-backed state, and future diegetic UI/runtime integration.
current_model :
host :
window : src/Aquarium.Engine/Platform/Win32Window.cs
renderer : src/Aquarium.Engine/Render/D3D11Renderer.cs
shader : src/Aquarium.Engine/Render/Shaders/Aquarium.hlsl
overlay_text : src/Aquarium.Engine/Render/DirectWriteOverlay.cs
runtime_loader : src/Aquarium.Engine/Live/LiveRuntimeLoader.cs
live_runtime :
contracts : src/Aquarium.Engine.Contracts
implementation : src/Aquarium.Engine.Live
state_store : src/Aquarium.Engine.Live/State/AquariumCultStateStore.cs
state_document : epiphany.aquarium.live_state
dependencies :
cult_math : E:\Projects\CultMath
cult_lib : E:\Projects\CultLib
docs :
doctrine : docs/aquarium-engine-doctrine.md
renderer : docs/hlsl-renderer.md
runtime_surface : docs/cult-runtime-surface.md
native_spine : docs/vortice-spine.md
2026-05-08 21:29:47 +01:00
sdf_field_renderer_plan : docs/sdf-field-renderer-plan.md
2026-05-08 20:04:10 +01:00
input : docs/input.md
2026-05-08 20:51:14 +01:00
volumetrics_research : research/volumetrics/synthesis.md
2026-05-08 21:01:02 +01:00
recent_volumetrics_and_gpu_sdf : research/volumetrics/recent-volumetrics-and-gpu-sdf.md
2026-05-08 21:09:06 +01:00
volumetrics_transcript_addendum : research/volumetrics/transcript-addendum.md
2026-05-08 20:04:10 +01:00
invariants :
- The camera target is the Grid center on the global XY plane.
- Grid radius follows camera zoom distance, not pitch/yaw/projection.
- Body anchors remain world-space and independent of the moving Grid window.
- World-space domains own Grid texture/weather sampling.
2026-05-08 21:29:47 +01:00
- SDF clouds are local world media, not skybox content; they can exist above, below, around, or enclosing the camera.
2026-05-08 20:04:10 +01:00
- Visible scene lighting is diegetic; no default ambient/global fill.
- Overlay text is DirectWrite final-pixel UI; scene text needs renderer-owned billboards.
- CultCache persists live app state through reload.
- Failed shader/live-runtime reloads must leave the last good frame alive.
renderer_state :
current :
- D3D11 swapchain through Vortice.
- Fullscreen HLSL raymarch for Grid terrain, Self, and planets.
- Deferred Grid height render target.
- Primitive froxel/bin table for body broad phase.
- Stable planet-local displaced SDF domains.
- DirectWrite overlay text after scene rendering.
- Splash screen with bundled app icon and GameCult typefaces.
next :
- Add explicit renderer debug modes for hits, normals, depth, bins, and lighting.
- Restore HDR scene target, gentle pre-tonemap bloom, and ACES as explicit passes.
2026-05-08 20:51:14 +01:00
- Add volumetrics as an explicit renderer-owned field pass, starting from Wronski/Hillaire-style frustum volume lighting with Self as the first emitter.
2026-05-08 21:29:47 +01:00
- Evolve solids and clouds toward one SDF field registry with material and medium regimes.
2026-05-08 20:04:10 +01:00
- Move Grid gradients into the Grid target for cheaper terrain normals.
- Rebuild lighting as an Aquarium-owned field before adding richer fog.
- Add diegetic labels and object-local menus after the renderer and text contracts are stable.
next_actions :
- Keep main as the live development branch.
- Verify publish output after every packaging-affecting change.
- Add renderer debug controls through the DirectWrite overlay path.
2026-05-08 20:51:14 +01:00
- Use research/volumetrics/synthesis.md before designing fog, atmospheric scattering, clouds, or sparse volume storage.
2026-05-08 21:01:02 +01:00
- Use research/volumetrics/recent-volumetrics-and-gpu-sdf.md before designing GPU SDF, cloud traversal, learned field storage, or radiance caching.
2026-05-08 21:09:06 +01:00
- Check research/volumetrics/transcript-addendum.md before relying on slide decks as evidence; video transcripts can change the renderer lesson.
2026-05-08 21:29:47 +01:00
- Follow docs/sdf-field-renderer-plan.md when adding SDF solids, SDF clouds, or hybrid field objects.
2026-05-08 20:04:10 +01:00
- Promote runtime knobs into typed CultCache documents.
- Port only proven synth concepts into C# when audio returns; keep external prototypes as references, not engine baggage.