Skip to content

Commit ef3619e

Browse files
fix(showcase): rebuild watchtower with a closed shake roof and planted stiles
Incomplete courses left a wood U through the eave, and shoes lifted after the zmin snap. A solid cone plus post-snap collars are durable; per-coordinate nudges are not. Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 47ced1b commit ef3619e

7 files changed

Lines changed: 1227 additions & 312 deletions

File tree

-9.89 KB
Loading

‎docs/gallery/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ <h2><a href="campfire/">campfire</a></h2>
936936
<div class="card-body">
937937
<h2><a href="market-stall/">market-stall</a></h2>
938938
<p class="teaches">A procedural timber market stall through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
939-
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 4404 tris, three materials with 48 faces per awning stripe slot, UVs in 0..1 with zero AABB overlap, outer AABB 1.392×0.966×1.743 m, LOD ratios in band, convex collider 46 tris, non-empty glTF. --skip-decimate exits 9 on the LOD1 ratio budget.</p>
939+
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 4324 tris, three materials with 34 faces per awning stripe slot, UVs in 0..1 with zero AABB overlap, outer AABB 1.389×1.011×1.740 m, grounded zmin, 4 wrap feet, brace-counter overlap 0, awning seat 4 mm, post plumb 0, LOD ratios in band, convex collider 58 tris, non-empty glTF. Hygiene all zero. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-feet 16; --low-brace 17; --float-awning 18; --rake-posts 19.</p>
940940
<a class="card-link" href="market-stall/">View example <span aria-hidden="true">&rarr;</span></a>
941941
</div>
942942
</article>
@@ -991,7 +991,7 @@ <h2><a href="fence-kit/">fence-kit</a></h2>
991991
<div class="card-body">
992992
<h2><a href="watchtower/">watchtower</a></h2>
993993
<p class="teaches">A procedural timber watchtower through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
994-
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 5220 tris, three materials with 84 metal and 126 roof faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.434×1.434×1.982 m, LOD ratios in band, convex collider 56 tris, non-empty glTF. --skip-decimate exits 9 on the LOD1 ratio budget.</p>
994+
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 6408 tris, three materials with 300 metal and 126 roof faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.594×1.594×2.973 m, grounded zmin, 4 iron shoes, rail engage 18 mm, collar standoff 2 mm, post plumb 0, LOD ratios in band (5.2 COLLAPSE leaner on LOD2), convex collider 150 tris, non-empty glTF. Hygiene all zero. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-shoes 16; --short-rails 17; --float-band 18; --rake-posts 19.</p>
995995
<a class="card-link" href="watchtower/">View example <span aria-hidden="true">&rarr;</span></a>
996996
</div>
997997
</article>

‎docs/gallery/watchtower/index.html‎

Lines changed: 586 additions & 150 deletions
Large diffs are not rendered by default.

