Refocus Life on seed shell concept
This commit is contained in:
parent
3ca4d50922
commit
ca379c9e7a
4 changed files with 157 additions and 171 deletions
|
|
@ -3,157 +3,142 @@ static const int SDF_INDEX = 7;
|
|||
#include "D3D12SdfCommon.hlsli"
|
||||
#include "D3D12SdfMath.hlsli"
|
||||
|
||||
static const float LIFE_SHELL_SCALE = 2.85;
|
||||
static const float LIFE_SPIRAL_GROWTH = 0.17;
|
||||
|
||||
struct LifeShellDomain
|
||||
struct LifeDomain
|
||||
{
|
||||
float body;
|
||||
float shell;
|
||||
float rib;
|
||||
float aperture;
|
||||
float ember;
|
||||
float seam;
|
||||
float bead;
|
||||
float crack;
|
||||
float lip;
|
||||
float bead;
|
||||
float chamber;
|
||||
float pearl;
|
||||
float stripe;
|
||||
float u;
|
||||
float v;
|
||||
float w;
|
||||
float turn;
|
||||
float radius;
|
||||
float spiral;
|
||||
float spiralStep;
|
||||
float surfaceBand;
|
||||
float pressure;
|
||||
};
|
||||
|
||||
float2 lifeRotate(float2 p, float angle)
|
||||
float2 lifeRotate2(float2 p, float angle)
|
||||
{
|
||||
float c = cos(angle);
|
||||
float s = sin(angle);
|
||||
return float2(c * p.x - s * p.y, s * p.x + c * p.y);
|
||||
}
|
||||
|
||||
float lifeShellTexture(float u, float v)
|
||||
float lifeHash(float n)
|
||||
{
|
||||
float du = u;
|
||||
float dv = v;
|
||||
|
||||
[unroll]
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
float f = exp2((float)i);
|
||||
du += 0.15 / f * sin(f * du) * cos(f * dv);
|
||||
dv += 0.15 / f * cos(f * du) * sin(f * dv);
|
||||
}
|
||||
|
||||
float middle = cos(46.0 * du);
|
||||
float side = cos(18.0 * du + 0.5) + 0.1;
|
||||
float sideFade = 0.5 - 0.5 * tanh(1.0 - 3.0 * sin(dv) * sin(dv));
|
||||
float shellTexture = lerp(middle, side, sideFade) + 0.5 - 0.6 * cos(dv);
|
||||
shellTexture += 0.5 + 0.5 * tanh(4.0 * (du - 1.8));
|
||||
return saturate(8.0 * shellTexture + 0.5);
|
||||
return frac(sin(n * 127.1) * 43758.5453);
|
||||
}
|
||||
|
||||
LifeShellDomain lifeShellDomain(float3 local)
|
||||
float lifeSeedShell(float3 p, float pressure, out float surfaceBand)
|
||||
{
|
||||
float3 p = float3(local.x + 0.18, local.z, local.y) * LIFE_SHELL_SCALE;
|
||||
p.x -= 0.70;
|
||||
float2 q = p.xz + float2(0.020, -0.020);
|
||||
float radius = max(length(q), 0.035);
|
||||
float theta = atan2(q.y, q.x);
|
||||
const float growth = 0.165;
|
||||
const float startRadius = 0.080;
|
||||
|
||||
float r = length(p.xy);
|
||||
float yaw = lerp(0.0, 0.45, smoothstep(0.0, 1.0, 0.5 * (r - 0.6)));
|
||||
p.xy = lifeRotate(p.xy, yaw);
|
||||
r = max(length(p.xy), 0.0005);
|
||||
float t = atan2(p.y, p.x);
|
||||
|
||||
float ro = exp(LIFE_SPIRAL_GROWTH * PI);
|
||||
float d = length(float2(length(p.xz - float2(-ro, 0.0)) - ro, p.y));
|
||||
float u = t;
|
||||
float dx = r - ro;
|
||||
float dy = p.z;
|
||||
float solvedTurn = 0.0;
|
||||
|
||||
float n = (log(max((r * r + p.z * p.z) / (2.0 * r), 0.0001)) / LIFE_SPIRAL_GROWTH - t) / (2.0 * PI);
|
||||
n = min(n, 0.0);
|
||||
float n = (log(radius / startRadius) / growth - theta) / (2.0 * PI);
|
||||
n = clamp(n, 0.0, 3.15);
|
||||
float n0 = floor(n);
|
||||
float n1 = ceil(n);
|
||||
float r0 = exp(LIFE_SPIRAL_GROWTH * (2.0 * PI * n0 + t));
|
||||
float r1 = exp(LIFE_SPIRAL_GROWTH * (2.0 * PI * n1 + t));
|
||||
float d0 = abs(length(float2(r - r0, p.z)) - r0);
|
||||
float d1 = abs(length(float2(r - r1, p.z)) - r1);
|
||||
float n1 = min(n0 + 1.0, 3.15);
|
||||
float u0 = theta + 2.0 * PI * n0;
|
||||
float u1 = theta + 2.0 * PI * n1;
|
||||
float r0 = startRadius * exp(growth * u0);
|
||||
float r1 = startRadius * exp(growth * u1);
|
||||
float tube0 = 0.085 + 0.060 * n0 + pressure * 0.020;
|
||||
float tube1 = 0.085 + 0.060 * n1 + pressure * 0.020;
|
||||
float d0 = length(float2((radius - r0) * 0.92, p.y * 0.96)) - tube0;
|
||||
float d1 = length(float2((radius - r1) * 0.92, p.y * 0.96)) - tube1;
|
||||
float shell = min(d0, d1);
|
||||
|
||||
if (d0 < d)
|
||||
{
|
||||
d = d0;
|
||||
u = 2.0 * PI * n0 + t;
|
||||
dx = r - r0;
|
||||
dy = p.z;
|
||||
solvedTurn = n0;
|
||||
}
|
||||
float2 outerQ = (p.xz - float2(0.060, -0.010)) / float2(0.94, 0.80);
|
||||
float outerBound = length(outerQ) - 1.0;
|
||||
float innerVoid = 0.118 - length(float2(q.x * 1.05, q.y * 0.95));
|
||||
float breathe = 0.010 * sin(timeSeconds * 1.2 + u0 * 0.35) * (1.0 - pressure * 0.45);
|
||||
|
||||
if (d1 < d)
|
||||
{
|
||||
d = d1;
|
||||
u = 2.0 * PI * n1 + t;
|
||||
dx = r - r1;
|
||||
dy = p.z;
|
||||
solvedTurn = n1;
|
||||
}
|
||||
surfaceBand = abs(shell) - 0.030;
|
||||
return max(max(shell + breathe, outerBound), innerVoid);
|
||||
}
|
||||
|
||||
float chamberPhase = t + 2.0 * PI * (n0 + 0.5);
|
||||
float turnBlend = frac(n);
|
||||
float septumCurve = 2.35 * chamberPhase
|
||||
+ sqrt(max(0.25 - (turnBlend - 0.5) * (turnBlend - 0.5), 0.0))
|
||||
+ 0.5 * turnBlend;
|
||||
float siphuncle = min(1.0 / (40.0 * length(float2(turnBlend - 0.5, p.z)) + 1.0), 0.5);
|
||||
septumCurve += siphuncle * siphuncle;
|
||||
float septumWave = frac(septumCurve);
|
||||
septumWave = chamberPhase > -1.8 ? abs(septumCurve + 3.25) : min(septumWave, 1.0 - septumWave);
|
||||
float septumDistance = septumWave / 2.35 * exp(LIFE_SPIRAL_GROWTH * (chamberPhase + PI));
|
||||
float lifeSpiralField(float2 p, out float nearestTurn, out float stepAlong)
|
||||
{
|
||||
float2 q = p + float2(0.105, -0.020);
|
||||
float radius = max(length(q), 0.035);
|
||||
float theta = atan2(q.y, q.x);
|
||||
const float growth = 0.205;
|
||||
const float startRadius = 0.055;
|
||||
|
||||
float chamberGate = 1.0 - smoothstep(2.6, 3.05, length(p * float3(1.0, 1.0, 1.5)));
|
||||
float septumSurface = 0.5 * septumDistance + 0.012;
|
||||
d = lerp(d, min(d, septumSurface), chamberGate);
|
||||
float turn = (log(radius / startRadius) / growth - theta) / (2.0 * PI);
|
||||
nearestTurn = clamp(round(turn), 0.0, 3.0);
|
||||
float targetRadius = startRadius * exp(growth * (theta + 2.0 * PI * nearestTurn));
|
||||
float radialError = radius - targetRadius;
|
||||
stepAlong = theta + 2.0 * PI * nearestTurn;
|
||||
return abs(radialError);
|
||||
}
|
||||
|
||||
float sectionRadius = max(exp(LIFE_SPIRAL_GROWTH * u), 0.0005);
|
||||
float v = atan2(dy, dx);
|
||||
float w = length(float2(dx, dy)) / sectionRadius;
|
||||
float shellThickness = 0.8 * max(0.02 * pow(r, 0.4), 0.02);
|
||||
d += 0.00012 * r * sin(200.0 * u);
|
||||
float shell = abs(d) - shellThickness;
|
||||
float cut = max(-1.35 - p.z, p.z - 0.82);
|
||||
shell = max(shell, cut);
|
||||
float lifeAperture(float3 p, float pressure)
|
||||
{
|
||||
float3 q = p - float3(-0.325 + pressure * 0.060, -0.040, 0.045);
|
||||
q.xz = lifeRotate2(q.xz, -0.18);
|
||||
float bowl = sdEllipsoid(q, float3(0.325 - pressure * 0.040, 0.320, 0.255 - pressure * 0.020));
|
||||
float mouthGate = p.x + 0.090 + pressure * 0.070;
|
||||
return max(bowl, mouthGate);
|
||||
}
|
||||
|
||||
float outerTurn = smoothstep(-1.05, -0.06, n);
|
||||
float lipBand = abs(w - 1.02) * sectionRadius;
|
||||
float apertureLip = max(lipBand - 0.040, -outerTurn);
|
||||
float cutLip = max(abs(cut) - 0.040, shell - 0.020);
|
||||
float lip = min(apertureLip, cutLip);
|
||||
float beadArc = abs(sin((v + 0.65 * sin(u)) * 19.0 + u * 1.4)) - 0.38;
|
||||
float beadRail = min(max(lipBand - 0.018, -outerTurn), cutLip);
|
||||
float bead = max(beadRail, beadArc * 0.030);
|
||||
float rib = max(septumDistance - 0.012, abs(shell + 0.006) - 0.026);
|
||||
float crackPhase = sin(u * 8.3 + sin(v * 3.1) * 1.7) * sin(v * 13.0 + u * 0.6);
|
||||
float crack = max(abs(crackPhase) - 0.965, abs(shell + 0.002) - 0.010);
|
||||
float chamber = saturate(outerTurn * smoothstep(1.20, 0.70, w) * smoothstep(0.35, -0.05, cut));
|
||||
float pearl = saturate((1.0 - smoothstep(0.000, 0.020, bead)) * outerTurn);
|
||||
LifeDomain lifeDomain(float3 local, SdfObject sdfObject)
|
||||
{
|
||||
float pressure = saturate(sdfObject.state.z + (1.0 - saturate(sdfObject.state.y)) * 0.12);
|
||||
float3 p = local;
|
||||
p.xz = lifeRotate2(p.xz, 0.10);
|
||||
|
||||
float ribLift = (1.0 - smoothstep(0.0, 0.018, rib)) * 0.038;
|
||||
float lipLift = (1.0 - smoothstep(0.0, 0.040, lip)) * 0.050;
|
||||
float beadLift = pearl * 0.035;
|
||||
float surfaceBand;
|
||||
float shell = lifeSeedShell(p, pressure, surfaceBand);
|
||||
float aperture = lifeAperture(p, pressure);
|
||||
float openedShell = max(shell, -aperture);
|
||||
|
||||
LifeShellDomain domain;
|
||||
domain.body = (shell - ribLift - lipLift - beadLift) / LIFE_SHELL_SCALE;
|
||||
domain.shell = shell / LIFE_SHELL_SCALE;
|
||||
domain.rib = rib / LIFE_SHELL_SCALE;
|
||||
domain.crack = crack / LIFE_SHELL_SCALE;
|
||||
domain.lip = lip / LIFE_SHELL_SCALE;
|
||||
domain.bead = bead / LIFE_SHELL_SCALE;
|
||||
domain.chamber = chamber;
|
||||
domain.pearl = pearl;
|
||||
domain.stripe = lifeShellTexture(u, v);
|
||||
domain.u = u;
|
||||
domain.v = v;
|
||||
domain.w = w;
|
||||
domain.turn = solvedTurn;
|
||||
domain.radius = r / LIFE_SHELL_SCALE;
|
||||
float turn;
|
||||
float stepAlong;
|
||||
float spiralLine = lifeSpiralField(p.xz, turn, stepAlong);
|
||||
float spiralGate = smoothstep(0.035, 0.22, p.x + 0.44) * (1.0 - smoothstep(0.70, 0.92, length(p.xz)));
|
||||
float seam = max(spiralLine - lerp(0.011, 0.019, pressure), surfaceBand);
|
||||
float darkGroove = (1.0 - smoothstep(0.0, 0.018, seam)) * spiralGate;
|
||||
|
||||
float beadPeriod = sin(stepAlong * 7.2 + 0.8 * sin(stepAlong * 0.7));
|
||||
float beadWindow = smoothstep(0.36, 0.72, p.x + 0.40) * smoothstep(0.84, 0.28, length(p.xz));
|
||||
float bead = max(max(spiralLine - 0.018, abs(beadPeriod) - 0.34), surfaceBand - 0.014);
|
||||
float beadMask = (1.0 - smoothstep(0.0, 0.012, bead)) * beadWindow * spiralGate;
|
||||
|
||||
float ribPhase = abs(sin(stepAlong * 2.35 + turn * 0.8));
|
||||
float rib = max(spiralLine - 0.024, surfaceBand - 0.016);
|
||||
float ribLift = (1.0 - smoothstep(0.0, 0.016, rib)) * spiralGate * ribPhase * 0.024;
|
||||
|
||||
float3 emberP = p - float3(-0.245 + pressure * 0.040, -0.050, 0.030);
|
||||
float emberPulse = 0.012 * sin(timeSeconds * 2.1 + pressure * 1.7);
|
||||
float ember = sdSphere(emberP, 0.090 + emberPulse);
|
||||
|
||||
float lip = max(abs(aperture) - 0.030, abs(shell) - 0.045);
|
||||
float lipLift = (1.0 - smoothstep(0.0, 0.024, lip)) * 0.036;
|
||||
float beadLift = beadMask * 0.034;
|
||||
float grooveCut = darkGroove * lerp(0.026, 0.050, pressure);
|
||||
|
||||
float crackSeed = sin(stepAlong * 5.7 + sin(p.y * 8.0) * 0.7) * sin((p.z - p.x) * 16.0);
|
||||
float crack = max(abs(crackSeed) - 0.955, surfaceBand - 0.004);
|
||||
|
||||
LifeDomain domain;
|
||||
domain.body = min(openedShell - ribLift - lipLift - beadLift + grooveCut, ember);
|
||||
domain.shell = openedShell;
|
||||
domain.aperture = aperture;
|
||||
domain.ember = ember;
|
||||
domain.seam = seam;
|
||||
domain.bead = bead;
|
||||
domain.crack = crack;
|
||||
domain.lip = lip;
|
||||
domain.spiral = spiralLine;
|
||||
domain.spiralStep = stepAlong;
|
||||
domain.surfaceBand = surfaceBand;
|
||||
domain.pressure = pressure;
|
||||
return domain;
|
||||
}
|
||||
|
||||
|
|
@ -162,7 +147,7 @@ float sdfDistance(float3 p, int sdfIndex)
|
|||
SdfObject sdfObject = sdfObjects[sdfIndex];
|
||||
float radius = max(sdfObject.centerRadius.w, 0.001);
|
||||
float3 local = (p - sdfObject.centerRadius.xyz) / radius;
|
||||
return lifeShellDomain(local).body * radius;
|
||||
return lifeDomain(local, sdfObject).body * radius;
|
||||
}
|
||||
|
||||
SdfSurface sdfSurface(float3 p, int sdfIndex)
|
||||
|
|
@ -170,37 +155,37 @@ SdfSurface sdfSurface(float3 p, int sdfIndex)
|
|||
SdfObject sdfObject = sdfObjects[sdfIndex];
|
||||
float radius = max(sdfObject.centerRadius.w, 0.001);
|
||||
float3 local = (p - sdfObject.centerRadius.xyz) / radius;
|
||||
LifeShellDomain domain = lifeShellDomain(local);
|
||||
LifeDomain domain = lifeDomain(local, sdfObject);
|
||||
float heartbeat = saturate(sdfObject.state.y);
|
||||
float pressure = saturate(sdfObject.state.z + (1.0 - heartbeat) * 0.14);
|
||||
|
||||
float lip = 1.0 - smoothstep(0.000, 0.020, domain.lip);
|
||||
float bead = domain.pearl;
|
||||
float rib = (1.0 - lip) * (1.0 - bead) * (1.0 - smoothstep(0.000, 0.010, domain.rib));
|
||||
float crack = (1.0 - lip) * (1.0 - bead) * (1.0 - smoothstep(0.000, 0.006, domain.crack));
|
||||
float chamber = domain.chamber * (1.0 - lip * 0.40);
|
||||
float ornament = saturate(max(max(lip, bead), rib));
|
||||
float ember = 1.0 - smoothstep(0.000, 0.018, domain.ember);
|
||||
float lip = (1.0 - ember) * (1.0 - smoothstep(0.000, 0.018, domain.lip));
|
||||
float bead = (1.0 - ember) * (1.0 - lip * 0.40) * (1.0 - smoothstep(0.000, 0.011, domain.bead));
|
||||
float seam = (1.0 - ember) * (1.0 - smoothstep(0.000, 0.016, domain.seam));
|
||||
float crack = (1.0 - ember) * (1.0 - smoothstep(0.000, 0.006, domain.crack));
|
||||
float chamber = (1.0 - ember) * smoothstep(0.025, -0.045, domain.aperture) * smoothstep(0.16, -0.04, local.x + 0.12);
|
||||
|
||||
float3 deepTeal = float3(0.018, 0.42, 0.42);
|
||||
float3 teal = lerp(deepTeal, float3(0.060, 0.86, 0.76), domain.stripe);
|
||||
float3 warmNacre = lerp(float3(0.70, 0.54, 0.26), float3(1.0, 0.78, 0.30), saturate(domain.chamber + 0.25 * domain.stripe));
|
||||
float3 lipColor = float3(0.95, 0.82, 0.55);
|
||||
float3 pearlColor = float3(0.98, 0.92, 0.72);
|
||||
float3 crackGold = float3(1.0, 0.55, 0.10);
|
||||
float nacre = 0.5 + 0.5 * sin(domain.spiralStep * 1.7 + local.y * 5.0 + timeSeconds * 0.08);
|
||||
float3 teal = lerp(float3(0.022, 0.38, 0.38), float3(0.050, 0.72, 0.66), nacre);
|
||||
float3 gold = lerp(float3(0.88, 0.42, 0.10), float3(1.0, 0.78, 0.25), nacre);
|
||||
float3 pearl = float3(0.96, 0.88, 0.68);
|
||||
float3 scar = float3(0.035, 0.020, 0.015);
|
||||
float3 emberColor = float3(1.0, 0.38, 0.055);
|
||||
|
||||
SdfSurface surface;
|
||||
surface.baseColor = lerp(teal, warmNacre, chamber * 0.62);
|
||||
surface.baseColor = lerp(surface.baseColor, lipColor, saturate(lip * 0.24 + rib * 0.36));
|
||||
surface.baseColor = lerp(surface.baseColor, pearlColor, bead);
|
||||
surface.baseColor = lerp(surface.baseColor, crackGold, crack * 0.65);
|
||||
surface.metallic = 0.04 + 0.28 * ornament;
|
||||
surface.roughness = 0.20 * (1.0 - ornament) + 0.13 * chamber + 0.09 * ornament + 0.10 * bead;
|
||||
surface.emission = primitiveEmissionRadiance(sdfFieldId(sdfIndex)) * 0.025
|
||||
surface.baseColor = lerp(teal, gold, chamber * 0.82);
|
||||
surface.baseColor = lerp(surface.baseColor, pearl, saturate(lip * 0.55 + bead * 1.25));
|
||||
float scarMask = saturate(seam * (1.0 - bead) * (0.45 + domain.pressure * 0.35) + crack * 0.50);
|
||||
surface.baseColor = lerp(surface.baseColor, scar, scarMask);
|
||||
surface.baseColor = lerp(surface.baseColor, emberColor, ember);
|
||||
surface.metallic = 0.06 + 0.22 * saturate(lip + bead);
|
||||
surface.roughness = lerp(0.22, 0.11, saturate(lip + bead + ember * 0.5));
|
||||
surface.emission = primitiveEmissionRadiance(sdfFieldId(sdfIndex)) * 0.020
|
||||
+ teal * 0.070
|
||||
+ warmNacre * chamber * (0.70 + heartbeat * 0.34)
|
||||
+ lipColor * lip * 0.12
|
||||
+ pearlColor * bead * 0.16
|
||||
+ crackGold * crack * (0.05 + pressure * 0.16);
|
||||
+ gold * chamber * (0.45 + heartbeat * 0.28)
|
||||
+ pearl * bead * 0.22
|
||||
+ emberColor * ember * (2.4 + heartbeat * 1.1 + domain.pressure * 0.8)
|
||||
+ gold * crack * 0.10;
|
||||
return surface;
|
||||
}
|
||||
|
||||
|
|
@ -209,16 +194,15 @@ float3 shadeSdf(float2 uv, float travel, float3 p, float3 normal, int sdfIndex,
|
|||
SdfObject sdfObject = sdfObjects[sdfIndex];
|
||||
float radius = max(sdfObject.centerRadius.w, 0.001);
|
||||
float3 local = (p - sdfObject.centerRadius.xyz) / radius;
|
||||
LifeShellDomain domain = lifeShellDomain(local);
|
||||
LifeDomain domain = lifeDomain(local, sdfObject);
|
||||
float3 shaded = shadeSdfPbr(p, normal, surface);
|
||||
|
||||
float3 viewDirection = normalize(cameraPosition - p);
|
||||
float edge = pow(1.0 - saturate(dot(normal, viewDirection)), 3.0);
|
||||
float core = exp(-dot(local - float3(-0.20, -0.05, 0.02), local - float3(-0.20, -0.05, 0.02)) * 18.0);
|
||||
float apertureGlow = smoothstep(0.10, -0.08, domain.aperture) * smoothstep(0.20, -0.08, local.x + 0.18);
|
||||
return shaded
|
||||
+ float3(1.0, 0.48, 0.08) * core * 0.30
|
||||
+ float3(0.10, 0.52, 0.56) * edge * 0.08
|
||||
+ float3(0.95, 0.62, 0.18) * domain.chamber * 0.14;
|
||||
+ float3(0.08, 0.48, 0.44) * edge * 0.10
|
||||
+ float3(1.0, 0.44, 0.06) * apertureGlow * 0.28;
|
||||
}
|
||||
|
||||
#define SDF_TRACE_STEP_SCALE 0.12
|
||||
|
|
|
|||
|
|
@ -99,3 +99,4 @@
|
|||
{"timestamp":"2026-05-14T04:10:00+01:00","topic":"life-aperture-authority","lesson":"Life's aperture is not a boolean cut face. Render it as a concave inner shell surface integrated into the same log-polar/aperture domain, with the nacre lip owning the boundary and the warm chamber sitting behind it. If chamber material has priority over lip material, the shell reads as a flat sliced object.","files":["src/Aquarium.Epiphany/Shaders/D3D12LifeAgent.hlsl","state/life-agent-sdf-notes.md","state/evidence.jsonl"],"source":"user build screenshots showed the aperture as a flat segmented golden cut"}
|
||||
{"timestamp":"2026-05-14T04:55:00+01:00","topic":"life-swept-whorl-field","lesson":"Life must not preserve the ellipsoid-plus-aperture lineage. Build the shell from a swept whorl field: log-polar phase defines the growing spiral sweep, radial growth thickens the tube until whorls overlap into a continuous mass, and lip/ribs/cracks/pearls/chamber light are masks on that same domain. A welded disc or separate cup is a failed model, not a feature to polish.","files":["src/Aquarium.Epiphany/Shaders/D3D12LifeAgent.hlsl","state/life-agent-sdf-notes.md","state/evidence.jsonl"],"source":"user supplied supershape shell reference and called out failure enshrinement"}
|
||||
{"timestamp":"2026-05-14T05:55:00+01:00","topic":"life-nautilus-source-port","lesson":"For Life, the durable model is the Nautilus.glsl logarithmic shell solve: find the nearest exponential spiral boundary in cylindrical space, use its u/v/w section coordinates for wall thickness, septa, ribs, aperture/cut, pearls, cracks, and materials. A loose phase field plus welded opening is not a coherent shell."}
|
||||
{"timestamp":"2026-05-14T13:38:00+01:00","topic":"life-spec-over-reference-port","lesson":"Do not recreate a reference shader when the task is to learn its spatial-domain mapping. For Life, Nautilus.glsl is a coordinate lesson; the spec authority is a protective revolved seed/cardioid shell with a visible ember, logarithmic seam, and memory beads sharing one spiral domain."}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@ Working model:
|
|||
- A disc/cup welded onto the shell is worse: it enshrines the failed cut-face model.
|
||||
- The source-backed model comes from `artifacts/Nautilus.glsl`: solve the nearest logarithmic spiral boundary in cylindrical shell space, then derive wall thickness, septa, aperture/cut exposure, ribs, stripes, lip, pearls, cracks, and chamber light from that solved domain.
|
||||
- Do not replace the solve with a loose `sin(phase)` whorl. That was the false shortcut.
|
||||
- Lip, pearls, ribs, cracks, and chamber light are fields on the same `u/v/w` shell coordinates, not separate child objects.
|
||||
- The supershape reference has two openings, but it preserves the useful spirit: a continuous swept shell surface with rolled lip and nested growth. The Shadertoy source provides the stronger mathematical prior.
|
||||
- Do not recreate the Shadertoy Nautilus. Its durable lesson is spatial-domain mapping, not the Life silhouette.
|
||||
- The spec authority is a protective revolved seed/cardioid shell around a visible ember. The Nautilus spiral math should only coordinate seam, bead trail, aperture logic, and surface breathing.
|
||||
- Lip, pearls, ribs, cracks, and chamber light are fields on the same shell/spiral coordinates, not separate child objects.
|
||||
|
||||
Latest preview used for judgment:
|
||||
|
||||
- `artifacts/agent-previews/Life/20260514-055444/life-front.png`
|
||||
- `artifacts/agent-previews/Life/20260514-055444/life-mouth-oblique.png`
|
||||
- `artifacts/agent-previews/Life/20260514-134914/life-front.png`
|
||||
- `artifacts/agent-previews/Life/20260514-134914/life-mouth-oblique.png`
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ renderer_state:
|
|||
- Epiphany's cursor is a luminous five-petal hibiscus SDF centered one cursor radius above the XY plane so its contact tip reaches Grid z=0 without projecting to the Grid surface.
|
||||
- SDF/analytic Epiphany role visuals upload current centers, previous centers, and state scalars through the public `AquariumSdfObject` contract.
|
||||
- Agent SDF visual language is documented against Epiphany's published CultNet surfaces: identity from agent memory, motion from heartbeat, posture from role/coordinator/result surfaces, pressure from reorient/pressure surfaces, and expression through bounded orbit wandering plus CPU-visible gravity-well pulses.
|
||||
- Life is a memory-nautilus SDF owned by a logarithmic shell domain: the log-polar shell footprint owns the visible nautilus silhouette, while spiral ribs/seam/crack masks, warm aperture bowl, ember, and memory beads derive from the same local shell and aperture coordinates rather than a fallback primitive.
|
||||
- Life is a memory-nautilus seed-shell SDF: a protective revolved seed/cardioid shell owns the silhouette, a visible ember sits inside the aperture, and the logarithmic spiral domain owns seam, bead trail, pressure breathing, rupture scar, and surface masks. Nautilus references inform the coordinate mapping, not the object silhouette.
|
||||
- SDF light buffer feeds Self emission and direct object lighting; future other Selves should join this light lane, not a generic field-instance table.
|
||||
- Studio2 PMREM and irradiance DDS cubemaps are loaded as D3D12 TextureCubes; PMREM serves roughness-mip specular, irradiance serves Lambertian diffuse IBL for non-metal bodies.
|
||||
- DirectWrite/Direct2D unified debug panel with tabs for Aquarium renderer controls, client-declared debug panels, terminal commands, and engine/client tooling surfaces.
|
||||
|
|
|
|||
Loading…
Reference in a new issue