Darkwood 3D Engine — Milestone 1 & Visual Approval
Branch 3d-engine (pushed to origin; main untouched; nothing deployed). Click any image to zoom full-screen, pick your decisions below, and copy the summary line back to chat.
1. Solid 3D Wood Proof-of-Concept Milestone 1 · A3
Live per-fragment 3D evaluation (woodGrain3D → gradientRamp + levels + normalMap3D, POM & displacement off). Concentric growth rings on end faces, sweeping stripes on sides, continuous across rounded edges, and sharp at any zoom.
2. Refresh 11 Stale Golden Reference Images? Question 1
What this means: tests/gl/goldens/ stores a 128×128 reference PNG for each of the 169 library materials so pnpm test:golden and pnpm run pre-deploy catch visual regressions. These 11 saved PNGs were already out of date on main before we branched (earlier commits changed the materials/shaders without re-saving their goldens). Refreshing them simply overwrites these 11 reference files with what main already renders today so the golden gate passes 169/169.


main)

main)

main)

main)

main)

main)

main)

main)

main)

main)

main)3. Δ Look-Changing Proposals Needs Approval
Everything else on the plan (B2, B5, B6, B10, A4–A9) keeps the 169 library materials pixel-identical. The four items below intentionally change how existing materials look (marked Δ in 3d-engine-plan.md). Approve or defer each one individually.
B3 (Δ) — Exact IEC sRGB transfer curve instead of pow(c, 2.2)
EXR linearisation is already done. This Δ item updates the 2D Lit view and 3D viewer colour decode from approximate pow(c, 2.2) to exact IEC 61966-2-1 sRGB. Shadows become slightly deeper and more accurate (subtle — 10× amplified difference shown on the right).

pow 2.2)


pow 2.2)

B4 (Δ) — Fix broken 2D filter math (Gaussian σ, Kuwahara, bilateral, directional blur, resolution drift)
Right now, several 2D filters change appearance sharply between 256 px previews and 1024–2048 px exports (shown below on hard-edged Cells), and Gaussian/Kuwahara/bilateral kernels have math bugs. B2 fixes resolution-scaling (keeps 256 px mostly identical); B4 fixes the kernel math itself, which shifts the look of materials using those filters.




B8 (Δ) — Remove baked AO from Base Color in ~20 library materials
About 20 library materials multiply Ambient Occlusion directly into baseColor and also export an ao map, causing cavities to double-darken in the viewer and in glTF/Blender/Three.js. Below compares the current double-AO look (left) vs without the second AO pass (right, illustrating the albedo lift once baked AO is replaced with clean dirt/albedo).




B9 (Δ) — Align Node Lit View with 3D Viewer BRDF & AgX Tone Mapping
Today the 2D Material Output node's "Lit" thumbnail uses ACES + a simplified studio light, while the 3D viewer uses GGX IBL + AgX. Aligning them makes the 2D node preview match the 3D viewer (left = current 2D node Lit view; right = current 3D viewer flat plane).