‎showcase/gallery.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"name": "market-stall",
5858
"dir": "showcase/market-stall",
5959
"teaches": "A procedural timber market stall through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.",
60-
"witnessesFix": "Recomputed: 4404 tris, three materials with 48 faces per awning stripe slot, UVs in 0..1 with zero AABB overlap, outer AABB 1.392×0.966×1.743 m, LOD ratios in band, convex collider 46 tris, non-empty glTF. --skip-decimate exits 9 on the LOD1 ratio budget.",
60+
"witnessesFix": "Recomputed: 4324 tris, three materials with 34 faces per awning stripe slot, UVs in 0..1 with zero AABB overlap, outer AABB 1.389×1.011×1.740 m, grounded zmin, 4 wrap feet, brace-counter overlap 0, awning seat 4 mm, post plumb 0, LOD ratios in band, convex collider 58 tris, non-empty glTF. Hygiene all zero. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-feet 16; --low-brace 17; --float-awning 18; --rake-posts 19.",
6161
"hero": "docs/gallery/assets/market-stall-hero.webp",
6262
"preview": "showcase/market-stall/preview.webp",
6363
"tags": [
@@ -117,7 +117,7 @@
117117
"name": "watchtower",
118118
"dir": "showcase/watchtower",
119119
"teaches": "A procedural timber watchtower through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.",
120-
"witnessesFix": "Recomputed: 5220 tris, three materials with 84 metal and 126 roof faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.434×1.434×1.982 m, LOD ratios in band, convex collider 56 tris, non-empty glTF. --skip-decimate exits 9 on the LOD1 ratio budget.",
120+
"witnessesFix": "Recomputed: 6408 tris, three materials with 300 metal and 126 roof faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.594×1.594×2.973 m, grounded zmin, 4 iron shoes, rail engage 18 mm, collar standoff 2 mm, post plumb 0, LOD ratios in band (5.2 COLLAPSE leaner on LOD2), convex collider 150 tris, non-empty glTF. Hygiene all zero. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-shoes 16; --short-rails 17; --float-band 18; --rake-posts 19.",
121121
"hero": "docs/gallery/assets/watchtower-hero.webp",
122122
"preview": "showcase/watchtower/preview.webp",
123123
"tags": [

‎showcase/watchtower/README.md‎

Lines changed: 74 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Watchtower
22

33
A showcase piece, not an example. Procedural timber lookout (corner
4-
posts through a plank platform, lower-bay X-braces, hatch and ladder,
5-
coursed shake roof with eaves) then the shipped pipeline: unique-cell
4+
posts through a plank platform, lower-bay X-braces, hatch and ladder
5+
whose stiles plant at Z=0, coursed shake roof over a solid cone,
6+
mitered iron collars and shoes) then the shipped pipeline: unique-cell
67
UVs, Cycles high-to-low normal bake, LOD chain, convex collider, Unity
78
glTF export.
89

10+
The old roof was a wood U with incomplete shake coverage; rails showed
11+
through the eave. The cone plus non-overlapping courses close the
12+
pyramid. Shoes are added after the zmin snap so a bevel undershoot
13+
cannot lift them.
14+
915
It asserts **budget conformance** of the generated result. It does not
1016
witness an API contract. "It rendered without error" is not a check.
1117

@@ -22,37 +28,84 @@ materials, UVs, evaluated LOD, collider, or export file.
2228

2329
| Axis | Declared | Measured (4.5.11 / 5.1.2 / 5.2.1) |
2430
| --- | --- | --- |
25-
| Base triangles | 5110–5330 | 5220 / 5220 / 5220 |
31+
| Base triangles | 6200–8200 | 6408 / 6408 / 6408 |
2632
| LOD1 ratio | 0.32–0.62 of base | 0.5000 / 0.5000 / 0.5000 |
27-
| LOD2 ratio | 0.10–0.35 of base | 0.2199 / 0.2199 / 0.2199 |
28-
| Materials | exactly 3 distinct, ≥24 metal, ≥40 roof | 3 slots, 84 metal, 126 roof |
33+
| LOD2 ratio | 0.10–0.35 of base | 0.2197 / 0.2197 / 0.2185 |
34+
| Materials | exactly 3 distinct; ≥80 metal, ≥40 roof faces | 3 slots; 300 metal, 126 roof |
2935
| UVs | in `0..1`, AABB overlap ≤ 1e-5 | in range, overlap 0 |
30-
| Outer AABB | (1.434, 1.434, 1.982) m ± 0.01 | (1.4340, 1.4340, 1.9818), zmin 0 |
31-
| Collider tris | ≤ 80 | 56 |
32-
| Export | written, size > 0 | 374376 / 374376 / 374360 bytes |
36+
| Outer AABB | (1.594, 1.594, 2.973) m ± 0.01 | (1.5940, 1.5940, 2.9731), zmin 0 |
37+
| Collider tris | ≤ 180 | 150 |
38+
| Export | written, size > 0 | 464572 / 464572 / 464560 bytes |
39+
40+
Base triangles rose from **5220 to 6408** in the quality pass: a taller
41+
eave-true roof and coursed shakes, not hidden interior faces.
42+
43+
### Hygiene
44+
45+
Recomputed from the generated mesh, not asserted about the script.
46+
47+
| Axis | Declared | Measured (all three) |
48+
| --- | --- | --- |
49+
| Non-manifold edges | 0 | 0 |
50+
| Loose verts / edges | 0 / 0 | 0 / 0 |
51+
| Doubles merged at 1e-5 | 0 | 0 |
52+
| Zero-area faces | 0 | 0 |
53+
| N-gons | 0 | 0 |
54+
| Coplanar disjoint face pairs | 0 | 0 |
55+
| Grounded: `zmin` | within 1e-4 of 0 | 0.0000 |
56+
| Named supports: 4 iron shoes | each `zmin` ≤ 1e-3 | 4, shoe_z 0.00000 |
57+
| Plan | 1.56 m eave × 2.97 m height ± 0.08 / ± 0.28 | 1.5940 × 2.9731 |
3358

34-
DECIMATE COLLAPSE triangle counts are **not** required to match across
35-
series — the gate is a ratio band, not an exact count. Bake pixels are
36-
stochastic; the gate is `has_data` plus operator `FINISHED`, not
37-
byte-identity. Construction uses no RNG.
59+
### Joint fit and seat
3860

39-
`--skip-decimate` skips the LOD DECIMATE stage so LOD1 ratio is 1.0 and
40-
exit 9 fires. That is the named budget the falsifier violates.
61+
| Axis | Declared | Measured (all three) |
62+
| --- | --- | --- |
63+
| Rail-to-post engage | ≥ 0.012 m | 0.0180 |
64+
| Girt-collar standoff | ≤ 0.010 m | 0.00200 |
65+
| Post plumb (XY drift) | ≤ 0.010 m | 0.00000 |
66+
67+
DECIMATE COLLAPSE triangle counts are **not** identical across series —
68+
5.2.1 is leaner on LOD2. The gate is a ratio band, not an exact count.
69+
Bake pixels are stochastic; the gate is `has_data` plus operator
70+
`FINISHED`, not byte-identity. Construction uses no RNG. Export byte
71+
counts differ by 12 B on 5.2.1 (glTF serializer), not a gated axis.
72+
73+
### Falsifiers
74+
75+
Each violates one named budget. All eight were run on 4.5.11, 5.1.2 and
76+
5.2.1 and returned the same code on each.
77+
78+
| Flag | Budget violated | Exit |
79+
| --- | --- | --- |
80+
| `--skip-decimate` | LOD1 ratio band | 9 |
81+
| `--stray-vert` | loose vertex count is 0 | 15 |
82+
| `--lift-z` | bounding box `zmin` is 0 | 16 |
83+
| `--short-shoes` | named shoe supports at Z=0 | 16 |
84+
| `--short-rails` | rail-to-post joint fit | 17 |
85+
| `--float-band` | iron-collar seat | 18 |
86+
| `--rake-posts` | post plumb | 19 |
4187

4288
## Run
4389

4490
```bash
4591
blender --background --python watchtower.py --
4692
blender --background --python watchtower.py -- --skip-decimate
93+
blender --background --python watchtower.py -- --stray-vert
94+
blender --background --python watchtower.py -- --lift-z
95+
blender --background --python watchtower.py -- --short-shoes
96+
blender --background --python watchtower.py -- --short-rails
97+
blender --background --python watchtower.py -- --float-band
98+
blender --background --python watchtower.py -- --rake-posts
4799
blender --background --python watchtower.py -- --output tower.png
48100
```
49101

50-
Smoke does not pass `--output` or `--skip-decimate`.
102+
Smoke passes no flags.
51103

52104
## Exit codes
53105

54106
File-local. `9` is a valid check code. `10` is reserved for
55-
`gallery_framing.check_framing` on the `--output` path.
107+
`gallery_framing.check_framing` on the `--output` path. `15`–`19` are the
108+
hygiene and joint-fit family.
56109

57110
| Code | Meaning |
58111
| --- | --- |
@@ -71,3 +124,8 @@ File-local. `9` is a valid check code. `10` is reserved for
71124
| 12 | Bake did not finish or image has no data |
72125
| 13 | Export file missing or empty |
73126
| 14 | `--output` produced no file |
127+
| 15 | Mesh hygiene: loose, non-manifold, zero-area, doubles, n-gons, z-fight |
128+
| 16 | Not grounded: bounding box `zmin` off 0, or a named shoe floats |
129+
| 17 | Joint fit: rail-to-post engage |
130+
| 18 | Seat: girt-collar standoff |
131+
| 19 | Post plumb or plan off the stated real-world size |

‎showcase/watchtower/preview.webp‎

7.67 KB
Loading

0 commit comments

Comments
 (0)