Stabilize Self orbital frame axes

This commit is contained in:
Meta Vens 2026-05-13 05:39:22 +01:00
commit 72fff9faed
3 changed files with 19 additions and 7 deletions

View file

@ -15,14 +15,25 @@ struct SelfField
float3x3 selfOrbitalFrame(float phase)
{
float2 a = float2(cos(phase * 0.19), sin(phase * 0.19));
float2 b = float2(cos(phase * -0.13 + 1.7), sin(phase * -0.13 + 1.7));
float2 c = float2(cos(phase * 0.11 + 3.2), sin(phase * 0.11 + 3.2));
float3 pole = normalize(float3(
0.42 * cos(phase * 0.17) + 0.31 * sin(phase * 0.11 + 1.9),
0.47 * sin(phase * 0.23 + 1.1),
0.74 + 0.12 * cos(phase * 0.13 + 2.7)));
float3 seed = normalize(float3(
cos(phase * 0.31 + 2.0),
sin(phase * 0.29 + 0.6),
0.37 * sin(phase * 0.19 + 3.4)));
float3 tangentA = normalize(seed - pole * dot(seed, pole));
float3 tangentB = cross(pole, tangentA);
float spin = phase * 0.41;
float spinCos = cos(spin);
float spinSin = sin(spin);
return float3x3(
normalize(float3(0.82 * a.x, 0.82 * a.y, 0.57)),
normalize(float3(-0.42 * b.x, 0.72, 0.56 * b.y)),
normalize(float3(0.38, -0.74 * c.x, 0.56 * c.y)));
tangentA * spinCos + tangentB * spinSin,
tangentB * spinCos - tangentA * spinSin,
pole);
}
float3 selfLatticeCoordinates(float3 dir, float shellIndex, float phase)

View file

@ -96,3 +96,4 @@
{"timestamp":"2026-05-13T04:41:09+01:00","topic":"temporal-jitter-specular-fireflies","lesson":"Projection jitter was disabled because an earlier implementation made the whole frame visibly wobble. Re-enable it as a small sub-half-pixel Halton sequence with previous-jitter tracking, give the resolver a narrow SDF hot-current path so validated history can damp transient specular fireflies without relaxing travel/field/normal/coverage validation, and attenuate bloom when resolved scene luminance is lower than the raw current spike so current-frame bloom does not bypass TAA.","files":["src/Aquarium.Engine/Render/D3D12Renderer.cs","src/Aquarium.Engine/Render/Shaders/D3D12Post.hlsl","docs/hlsl-renderer.md","docs/tsr-inspired-taa-spec.md","state/memory.json","state/evidence.jsonl"],"source":"user asked to give TAA teeth for Self rail highlights"}
{"timestamp":"2026-05-13T04:51:17+01:00","topic":"bloom-prefilter-firefly-clamp","lesson":"If a specular firefly exists for only one frame, resolving the source pixel after bloom is too late: the current-frame bloom pyramid has already spread the spike to neighbors. Clamp unsupported single-pixel HDR spikes in the bloom prefilter against local neighborhood luminance, then let temporal resolve and bloom attenuation handle the remaining supported highlights.","files":["src/Aquarium.Engine/Render/Shaders/D3D12Post.hlsl","docs/hlsl-renderer.md","docs/tsr-inspired-taa-spec.md","state/memory.json","state/evidence.jsonl"],"source":"user screenshot showed one-frame glowy fireflies after temporal resolve change"}
{"timestamp":"2026-05-13T05:31:00+01:00","topic":"self-inner-rail-emission-strip","lesson":"After reverting to the stable 1562837 Self form and attenuating same-field direct light in shared PBR, thicken rails into rounded bands rather than merely increasing tube radius. Bloom-driving rail emission should ride a narrow inner-surface center strip derived from the same shell/band coordinates; do not add separate hoop geometry or broad flat emissive paint for this read.","files":["src/Aquarium.Epiphany/Shaders/D3D12SelfBody.hlsl","state/memory.json","state/evidence.jsonl"],"source":"user asked for thicker rails with an emissive strip along the middle of the inside surface, then clarified they should thicken into bands"}
{"timestamp":"2026-05-13T05:42:00+01:00","topic":"self-orthonormal-orbital-frame","lesson":"Self rail bands should not be oriented by three independently normalized phase vectors. That can make the lattice axes collapse into a shared plane, causing bands to stack before diverging again. Build each shell frame as a real orthonormal basis from a precessing pole, projected tangent seed, cross-product tangent, and spin around the pole so all three axes keep participating.","files":["src/Aquarium.Epiphany/Shaders/D3D12SelfBody.hlsl","state/memory.json","state/evidence.jsonl"],"source":"user screenshot showed Self bands temporarily stacking along one plane"}

View file

@ -63,7 +63,7 @@
"Imagination's live shader realizes the six-petal topology as three mirrored sheet-pair fields. Keep film, rim, tendril, spark, shadow, and seed distances separated through material classification so raised rims can glow without collapsing the petal sheets into one generic blob.",
"Do not reintroduce Imagination's old polar-lobed seed or traced half-torus shadow. The seed is a plain luminous opal bud unless the spec asks otherwise; backlog shadow needs a visual contract before it becomes traced geometry.",
"Imagination's ribbon sheets should use one continuous pair-space field for film and raised edge rims. Do not rebuild the bloom from piecewise rim capsules or straight root/tip posts when the sheet parameterization can own the silhouette directly.",
"Self's body is the routing authority object: a black void command sphere with sharp golden Fresnel edge-light, one gold core band, and a compact log-spherical lattice around it. Rails are fixed radial shell strata crossed with angular harmonic bands, gates are compact triple-band crossings, and each concentric shell owns an orthogonal frame. Make rails readable PBR bands, not hairline emitters; bloom-driving rail emission should be a narrow inner-surface center strip derived from the same shell/band coordinates, with gate nodes and the core Fresnel rim as accents. Do not let pairwise shallow rail intersections become gate slabs, animate radial zero crossings, grow rings from points, stack multiple core bands, or rebuild Self as named hoop inventories, one-radius ornament layers, or repeated trigonometry piles.",
"Self's body is the routing authority object: a black void command sphere with sharp golden Fresnel edge-light, one gold core band, and a compact log-spherical lattice around it. Rails are fixed radial shell strata crossed with angular harmonic bands, gates are compact triple-band crossings, and each concentric shell owns a real orthonormal frame built from all three axes. Make rails readable PBR bands, not hairline emitters; bloom-driving rail emission should be a narrow inner-surface center strip derived from the same shell/band coordinates, with gate nodes and the core Fresnel rim as accents. Do not let frame axes collapse into a shared plane, pairwise shallow rail intersections become gate slabs, radial zero crossings animate, rings grow from points, multiple core bands stack, or Self rebuild as named hoop inventories, one-radius ornament layers, or repeated trigonometry piles.",
"For Self, the orrery comparison is motion and topology grammar. Rails, gates, and seams should emerge from a shared orbital space with phase motion, not from independent tilted hoops, loose symbols, or literal anatomical motifs.",
"Self is allowed to be a scene light, but its visible body must not add full primitive light radiance to every surface. Scale field-owned radiance to small accents and let PBR material contrast carry the core, rails, gates, and seam.",
"Heavy/specialized SDF evaluators should not live inside generic packed-id helpers when those helpers are called repeatedly; avoid shader compiler path cloning.",