Skip to content

Commit 323ce64

Browse files
TMHSDigitalclaude
andcommitted
fix(showcase): light street-lantern from inside and frame it larger
The hero lantern was an unlit amber box small in a mostly empty frame. The render path now puts a shadowless warm point light at the centroid of the glass faces and raises the pane emission to 1.6, so the lantern throws its glow onto the post, arm and floor. It also adds a cool rim light and moves the camera closer and lower on a 40 mm lens. Geometry, budgets and checks are unchanged. Also adds asset_sheet.py SELECT rows for street-lantern, hand-pump and anvil, none of which had one. Evidence (live runs, local; E:\Blender-Developer-Tools\.scratch binaries): - blender-5.2.1-windows-x64 (Blender 5.2.1 LTS) and blender-4.5.11-windows-x64 (Blender 4.5.11 LTS): default exit 0 on both. Falsifiers on both: --skip-decimate 9, --stray-vert 15, --lift-z 16, --float-brace 17, --sink-arm 18, --rake-post 19, --shallow-brace 20. collider_tris=78 on both. - Framing (5.2.1): fill x=0.259 y=0.839, margins l=0.341 r=0.400 b=0.044 t=0.117. - Contact sheet: luma 0.195, stage 0.183, warmth +0.010, sat 0.109. - Asset sheet (docs/gallery/asset-sheets/street-lantern.webp): the model is unchanged and remains among the plainest in the lineup at sheet scale. This commit only fixes the hero; model detail is a follow-up. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent dc04ef3 commit 323ce64

9 files changed

Lines changed: 38 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Budget-conformance props. Not examples. Conventions: [`showcase/README.md`](show
114114
<a href="showcase/wooden-barrel/"><img src="showcase/wooden-barrel/preview.webp" width="24%" alt="Wooden barrel: a 20-stave wine-cask with a head of four boards, chord-lofted iron hoops, and a bung on a dark studio floor" /></a>
115115
<a href="showcase/campfire/"><img src="showcase/campfire/preview.webp" width="24%" alt="Campfire: a two-course ring of rounded fieldstones around a tripod of logs and glowing ash on a dark studio floor, warm wedge on the back wall" /></a>
116116
<a href="showcase/market-stall/"><img src="showcase/market-stall/preview.webp" width="24%" alt="Market stall: a grained timber frame with post feet, diagonal side braces, slatted counter, rafters, and a striped canvas awning on a dark studio floor, warm wedge on the back wall" /></a>
117-
<a href="showcase/street-lantern/"><img src="showcase/street-lantern/preview.webp" width="24%" alt="Street lantern: an iron post with aged brass collars, a knee brace tenoned into post and arm, and a muntined amber cage on a dark studio floor" /></a>
117+
<a href="showcase/street-lantern/"><img src="showcase/street-lantern/preview.webp" width="24%" alt="Street lantern: an iron post with aged brass collars, a knee brace tenoned into post and arm, and a lit muntined amber cage glowing onto the post on a dark studio floor" /></a>
118118
<a href="showcase/treasure-chest/"><img src="showcase/treasure-chest/preview.webp" width="24%" alt="Treasure chest: a slatted wooden chest with iron bands, corner brackets, and an open lid on a dark studio floor" /></a>
119119
<a href="showcase/terrain-scatter/"><img src="showcase/terrain-scatter/preview.webp" width="24%" alt="Terrain scatter: a Geometry Nodes hill tile of patchy grass over dark earth, nine faceted stones sunk into it among grass tufts and pebbles, on a dark studio floor" /></a>
120120
<a href="showcase/fence-kit/"><img src="showcase/fence-kit/preview.webp" width="24%" alt="Fence kit: a run of three weathered post-and-rail sections on a packed-earth strip, joined post to post at the 1.60 m tile pitch, with pyramidal caps, diagonal board braces, and iron bands" /></a>
50.9 KB
Loading
4.88 KB
Loading
4.23 KB
Loading

‎scripts/asset_sheet.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
"grain-sacks": (r"^SacksLow$", None),
6868
"rope-bridge": (r"^BridgeLow$", None),
6969
"wheelbarrow": (r"^BarrowLow$", None),
70+
"street-lantern": (r"^LanternLow$", None),
71+
"hand-pump": (r"^HandPumpLow$", None),
72+
"anvil": (r"^AnvilLow$", None),
7073
# the hero shows a three-section run; the sheet judges the one asset
7174
"fence-kit": (r"^FenceLow$", None),
7275
"wooden-ladder": (r"^LadderLow$", None),

‎showcase/gallery.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"name": "street-lantern",
7777
"dir": "showcase/street-lantern",
7878
"teaches": "A procedural hanging street lantern through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.",
79-
"alt": "A black iron street lamp post with aged brass collars and a knee brace under the arm, holding a hanging lantern with glowing panes.",
79+
"alt": "A black iron street lamp post with aged brass collars and a knee brace, its hanging lantern lit from inside so the amber panes glow onto the post and floor.",
8080
"witnessesFix": "Recomputed: 3338 tris, three materials with 1530 metal, 24 glass and 209 brass faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.300×0.786×1.287 m, zmin 0, hygiene 0, brace BVH gap 0, brace ends 13 mm into the post and the arm, hanger-roof gap −1 mm, post 0.100×1.120 m plumb 0, LOD ratios in band (5.2 COLLAPSE 2 tris leaner on LOD2), convex collider 78 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z 16; --float-brace 17; --sink-arm 18; --rake-post 19; --shallow-brace 20.",
8181
"hero": "docs/gallery/assets/street-lantern-hero.webp",
8282
"preview": "showcase/street-lantern/preview.webp",

‎showcase/street-lantern/README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ the arm's centre-line side, and the brace-bite budget below asserts
2424
that each end is actually inside its host. Brass is aged and rougher
2525
(it was bright polished gold at roughness 0.28).
2626

27+
The hero is lit from inside: a shadowless warm point light sits at the
28+
centroid of the glass faces and the panes emit at 1.6, so the lantern
29+
throws its glow onto the post, arm and floor. The camera is closer and
30+
lower on a 40 mm lens; the first hero left the lantern small in an
31+
empty frame. Render path only; geometry and budgets are unchanged.
32+
2733
It asserts **budget conformance** of the generated result. It does not
2834
witness an API contract. "It rendered without error" is not a check.
2935

4.04 KB
Loading

‎showcase/street-lantern/street_lantern.py‎

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def lantern_materials():
639639
(0.62, 0.32, 0.08, 1.0),
640640
0.0,
641641
0.22,
642-
emission=((0.85, 0.42, 0.10, 1.0), 0.45),
642+
emission=((0.95, 0.50, 0.14, 1.0), 1.6),
643643
)
644644
brass = principled("LanternBrass", (0.44, 0.29, 0.10, 1.0), 0.9, 0.44, roughness_var=0.14)
645645
return metal, glass, brass
@@ -1363,17 +1363,37 @@ def light(name, loc, energy, size, col, rot):
13631363
ob.rotation_euler = tuple(math.radians(a) for a in rot)
13641364
scene.collection.objects.link(ob)
13651365

