Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Map: the olive crowns read grey olive, not chocolate brown, saturation 0.34 against promo 03's 0.32 (refs #772) (#842)

Beri3dacbfb94cdc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fcd2b0391..f7c05a167 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -89,6 +89,9 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
- The olive crowns are darker, with pale tops (visual gap L2, refs #34; owner, 15 October 2026: "Darker, with pale
sunlit tops"). At gameplay03 their body is luma 0.29 (main 0.50, promo 03 0.30) and their sunlit top stands 0.18 above
it (main 0.14, promo 0.18). Vertex colours only: no tree count, size, shader or grade change.
+- The olive crowns read grey olive, not chocolate brown (refs #772): their median saturation at gameplay03 (editor shot)
+ is 0.34 (main 0.41, promo 03 0.32) and their hue 27.5 degrees (main 31.7, promo 28.2), with more blue in the lobes
+ and a greyer sunlit top. Body luma 0.29 and top contrast 0.20 stay in promo 03's bands. Vertex colours only.
- The surf is wide on the dune coasts and narrow under the kurkar, as promo 03 draws it (refs #690, #388): 3.0 km from
Jaffa south and in Haifa Bay, 1.5 km elsewhere (2.4 km everywhere before). The dune coasts are one definition,
`unity/Assets/Resources/Map/DuneCoasts.json`, which the water pass reads through `MapShaderGlobals`. Presentation only.
diff --git a/unity/Assets/Scripts/Map/Kits/Vegetation.cs b/unity/Assets/Scripts/Map/Kits/Vegetation.cs
index d3528ffe8..a7881385f 100644
--- a/unity/Assets/Scripts/Map/Kits/Vegetation.cs
+++ b/unity/Assets/Scripts/Map/Kits/Vegetation.cs
@@ -40,12 +40,15 @@ namespace Statecraft.Game.Map.Kits
case TreeKind.Olive:
{
// Visual gap L2 (issue #34; owner, 15 Oct 2026: "Darker, with pale sunlit tops"): dark olive-brown lobes whose
- // tops pale to OliveTop, to promo 03's crowns (KitTests.TheHillOliveCrownsAreDarkWithPaleSunlitTops).
+ // tops pale to OliveTop, to promo 03's crowns (KitTests.TheHillOliveCrownsAreDarkWithPaleSunlitTops). Issue #772: the
+ // lobes' blue sits near their green (just above it on the biggest lobe) and OliveTop is greyer, because the grade
+ // warms them: in the editor shot at gameplay03 they read grey olive (saturation 0.34, hue 27.5) like the promo's
+ // (0.32, 28.2), not chocolate brown (0.41).
var top = C(OliveTop.r, OliveTop.g, OliveTop.b);
km.Shaft(new Vector3(0, -0.6f, 0), new Vector3(0.15f, 1.7f, 0.1f), 0.32f, 0.22f, C(0.36f, 0.31f, 0.25f), 4);
- km.Crown(new Vector3(0.5f, 2.9f, 0.2f), new Vector3(2.0f, 1.5f, 1.9f), C(0.28f, 0.255f, 0.225f), ref rnd, 0.16f, 7, 4, 0f, default, 0.35f, top, OliveTopFrom);
- km.Crown(new Vector3(-0.8f, 2.6f, -0.4f), new Vector3(1.6f, 1.3f, 1.5f), C(0.265f, 0.24f, 0.21f), ref rnd, 0.18f, 6, 4, 0f, default, 0.35f, top, OliveTopFrom);
- km.Crown(new Vector3(-0.1f, 3.5f, 0.6f), new Vector3(1.3f, 1.0f, 1.3f), C(0.30f, 0.275f, 0.24f), ref rnd, 0.15f, 6, 3, 0f, default, 0.35f, top, OliveTopFrom);
+ km.Crown(new Vector3(0.5f, 2.9f, 0.2f), new Vector3(2.0f, 1.5f, 1.9f), C(0.28f, 0.255f, 0.26f), ref rnd, 0.16f, 7, 4, 0f, default, 0.35f, top, OliveTopFrom);
+ km.Crown(new Vector3(-0.8f, 2.6f, -0.4f), new Vector3(1.6f, 1.3f, 1.5f), C(0.265f, 0.24f, 0.245f), ref rnd, 0.18f, 6, 4, 0f, default, 0.35f, top, OliveTopFrom);
+ km.Crown(new Vector3(-0.1f, 3.5f, 0.6f), new Vector3(1.3f, 1.0f, 1.3f), C(0.30f, 0.275f, 0.275f), ref rnd, 0.15f, 6, 3, 0f, default, 0.35f, top, OliveTopFrom);
break;
}
case TreeKind.Palm:
@@ -89,7 +92,7 @@ namespace Statecraft.Game.Map.Kits
public const float HillOliveSize = 1.7f, HillOliveShare = 0.6f;
/// <summary>Visual gap L2 (issue #34): the olive crown's sunlit top colour, and the up component of the normal from which
/// a lobe starts to pale towards it (all of it at the lobe's peak).</summary>
- public static readonly Color OliveTop = new Color(0.57f, 0.52f, 0.46f);
+ public static readonly Color OliveTop = new Color(0.585f, 0.54f, 0.505f);
public const float OliveTopFrom = 0.5f;
/// <summary>The widest crown (m) the grove index is asked about (its query reach past a grove's disc).</summary>
const float ScatterKeepM = 1500f;
diff --git a/unity/Assets/Tests/EditMode/KitTests.cs b/unity/Assets/Tests/EditMode/KitTests.cs
index 7bb801966..5a8cce99a 100644
--- a/unity/Assets/Tests/EditMode/KitTests.cs
+++ b/unity/Assets/Tests/EditMode/KitTests.cs
@@ -1254,13 +1254,17 @@ public class KitTests
/// pixels are those of the plan's windows OW1 and OW2 that the trees change by more than 3/255 in luma with shadows off
/// (TheHillOlivesCoverPromo03sShareOfTheHills: the crowns, not their cast shadows), less a pixel at every edge (a pixel
/// counts only if its four neighbours do), so the ground blended into a crown's rim is left out. Their median luma (the
- /// body) and their 90th percentile less the median (the sunlit top against the body) must fall in promo 03's bands.</summary>
+ /// body), their 90th percentile less the median (the sunlit top against the body) and their median saturation (#772) must
+ /// fall in promo 03's bands.</summary>
/// <remarks>Promo 03's numbers are from the 53 hand-marked crowns of TheHillOlivesMatchPromo03sCrownSize, each circle's
/// inner 0.8 of the radius (again leaving out the rim), 22,849 pixels, measured 16 Oct 2026: body (median luma) 0.302,
/// 90th percentile 0.484, top against body 0.181; hue median 28 degrees, saturation 0.32; lit from the upper left (the
/// crowns' upper halves 0.351 against lower 0.279, left 0.354 against right 0.277). Each band is the promo's value ±15%.
/// </remarks>
public static readonly Vector2 PromoCrownBodyLuma = new Vector2(0.257f, 0.347f), PromoCrownTopContrast = new Vector2(0.154f, 0.208f);
+ /// <summary>Issue #772: promo 03's crowns read grey olive, saturation 0.322; ±15% as the bands above. #697's crowns
+ /// measured 0.41 (chocolate brown) in the WebGL shot.</summary>
+ public static readonly Vector2 PromoCrownSaturation = new Vector2(0.274f, 0.370f);
[UnityTest]
public IEnumerator TheHillOliveCrownsAreDarkWithPaleSunlitTops()
@@ -1292,10 +1296,11 @@ public class KitTests
float body = Pct(luma, 0.5f), top = Pct(luma, 0.9f), contrast = top - body;
TestContext.WriteLine($"gameplay03 OW1+OW2 olive crowns: {luma.Count} pixels; body (median luma) {body:0.000} (promo {PromoCrownBodyLuma.x:0.000}-{PromoCrownBodyLuma.y:0.000}), " +
$"90th percentile {top:0.000}, top against body {contrast:0.000} (promo {PromoCrownTopContrast.x:0.000}-{PromoCrownTopContrast.y:0.000}); " +
- $"hue median {Pct(hue, 0.5f):0.0} (IQR {Pct(hue, 0.25f):0.0}-{Pct(hue, 0.75f):0.0}; promo 28.2), saturation median {Pct(sat, 0.5f):0.000} (promo 0.322)");
+ $"hue median {Pct(hue, 0.5f):0.0} (IQR {Pct(hue, 0.25f):0.0}-{Pct(hue, 0.75f):0.0}; promo 28.2), saturation median {Pct(sat, 0.5f):0.000} (promo {PromoCrownSaturation.x:0.000}-{PromoCrownSaturation.y:0.000})");
Assert.Greater(luma.Count, 2000, "enough crown pixels in the windows");
Assert.That(body, Is.InRange(PromoCrownBodyLuma.x, PromoCrownBodyLuma.y), "olive crown body luma against promo 03");
Assert.That(contrast, Is.InRange(PromoCrownTopContrast.x, PromoCrownTopContrast.y), "olive crown sunlit top against its body, against promo 03");
+ Assert.That(Pct(sat, 0.5f), Is.InRange(PromoCrownSaturation.x, PromoCrownSaturation.y), "olive crown saturation against promo 03 (grey olive, not brown)");
}
/// <summary>The WebGL checkpoint drew every palm black: a frond's tip quad collapsed to a point, its edge-based normal was