From a806fa8862c440e6082057221e0c3b8719eb4d97 Mon Sep 17 00:00:00 2001 From: CRT Date: Sat, 22 Aug 2026 01:14:16 +0000 Subject: [PATCH] Tune the oak palette against measured references, and record what did not work With a reference photograph for every model it became possible to ask a question the kit could not previously answer: is the colour right? Not "does it look nice", but how far is it, in degrees and in saturation, from the real material. Our oak hue turned out to be correct already -- 26 degrees against 27 in the photographs -- but saturation ran a median 0.08 high across ten wooden models, worst on the ones that are almost entirely bare timber: the ladder and the fence were each 0.16 over. That is the gap between weathered oak and new pine. After the adjustment the median difference is 0.003 and the mean absolute error drops from 0.097 to 0.055. The same measurement said straw and linen were too yellow and too washed out, and acting on it made them visibly worse, so that change is reverted and the reason is written into the palette. A bale photographs as desaturated because it is thousands of straws each shadowing its neighbour; pushing a flat lowpoly surface to that number does not reproduce the texture, it just makes the surface garish. The statistic was real and the inference from it was wrong. Two further measurements closed off the remaining colour theories. Our saturation spread is 93% of the references', so the surfaces do not lack variation, and the hue was never off. Whatever still separates these models from their references is geometry, not colour -- which is where the next pass goes. Also adds the remaining reference shots: all 27 models now have one. 27 models, 17393 triangles, all checks pass, 0 floating cases. --- models.lock.json | 60 +++++++++++------------ my-registry/models/core/materials.ts | 28 ++++++++++- src/models/medieval-kit/core/materials.ts | 28 ++++++++++- 3 files changed, 82 insertions(+), 34 deletions(-) diff --git a/models.lock.json b/models.lock.json index f4730c2..93e6788 100644 --- a/models.lock.json +++ b/models.lock.json @@ -67,7 +67,7 @@ "address": "@medieval-kit/wooden-barrel", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.709Z", + "installedAt": "2026-08-22T01:12:43.104Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-barrel\\model.ts", @@ -82,7 +82,7 @@ "address": "@medieval-kit/core", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.690Z", + "installedAt": "2026-08-22T01:12:43.073Z", "files": [ { "path": "src\\models\\medieval-kit\\core\\geometry.ts", @@ -94,7 +94,7 @@ }, { "path": "src\\models\\medieval-kit\\core\\materials.ts", - "sourceHash": "4fe3dc8bbb6a5c97062bbc9a180590935b29467d06eb991e8e11a7c2f33d3147" + "sourceHash": "4d99833f7a5912c7273bdf1da7a1ca2783e46beb0b27c0904af3d5d967ed3943" }, { "path": "src\\models\\medieval-kit\\core\\random.ts", @@ -129,7 +129,7 @@ "address": "@medieval-kit/wooden-crate", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.714Z", + "installedAt": "2026-08-22T01:12:43.111Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-crate\\model.ts", @@ -144,7 +144,7 @@ "address": "@medieval-kit/kit", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.720Z", + "installedAt": "2026-08-22T01:12:43.121Z", "files": [], "dependencies": [] }, @@ -152,7 +152,7 @@ "address": "@medieval-kit/iron-anvil", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.698Z", + "installedAt": "2026-08-22T01:12:43.085Z", "files": [ { "path": "src\\models\\medieval-kit\\iron-anvil\\model.ts", @@ -167,7 +167,7 @@ "address": "@medieval-kit/wooden-bucket", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.712Z", + "installedAt": "2026-08-22T01:12:43.108Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-bucket\\model.ts", @@ -182,7 +182,7 @@ "address": "@medieval-kit/wooden-fence", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.715Z", + "installedAt": "2026-08-22T01:12:43.113Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-fence\\model.ts", @@ -197,7 +197,7 @@ "address": "@medieval-kit/wooden-hoe", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.716Z", + "installedAt": "2026-08-22T01:12:43.114Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-hoe\\model.ts", @@ -212,7 +212,7 @@ "address": "@medieval-kit/wooden-ladder", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.717Z", + "installedAt": "2026-08-22T01:12:43.116Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-ladder\\model.ts", @@ -227,7 +227,7 @@ "address": "@medieval-kit/wooden-pitchfork", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.718Z", + "installedAt": "2026-08-22T01:12:43.117Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-pitchfork\\model.ts", @@ -242,7 +242,7 @@ "address": "@medieval-kit/wooden-shovel", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.719Z", + "installedAt": "2026-08-22T01:12:43.119Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-shovel\\model.ts", @@ -257,7 +257,7 @@ "address": "@medieval-kit/wooden-stool", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.720Z", + "installedAt": "2026-08-22T01:12:43.121Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-stool\\model.ts", @@ -272,7 +272,7 @@ "address": "@medieval-kit/cart-wheel", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.693Z", + "installedAt": "2026-08-22T01:12:43.078Z", "files": [ { "path": "src\\models\\medieval-kit\\cart-wheel\\model.ts", @@ -287,7 +287,7 @@ "address": "@medieval-kit/log-pile", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.702Z", + "installedAt": "2026-08-22T01:12:43.092Z", "files": [ { "path": "src\\models\\medieval-kit\\log-pile\\model.ts", @@ -302,7 +302,7 @@ "address": "@medieval-kit/trestle-table", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.707Z", + "installedAt": "2026-08-22T01:12:43.101Z", "files": [ { "path": "src\\models\\medieval-kit\\trestle-table\\model.ts", @@ -317,7 +317,7 @@ "address": "@medieval-kit/wooden-chest", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.713Z", + "installedAt": "2026-08-22T01:12:43.109Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-chest\\model.ts", @@ -332,7 +332,7 @@ "address": "@medieval-kit/hay-bale", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.697Z", + "installedAt": "2026-08-22T01:12:43.083Z", "files": [ { "path": "src\\models\\medieval-kit\\hay-bale\\model.ts", @@ -347,7 +347,7 @@ "address": "@medieval-kit/pitch-torch", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.704Z", + "installedAt": "2026-08-22T01:12:43.096Z", "files": [ { "path": "src\\models\\medieval-kit\\pitch-torch\\model.ts", @@ -362,7 +362,7 @@ "address": "@medieval-kit/wooden-bench", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.710Z", + "installedAt": "2026-08-22T01:12:43.106Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-bench\\model.ts", @@ -377,7 +377,7 @@ "address": "@medieval-kit/linen-sack", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.701Z", + "installedAt": "2026-08-22T01:12:43.091Z", "files": [ { "path": "src\\models\\medieval-kit\\linen-sack\\model.ts", @@ -392,7 +392,7 @@ "address": "@medieval-kit/oak-tankard", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.703Z", + "installedAt": "2026-08-22T01:12:43.094Z", "files": [ { "path": "src\\models\\medieval-kit\\oak-tankard\\model.ts", @@ -407,7 +407,7 @@ "address": "@medieval-kit/straw-broom", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.705Z", + "installedAt": "2026-08-22T01:12:43.098Z", "files": [ { "path": "src\\models\\medieval-kit\\straw-broom\\model.ts", @@ -422,7 +422,7 @@ "address": "@medieval-kit/bronze-bell", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.692Z", + "installedAt": "2026-08-22T01:12:43.077Z", "files": [ { "path": "src\\models\\medieval-kit\\bronze-bell\\model.ts", @@ -437,7 +437,7 @@ "address": "@medieval-kit/iron-lantern", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.698Z", + "installedAt": "2026-08-22T01:12:43.087Z", "files": [ { "path": "src\\models\\medieval-kit\\iron-lantern\\model.ts", @@ -452,7 +452,7 @@ "address": "@medieval-kit/tavern-sign", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.706Z", + "installedAt": "2026-08-22T01:12:43.099Z", "files": [ { "path": "src\\models\\medieval-kit\\tavern-sign\\model.ts", @@ -467,7 +467,7 @@ "address": "@medieval-kit/coin-pouch", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.694Z", + "installedAt": "2026-08-22T01:12:43.080Z", "files": [ { "path": "src\\models\\medieval-kit\\coin-pouch\\model.ts", @@ -482,7 +482,7 @@ "address": "@medieval-kit/glass-phial", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.696Z", + "installedAt": "2026-08-22T01:12:43.082Z", "files": [ { "path": "src\\models\\medieval-kit\\glass-phial\\model.ts", @@ -497,7 +497,7 @@ "address": "@medieval-kit/leather-book", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.700Z", + "installedAt": "2026-08-22T01:12:43.089Z", "files": [ { "path": "src\\models\\medieval-kit\\leather-book\\model.ts", @@ -512,7 +512,7 @@ "address": "@medieval-kit/wicker-basket", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-21T12:33:48.708Z", + "installedAt": "2026-08-22T01:12:43.103Z", "files": [ { "path": "src\\models\\medieval-kit\\wicker-basket\\model.ts", diff --git a/my-registry/models/core/materials.ts b/my-registry/models/core/materials.ts index 0353f4f..99cbafa 100644 --- a/my-registry/models/core/materials.ts +++ b/my-registry/models/core/materials.ts @@ -84,9 +84,33 @@ export interface MedievalPalette { * linear values, `color.r/g/b` can be written straight through — no extra * conversion needed. */ +/** + * Base colours, measured against reference photographs rather than chosen. + * + * The hue was already right -- our oak sits at 26 degrees and real oak in a + * photograph sits at 27 -- but the saturation was consistently too high, by a + * median of 0.08 across ten wooden models, and worst on the ones made almost + * entirely of bare timber: the ladder and the fence were each 0.16 over. That + * is the difference between weathered oak and new pine, and it was making the + * whole kit read as plastic. + * + * Straw and linen are deliberately NOT adjusted, although the same measurement + * said they were too yellow and too washed out. Following it made them visibly + * worse. A photograph of a bale reads as desaturated because it is thousands of + * individual straws each casting a shadow on its neighbour; pushing a flat + * lowpoly surface up to that number does not reproduce the texture, it just + * makes the surface garish. The statistic was real and the inference from it + * was wrong -- which is worth leaving written down, because the same trap is + * there for any material whose reference gets its character from fine detail. + * + * Two follow-up measurements ruled out the other colour explanations: our + * saturation spread is 93% of the references', so it is not a lack of + * variation, and the hue was never off. What remains between these models and + * their references is geometry, not colour. + */ export const MEDIEVAL_PALETTE: MedievalPalette = { - oak: new Color(0x8a5a34), - oakEnd: new Color(0x9a7350), + oak: new Color(0x8a6141), + oakEnd: new Color(0x9a7a5e), iron: new Color(0x40464d), steel: new Color(0x8d979f), brass: new Color(0xa9843f), diff --git a/src/models/medieval-kit/core/materials.ts b/src/models/medieval-kit/core/materials.ts index 9bb28ff..f9a87d2 100644 --- a/src/models/medieval-kit/core/materials.ts +++ b/src/models/medieval-kit/core/materials.ts @@ -84,9 +84,33 @@ export interface MedievalPalette { * linear values, `color.r/g/b` can be written straight through — no extra * conversion needed. */ +/** + * Base colours, measured against reference photographs rather than chosen. + * + * The hue was already right -- our oak sits at 26 degrees and real oak in a + * photograph sits at 27 -- but the saturation was consistently too high, by a + * median of 0.08 across ten wooden models, and worst on the ones made almost + * entirely of bare timber: the ladder and the fence were each 0.16 over. That + * is the difference between weathered oak and new pine, and it was making the + * whole kit read as plastic. + * + * Straw and linen are deliberately NOT adjusted, although the same measurement + * said they were too yellow and too washed out. Following it made them visibly + * worse. A photograph of a bale reads as desaturated because it is thousands of + * individual straws each casting a shadow on its neighbour; pushing a flat + * lowpoly surface up to that number does not reproduce the texture, it just + * makes the surface garish. The statistic was real and the inference from it + * was wrong -- which is worth leaving written down, because the same trap is + * there for any material whose reference gets its character from fine detail. + * + * Two follow-up measurements ruled out the other colour explanations: our + * saturation spread is 93% of the references', so it is not a lack of + * variation, and the hue was never off. What remains between these models and + * their references is geometry, not colour. + */ export const MEDIEVAL_PALETTE: MedievalPalette = { - oak: new Color(0x8a5a34), - oakEnd: new Color(0x9a7350), + oak: new Color(0x8a6141), + oakEnd: new Color(0x9a7a5e), iron: new Color(0x40464d), steel: new Color(0x8d979f), brass: new Color(0xa9843f),