1366-
light("Key", (-3.6, -5.0, 5.8), 680.0, 4.0, (1.0, 0.94, 0.86), (50, 0, -36))
1367-
light("Fill", (5.0, -3.6, 2.6), 48.0, 8.0, (0.72, 0.82, 1.0), (62, 0, 50))
1368-
light("Wedge", (2.4, 4.2, 4.1), 640.0, 5.5, (1.0, 0.70, 0.40), (-70, 0, 198))
1366+
light("Key", (-3.6, -5.0, 5.8), 520.0, 3.0, (1.0, 0.94, 0.86), (50, 0, -36))
1367+
light("Fill", (5.0, -3.6, 2.6), 40.0, 8.0, (0.72, 0.82, 1.0), (62, 0, 50))
1368+
light("Rim", (-1.5, 3.0, 3.2), 160.0, 2.5, (0.62, 0.78, 1.0), (-55, 0, 200))
1369+
light("Wedge", (2.4, 4.2, 4.1), 520.0, 5.5, (1.0, 0.70, 0.40), (-70, 0, 198))
1370+
1371+
# the lit lamp: a warm, shadowless point at the centre of the glazing,
1372+
# so the cage throws its glow onto the post, the arm and the floor
1373+
bpy.context.view_layer.update()
1374+
me = low.data
1375+
glass_pts = [me.vertices[vi].co for p in me.polygons if p.material_index == GLASS_IDX
1376+
for vi in p.vertices]
1377+
if glass_pts:
1378+
centre = sum(glass_pts, Vector()) / len(glass_pts)
1379+
ld = bpy.data.lights.new("Lamp", "POINT")
1380+
ld.energy = 22.0
1381+
ld.color = (1.0, 0.58, 0.22)
1382+
ld.shadow_soft_size = 0.05
1383+
ld.use_shadow = False
1384+
lob = bpy.data.objects.new("Lamp", ld)
1385+
lob.location = low.matrix_world @ centre
1386+
scene.collection.objects.link(lob)
13691387

13701388
cam_data = bpy.data.cameras.new("Cam")
1371-
cam_data.lens = 50.0
1389+
cam_data.lens = 40.0
13721390
cam = bpy.data.objects.new("Cam", cam_data)
1373-
cam.location = (2.55, -3.70, 1.85)
1391+
# closer and lower than the first hero, which left the lantern small in
1392+
# a mostly empty frame; the wider lens keeps the foot in shot
1393+
cam.location = (1.80, -2.70, 1.20)
13741394
scene.collection.objects.link(cam)
13751395
aim = bpy.data.objects.new("Aim", None)
1376-
aim.location = (0.0, 0.0, 0.72)
1396+
aim.location = (0.0, 0.12, 0.64)
13771397
scene.collection.objects.link(aim)
13781398
con = cam.constraints.new("TRACK_TO")
13791399
con.target = aim

0 commit comments

Comments
 (0)