Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1445 lines (1420 loc) · 142 KB
/
Copy pathindex.html
File metadata and controls
1445 lines (1420 loc) · 142 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Examples and Showcase — Blender Developer Tools</title>
<meta name="description" content="Runnable, smoke-gated Blender Python examples — each executed headless on Blender 5.2 LTS and 4.5 LTS (5.1 on the weekly cron), so every render reflects code that actually runs. Showcase pieces share the grid and carry the 'showcase' tag; they are budget-conformance props, not examples." />
<link rel="canonical" href="https://tmhsdigital.github.io/Blender-Developer-Tools/gallery/" />
<link rel="icon" href="../assets/favicon.svg" type="image/svg+xml" />
<meta name="theme-color" content="#1a1b1e" />
<meta name="color-scheme" content="dark" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Examples and Showcase — Blender Developer Tools" />
<meta property="og:description" content="Runnable, smoke-gated Blender Python examples — each executed headless on Blender 5.2 LTS and 4.5 LTS (5.1 on the weekly cron), so every render reflects code that actually runs. Showcase pieces share the grid and carry the 'showcase' tag; they are budget-conformance props, not examples." />
<meta property="og:url" content="https://tmhsdigital.github.io/Blender-Developer-Tools/gallery/" />
<meta property="og:image" content="https://tmhsdigital.github.io/Blender-Developer-Tools/assets/og-card.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Four renders from the examples gallery: a red low-poly hatchback, a soccer ball, gold spikes aimed at a glowing sphere, and two spheres on pedestals labelled linked and unlinked" />
<meta property="og:site_name" content="Blender Developer Tools" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Examples and Showcase — Blender Developer Tools" />
<meta name="twitter:description" content="Runnable, smoke-gated Blender Python examples — each executed headless on Blender 5.2 LTS and 4.5 LTS (5.1 on the weekly cron), so every render reflects code that actually runs. Showcase pieces share the grid and carry the 'showcase' tag; they are budget-conformance props, not examples." />
<meta name="twitter:image" content="https://tmhsdigital.github.io/Blender-Developer-Tools/assets/og-card.jpg" />
<meta name="twitter:image:alt" content="Four renders from the examples gallery: a red low-poly hatchback, a soccer ball, gold spikes aimed at a glowing sphere, and two spheres on pedestals labelled linked and unlinked" />
<style>
/* fonts are deployed by the landing build (docs/fonts/) */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap;
src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap;
src: url('../fonts/inter-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap;
src: url('../fonts/inter-medium.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap;
src: url('../fonts/jetbrains-mono-regular.woff2') format('woff2'); }
/* Blender-viewport system, shared with the landing page. Dark only. */
:root {
color-scheme: dark;
--bg: #1a1b1e; --surface: #222327; --surface-2: #2a2b30; --bg2: #131417;
--border: #3a3b40; --text: #e8e9eb; --text-dim: #9698a0;
--select: #ff8c19; --ok: #6dc96d;
--radius: 4px; --radius-lg: 6px; --maxw: 1080px;
--font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
--code-k: #ff7b72; --code-s: #a5d6ff; --code-c: #9698a0; --code-n: #79c0ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text);
line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--select); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--select) 40%, transparent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--select); color: #1a1b1e;
padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 10; font-weight: 500; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.hud { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em;
color: var(--text-dim); text-transform: uppercase; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
justify-content: space-between; gap: 1rem; padding: 0 1.25rem; height: 46px;
background: color-mix(in srgb, var(--surface) 92%, transparent);
backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .back { color: var(--text-dim); font-size: 0.8125rem; font-weight: 500; }
.topbar .back:hover { color: var(--select); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 0.85rem; }
.topbar-right .ghlink { color: var(--text-dim); font-size: 0.8125rem; font-weight: 500; }
.topbar-right .ghlink:hover { color: var(--select); text-decoration: none; }
header.hero { max-width: var(--maxw); margin: 0 auto; padding: 2.75rem 1.25rem 1.25rem; }
header.hero h1 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.005em; line-height: 0.98; }
header.hero p { color: var(--text-dim); max-width: 62ch; margin-top: 0.7rem; font-size: 1rem; }
/* ---- index: sticky controls (search, density toggle, tag chips) ---- */
.controls { position: sticky; top: 46px; z-index: 4;
background: color-mix(in srgb, var(--bg) 94%, transparent);
backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border); }
.controls-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.55rem 1.25rem 0.6rem;
display: flex; flex-direction: column; gap: 0.5rem; }
.controls-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.searchwrap { position: relative; flex: 1 1 240px; min-width: 150px; }
.searchwrap input { width: 100%; background: var(--surface-2); border: 1px solid var(--border);
color: var(--text); border-radius: var(--radius); padding: 0.34rem 1.9rem 0.34rem 0.7rem;
font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.4; }
.searchwrap input:focus { border-color: var(--select); outline: none; }
.searchwrap input::placeholder { color: var(--text-dim); }
.searchwrap input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.q-clear { position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
background: none; border: none; color: var(--text-dim); font-size: 1.05rem; line-height: 1;
cursor: pointer; padding: 0.25rem 0.45rem; border-radius: 3px; }
.q-clear:hover { color: var(--select); }
.count { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.density { display: flex; border: 1px solid var(--border); border-radius: var(--radius);
overflow: hidden; }
.density-btn { background: var(--surface-2); border: none; color: var(--text-dim); cursor: pointer;
font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
text-transform: uppercase; padding: 0.36rem 0.7rem; transition: color 0.15s, background 0.15s; }
.density-btn + .density-btn { border-left: 1px solid var(--border); }
.density-btn:hover { color: var(--select); }
.density-btn.active { background: var(--select); color: #1a1b1e; }
.tags-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border);
color: var(--text-dim); border-radius: 3px; padding: 0.3rem 0.7rem; cursor: pointer;
font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tags-toggle:hover, .tags-toggle.has-active { color: var(--select); border-color: var(--select); }
/* Tag chips wrap by default (no-JS safe). With JS the row becomes a scroll
strip on wide viewports and collapses behind the Tags toggle on narrow
ones, so the sticky bar never eats the mobile viewport. */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
html.js .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem;
scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
html.js .chips::-webkit-scrollbar { height: 5px; }
html.js .chips::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
border-radius: 3px; padding: 0.22rem 0.7rem; font-size: 0.72rem; font-weight: 400;
font-family: var(--font-mono); cursor: pointer; white-space: nowrap; flex: 0 0 auto;
transition: color 0.15s, border-color 0.15s; }
.chip:hover { color: var(--select); border-color: var(--select); }
.chip.active { color: #1a1b1e; background: var(--select); border-color: var(--select); }
@media (max-width: 719px) {
html.js .tags-toggle { display: inline-block; }
html.js .chips { display: none; }
html.js .chips.open { display: flex; flex-wrap: wrap; overflow-y: auto; max-height: 40vh; }
}
/* Compact density: hero + name + one-line teaser. The description and
WITNESSES text stay in the DOM (searchable, screen-reader reachable,
present with JS disabled when the class is never applied) but are
visually collapsed. Applied only by JS via the density-compact class. */
html.density-compact .grid { gap: 1rem; }
html.density-compact .card-body { padding: 0.65rem 0.9rem 0.7rem; }
html.density-compact .card-body h2 { font-size: 0.88rem; margin-bottom: 0.15rem; }
html.density-compact .teaches { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.density-compact .witnesses { position: absolute; width: 1px; height: 1px; margin: -1px;
padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html.density-compact .card-link { display: none; }
.noresults { color: var(--text-dim); text-align: center; padding: 3rem 1rem; font-size: 0.95rem; }
.noresults .chip { margin-left: 0.6rem; }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 6; cursor: pointer;
background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
border-radius: var(--radius); padding: 0.45rem 0.75rem;
font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
text-transform: uppercase; opacity: 0; visibility: hidden;
transition: opacity 0.2s, visibility 0.2s, color 0.15s, border-color 0.15s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--select); border-color: var(--select); }
main { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 2rem; }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
overflow: hidden; display: flex; flex-direction: column;
outline: 2px solid transparent; outline-offset: -1px;
transition: outline-color 0.12s ease, border-color 0.12s ease; }
.card:hover { border-color: var(--select); outline-color: var(--select); }
.card.hidden { display: none; }
.card-media { display: block; background: var(--bg2); line-height: 0; }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.15rem 1.4rem 1.45rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-body h2 { font-family: var(--font-mono); font-size: 1rem; font-weight: 400; margin-bottom: 0.5rem; }
.card-body h2 a { color: var(--text); }
.card-body h2 a:hover { color: var(--select); text-decoration: none; }
.teaches { color: var(--text); margin-bottom: 0.7rem; font-size: 0.92rem; }
.witnesses { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
letter-spacing: 0.06em; color: var(--select); border: 1px solid color-mix(in srgb, var(--select) 55%, transparent);
border-radius: 3px; padding: 0.08rem 0.5rem; margin-right: 0.4rem; vertical-align: 1px; }
.card-link { font-weight: 600; font-size: 0.95rem; margin-top: auto; }
/* ---- detail page ---- */
.detail-hero { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
background: var(--bg2); padding: 0; display: block; width: 100%; cursor: zoom-in; line-height: 0; }
.detail-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zoom-hint { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
white-space: nowrap; }
.callout { border: 1px solid color-mix(in srgb, var(--select) 45%, var(--border));
border-left: 3px solid var(--select); border-radius: var(--radius);
background: color-mix(in srgb, var(--select) 7%, var(--surface));
padding: 0.85rem 1.1rem; margin: 1.5rem 0; font-size: 0.95rem; }
.runline { display: flex; align-items: stretch; gap: 0.5rem; margin: 1.5rem 0; }
.runline pre { flex: 1 1 auto; background: var(--surface-2); border: 1px solid var(--border);
border-radius: var(--radius); padding: 0.7rem 0.9rem; overflow-x: auto;
font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.5; }
.copy-btn { flex: 0 0 auto; background: var(--surface-2); border: 1px solid var(--border);
color: var(--text-dim); border-radius: var(--radius); padding: 0 0.85rem; cursor: pointer;
font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; transition: color 0.15s, border-color 0.15s; }
.copy-btn:hover { color: var(--select); border-color: var(--select); }
.detail-section { margin-top: 2.25rem; }
.detail-section > h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
font-size: 1.45rem; letter-spacing: 0.005em; padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.md h1, .md h2, .md h3 { letter-spacing: -0.01em; margin: 1.4rem 0 0.6rem; line-height: 1.25; }
.md h1 { font-size: 1.35rem; } .md h2 { font-size: 1.15rem; } .md h3 { font-size: 1rem; }
.md p { margin: 0.7rem 0; }
.md ul, .md ol { margin: 0.7rem 0 0.7rem 1.4rem; }
.md li { margin: 0.3rem 0; }
.md .table-wrap { overflow-x: auto; margin: 0.9rem 0; }
.md table { border-collapse: collapse; font-size: 0.86rem; min-width: 100%; }
.md th, .md td { text-align: left; vertical-align: top; padding: 0.4rem 0.75rem 0.4rem 0;
border-bottom: 1px solid var(--border); }
.md th { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.md code { background: var(--surface-2); border: 1px solid var(--border); padding: 0.08rem 0.35rem;
border-radius: 4px; font-family: var(--font-mono); font-size: 0.84em; }
.md pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
padding: 0.85rem 1rem; overflow-x: auto; margin: 0.9rem 0; }
.md pre code { background: none; border: none; padding: 0; font-size: 0.83rem; line-height: 1.55; }
.src pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--font-mono);
font-size: 0.82rem; line-height: 1.55; }
.src .k { color: var(--code-k); } .src .s { color: var(--code-s); }
.src .c { color: var(--code-c); font-style: italic; } .src .n { color: var(--code-n); }
.src-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
flex-wrap: wrap; margin-bottom: 0.6rem; color: var(--text-dim); font-size: 0.85rem; }
.src-meta code { font-family: var(--font-mono); font-size: 0.82rem; }
.lightbox { border: 0; margin: 0; padding: 2rem; width: 100%; height: 100%; max-width: none;
max-height: none; background: rgba(0,0,0,0.85); cursor: zoom-out; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 0.9rem; right: 0.9rem; background: var(--surface-2);
color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
font: 500 0.8rem var(--font-sans); padding: 0.4rem 0.75rem; cursor: pointer; }
.lightbox-close:hover { border-color: var(--select); color: var(--select); }
footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; }
footer .statusbar { max-width: var(--maxw); margin: 0 auto; padding: 0.55rem 1.25rem;
display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em;
text-transform: uppercase; color: var(--text-dim); }
footer .statusbar code { font-family: inherit; text-transform: none; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (min-width: 560px) { html.density-compact .grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
@media (min-width: 900px) { html.density-compact .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1560px) {
html.density-compact .controls-inner,
html.density-compact main { max-width: 1400px; }
html.density-compact .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.card { transition: none; }
.card:hover { transform: none; }
.to-top { transition: none; }
}
</style>
<script>
(function () {
var de = document.documentElement;
de.classList.add('js');
var d = 'compact';
var m = location.hash.match(/(?:^|[#&])d=(compact|detailed)/);
if (m) { d = m[1]; }
else {
try {
var s = localStorage.getItem('bdt-gallery-density');
if (s === 'compact' || s === 'detailed') d = s;
} catch (e) {}
}
if (d === 'compact') de.classList.add('density-compact');
})();
</script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<div class="topbar">
<a class="back" href="../"><span aria-hidden="true">←</span> Blender Developer Tools</a>
<div class="topbar-right">
<a class="ghlink" href="https://github.com/TMHSDigital/Blender-Developer-Tools">GitHub</a>
</div>
</div>
<header class="hero">
<h1>Examples and Showcase</h1>
<p>Runnable, smoke-gated Blender Python examples — each executed headless on Blender 5.2 LTS and 4.5 LTS (5.1 on the weekly cron), so every render reflects code that actually runs. Showcase pieces share the grid and carry the 'showcase' tag; they are budget-conformance props, not examples.</p>
</header>
<div class="controls">
<div class="controls-inner">
<div class="controls-row">
<div class="searchwrap">
<input id="q" type="search" placeholder="Search the gallery (press /)"
autocomplete="off" spellcheck="false" aria-label="Search examples and showcase pieces" />
<button class="q-clear" id="qClear" type="button" aria-label="Clear search" hidden>×</button>
</div>
<span class="count" id="count" role="status" aria-live="polite">51 examples, 34 showcase pieces</span>
<div class="density" role="group" aria-label="Card density">
<button class="density-btn" data-density="compact" type="button" aria-pressed="false">Compact</button>
<button class="density-btn" data-density="detailed" type="button" aria-pressed="false">Detailed</button>
</div>
<button class="tags-toggle" id="tagsToggle" type="button" aria-expanded="false" aria-controls="chips">Tags</button>
</div>
<div class="chips" id="chips" role="toolbar" aria-label="Filter by topic">
<button class="chip active" data-tag="" type="button">All</button>
<button class="chip" data-tag="alpha" type="button">alpha</button>
<button class="chip" data-tag="animation" type="button">animation</button>
<button class="chip" data-tag="armature" type="button">armature</button>
<button class="chip" data-tag="attributes" type="button">attributes</button>
<button class="chip" data-tag="bevel" type="button">bevel</button>
<button class="chip" data-tag="bmesh" type="button">bmesh</button>
<button class="chip" data-tag="compositor" type="button">compositor</button>
<button class="chip" data-tag="constraints" type="button">constraints</button>
<button class="chip" data-tag="context" type="button">context</button>
<button class="chip" data-tag="curves" type="button">curves</button>
<button class="chip" data-tag="depsgraph" type="button">depsgraph</button>
<button class="chip" data-tag="drivers" type="button">drivers</button>
<button class="chip" data-tag="export" type="button">export</button>
<button class="chip" data-tag="game-pipeline" type="button">game-pipeline</button>
<button class="chip" data-tag="geometry-nodes" type="button">geometry-nodes</button>
<button class="chip" data-tag="grease-pencil" type="button">grease-pencil</button>
<button class="chip" data-tag="images" type="button">images</button>
<button class="chip" data-tag="instancing" type="button">instancing</button>
<button class="chip" data-tag="line-art" type="button">line-art</button>
<button class="chip" data-tag="materials" type="button">materials</button>
<button class="chip" data-tag="mesh" type="button">mesh</button>
<button class="chip" data-tag="modifiers" type="button">modifiers</button>
<button class="chip" data-tag="node-groups" type="button">node-groups</button>
<button class="chip" data-tag="objects" type="button">objects</button>
<button class="chip" data-tag="operators" type="button">operators</button>
<button class="chip" data-tag="parenting" type="button">parenting</button>
<button class="chip" data-tag="performance" type="button">performance</button>
<button class="chip" data-tag="properties" type="button">properties</button>
<button class="chip" data-tag="rendering" type="button">rendering</button>
<button class="chip" data-tag="sequencer" type="button">sequencer</button>
<button class="chip" data-tag="shape-keys" type="button">shape-keys</button>
<button class="chip" data-tag="showcase" type="button">showcase</button>
<button class="chip" data-tag="sky" type="button">sky</button>
<button class="chip" data-tag="transforms" type="button">transforms</button>
<button class="chip" data-tag="uv" type="button">uv</button>
<button class="chip" data-tag="world" type="button">world</button>
</div>
</div>
</div>
<main id="main">
<div class="grid" id="grid">
<article class="card" data-tags="materials rendering">
<a class="card-media" href="swatch-grid/" tabindex="-1" aria-hidden="true">
<img src="assets/swatch-grid-hero.webp" alt="Six material spheres on graphite plinths in two tiers: mirror gold, brushed copper and red behind; blue, a glowing orange emissive globe and matte white in front." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="swatch-grid/">swatch-grid</a></h2>
<p class="teaches">Procedural Principled materials — metal and dielectric, the emission pattern, and the cross-version set_specular shim.</p>
<p class="witnesses"><span class="tag">witnesses</span> EEVEE engine-id mapping: BLENDER_EEVEE on 5.x, BLENDER_EEVEE_NEXT on 4.2–4.5.</p>
<a class="card-link" href="swatch-grid/">View example<span class="sr-only"> swatch-grid</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="animation">
<a class="card-media" href="turntable/" tabindex="-1" aria-hidden="true">
<img src="assets/turntable-hero.webp" alt="A smooth copper monkey head (Suzanne) turned three-quarters on a black turntable with a brushed metal platter." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="turntable/">turntable</a></h2>
<p class="teaches">A slotted-actions Z-rotation turntable keyed through the cross-version channelbag path (get_channelbag_for_slot).</p>
<p class="witnesses"><span class="tag">witnesses</span> Slotted-actions boundary: ensure-helper channelbag on 5.x, strip.channelbag on 4.4/4.5.</p>
<a class="card-link" href="turntable/">View example<span class="sr-only"> turntable</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="geometry-nodes materials">
<a class="card-media" href="gn-sdf-remesh/" tabindex="-1" aria-hidden="true">
<img src="assets/gn-sdf-remesh-hero.webp" alt="Two red tori side by side under pale edge cages: the source with even ring topology, and its SDF remesh covered in a dense irregular voxel grid." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gn-sdf-remesh/">gn-sdf-remesh</a></h2>
<p class="teaches">A Geometry Nodes SDF remesh (MeshToSDFGrid → GridToMesh at the SDF zero-level), with a Set Material node carrying the material through the remesh.</p>
<p class="witnesses"><span class="tag">witnesses</span> An SDF grid is meshed with Grid to Mesh, not Volume to Mesh; GN geometry needs Set Material or it renders untextured.</p>
<a class="card-link" href="gn-sdf-remesh/">View example<span class="sr-only"> gn-sdf-remesh</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="depsgraph export">
<a class="card-media" href="depsgraph-export/" tabindex="-1" aria-hidden="true">
<img src="assets/depsgraph-export-hero.webp" alt="A teal cube outlined by its twelve edges beside a faceted teal sphere covered in a dense pale wire grid, on a dark studio floor." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="depsgraph-export/">depsgraph-export</a></h2>
<p class="teaches">The depsgraph lifetime contract — evaluated_get().to_mesh() paired with to_mesh_clear() — measured against an OBJ export of the same object.</p>
<p class="witnesses"><span class="tag">witnesses</span> Exports ship evaluated geometry: the exported vertex count equals the subsurf-applied count and is strictly greater than the base mesh.</p>
<a class="card-link" href="depsgraph-export/">View example<span class="sr-only"> depsgraph-export</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh performance">
<a class="card-media" href="wave-displace/" tabindex="-1" aria-hidden="true">
<img src="assets/wave-displace-hero.webp" alt="A blue tile whose top is a grid displaced into rolling sine-wave hills, standing on a dark studio floor." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="wave-displace/">wave-displace</a></h2>
<p class="teaches">Bulk vertex IO at real scale — 9,409 vertices displaced into a standing wave with one foreach_get and one foreach_set, no per-vertex access.</p>
<p class="witnesses"><span class="tag">witnesses</span> The bulk path is correct, not just fast: the Z span matches the wave amplitude and every vertex matches the closed-form wave, so a stride bug in the flat buffer cannot hide.</p>
<a class="card-link" href="wave-displace/">View example<span class="sr-only"> wave-displace</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="drivers animation">
<a class="card-media" href="driver-wave/" tabindex="-1" aria-hidden="true">
<img src="assets/driver-wave-hero.webp" alt="A row of orange bars seen from above, their heights rising and falling in a wave, low in the middle and tall at both ends, each casting a shadow on the floor." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="driver-wave/">driver-wave</a></h2>
<p class="teaches">A driver_namespace function driving sixteen column heights through SCRIPTED drivers — the sine skyline is entirely driver-evaluated.</p>
<p class="witnesses"><span class="tag">witnesses</span> Driven values appear after a view-layer update in two places that must agree: the evaluated copy and the original datablock the animation system flushes for display.</p>
<a class="card-link" href="driver-wave/">View example<span class="sr-only"> driver-wave</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh bmesh">
<a class="card-media" href="bmesh-gear/" tabindex="-1" aria-hidden="true">
<img src="assets/bmesh-gear-hero.webp" alt="A brass fourteen-tooth gear leaning back on a dark display wedge, its lathe-turned face catching a soft highlight that fans from the centre." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="bmesh-gear/">bmesh-gear</a></h2>
<p class="teaches">A 14-tooth gear built entirely with bmesh — profile ring, face, extrude — with bm.free() in a try/finally, exactly as the ownership contract demands.</p>
<p class="witnesses"><span class="tag">witnesses</span> Parametric bmesh topology is exactly predictable: verts, edges, and faces match their closed forms, and every edge borders exactly two faces (watertight).</p>
<a class="card-link" href="bmesh-gear/">View example<span class="sr-only"> bmesh-gear</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="materials node-groups">
<a class="card-media" href="shader-node-group/" tabindex="-1" aria-hidden="true">
<img src="assets/shader-node-group-hero.webp" alt="Two glossy spheres, one teal and one magenta, sharing one shader group." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="shader-node-group/">shader-node-group</a></h2>
<p class="teaches">One reusable shader group declared via tree.interface.new_socket, instanced in two materials with different Tint values — two spheres, one group, two colors.</p>
<p class="witnesses"><span class="tag">witnesses</span> Grouping contract: interface sockets appear on every instance, both materials share one group datablock (users == 2), and per-material parameters live on the group node, not inside the tree.</p>
<a class="card-link" href="shader-node-group/">View example<span class="sr-only"> shader-node-group</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="operators context">
<a class="card-media" href="temp-override-join/" tabindex="-1" aria-hidden="true">
<img src="assets/temp-override-join-hero.webp" alt="Three amber cubes joined into a single diagonal staircase object, the upper steps standing on grey plinths." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="temp-override-join/">temp-override-join</a></h2>
<p class="teaches">Join three unit cubes into a staircase under bpy.context.temp_override — the supported replacement for the removed context.copy() dict-pass form.</p>
<p class="witnesses"><span class="tag">witnesses</span> temp_override actually applies: join consumes the sources, exactly one mesh remains, topology is verts = 8 × steps, and local Z spans all three steps.</p>
<a class="card-link" href="temp-override-join/">View example<span class="sr-only"> temp-override-join</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="geometry-nodes instancing">
<a class="card-media" href="gn-instance-grid/" tabindex="-1" aria-hidden="true">
<img src="assets/gn-instance-grid-hero.webp" alt="A three-by-three grid of green instanced cubes, each sitting on a node of a faint source-grid lattice on a dark floor." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gn-instance-grid/">gn-instance-grid</a></h2>
<p class="teaches">A generative Geometry Nodes tree — Mesh Grid → Instance on Points → Realize Instances → Set Shade Smooth — attached as a NODES modifier with no Group Input geometry.</p>
<p class="witnesses"><span class="tag">witnesses</span> Realized instances produce closed-form topology (72 verts, 54 faces), Set Material carries Lime, and the corner instance center sits at its closed-form grid coordinate.</p>
<a class="card-link" href="gn-instance-grid/">View example<span class="sr-only"> gn-instance-grid</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="geometry-nodes modifiers">
<a class="card-media" href="gn-modifier-inputs/" tabindex="-1" aria-hidden="true">
<img src="assets/gn-modifier-inputs-hero.webp" alt="Three separate cubes stepping up in size from left to right: a small teal cube, an orange block and a large red block." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gn-modifier-inputs/">gn-modifier-inputs</a></h2>
<p class="teaches">Per-modifier Geometry Nodes Float inputs on a shared tree — 4.5/5.1 write mod[identifier], 5.2 writes mod.properties.inputs.Socket_1.value.</p>
<p class="witnesses"><span class="tag">witnesses</span> The 5.1 dict form raises TypeError on 5.2 rather than silently no-opping; RNA properties are AttributeError on 4.5. Readback and evaluated Z-extent match written scales 1/2/3.</p>
<a class="card-link" href="gn-modifier-inputs/">View example<span class="sr-only"> gn-modifier-inputs</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh shape-keys">
<a class="card-media" href="shape-key-blend/" tabindex="-1" aria-hidden="true">
<img src="assets/shape-key-blend-hero.webp" alt="Three purple boxes flaring wider at the top by increasing amounts; the rightmost sits inside a pale wire cage of its full shape key, halfway to it." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="shape-key-blend/">shape-key-blend</a></h2>
<p class="teaches">A relative Tall shape key that lifts and flares the top face — authored via shape_key_add / key_blocks / .value — read back from the depsgraph-evaluated mesh.</p>
<p class="witnesses"><span class="tag">witnesses</span> Shape keys do not rewrite mesh.vertices: every evaluated vert matches basis + value × (key − basis), including the flared top half-extent.</p>
<a class="card-link" href="shape-key-blend/">View example<span class="sr-only"> shape-key-blend</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="curves bevel">
<a class="card-media" href="curve-bevel-arc/" tabindex="-1" aria-hidden="true">
<img src="assets/curve-bevel-arc-hero.webp" alt="A magenta beveled curve tube lying in a semicircle on a dark floor, both filled end caps facing the camera." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="curve-bevel-arc/">curve-bevel-arc</a></h2>
<p class="teaches">A beveled Bezier semicircle authored on bpy.types.Curve — splines.new('BEZIER'), bezier_points, bevel_depth, use_fill_caps — so the curve renders as a solid tube without a prior mesh conversion.</p>
<p class="witnesses"><span class="tag">witnesses</span> Curve tubes are curve datablocks: eight Bezier points, bevel_depth == 0.15, filled caps, and the evaluated mesh has deterministic topology (1044 verts, 1028 faces) resting on the floor.</p>
<a class="card-link" href="curve-bevel-arc/">View example<span class="sr-only"> curve-bevel-arc</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="compositor rendering">
<a class="card-media" href="compositor-glare/" tabindex="-1" aria-hidden="true">
<img src="assets/compositor-glare-hero.webp" alt="Three glowing neon rings, violet, cyan and warm white, with fog-glow bloom and reflections on the floor." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="compositor-glare/">compositor-glare</a></h2>
<p class="teaches">Bloom where it actually lives — a compositor Glare (Fog Glow) node fed by Render Layers, wired via scene.compositing_node_group on 5.x and scene.node_tree on 4.x, with the Glare node's legacy properties vs 5.x menu sockets.</p>
<p class="witnesses"><span class="tag">witnesses</span> scene.node_tree is gone in 5.x and EEVEE has no use_bloom on either side: the halo beyond the ring silhouette falls off strictly with the compositor on and is exactly zero with it off.</p>
<a class="card-link" href="compositor-glare/">View example<span class="sr-only"> compositor-glare</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="constraints animation">
<a class="card-media" href="damped-track-aim/" tabindex="-1" aria-hidden="true">
<img src="assets/damped-track-aim-hero.webp" alt="Gold spikes arranged around a glowing sphere, every tip aimed at the sphere." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="damped-track-aim/">damped-track-aim</a></h2>
<p class="teaches">Aim constraints via the data API — Object.constraints.new('DAMPED_TRACK') with target and TRACK_Z, not bpy.ops.object.constraint_add in a headless loop. Gallery still: brass spike cage around an ember core.</p>
<p class="witnesses"><span class="tag">witnesses</span> Every needle has one unmuted DAMPED_TRACK on the core; evaluated local +Z aligns toward the core (dot ≥ 0.998). TRACK_TO stand-ins and flipped axes fail.</p>
<a class="card-link" href="damped-track-aim/">View example<span class="sr-only"> damped-track-aim</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh materials attributes">
<a class="card-media" href="color-attribute-wheel/" tabindex="-1" aria-hidden="true">
<img src="assets/color-attribute-wheel-hero.webp" alt="A board painted with a full hue wheel that fades to white at the centre, leaning on a dark plinth." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="color-attribute-wheel/">color-attribute-wheel</a></h2>
<p class="teaches">The modern color-attributes API — mesh.color_attributes.new() on the CORNER domain, filled by expanding per-vertex HSV across face corners with foreach_get/foreach_set, then wired into a shader Attribute node.</p>
<p class="witnesses"><span class="tag">witnesses</span> CORNER-domain attributes are sized to loop count, not vertex count; the check asserts the sizing, that active_color points at it, and that the Attribute node is actually linked to Base Color, not just present.</p>
<a class="card-link" href="color-attribute-wheel/">View example<span class="sr-only"> color-attribute-wheel</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="objects transforms">
<a class="card-media" href="parent-inverse-orrery/" tabindex="-1" aria-hidden="true">
<img src="assets/parent-inverse-orrery-hero.webp" alt="A brass orrery: a glowing yellow sun on a stand with blue, green and orange planets on arms, orbit rings and a silver moon." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="parent-inverse-orrery/">parent-inverse-orrery</a></h2>
<p class="teaches">Data-API parenting for a brass orrery — the keep-world idiom (child.parent = pivot; child.matrix_parent_inverse = pivot.matrix_world.inverted()) carrying arms, planets, and a two-level moon through spinning pivots.</p>
<p class="witnesses"><span class="tag">witnesses</span> Bare `.parent =` really does teleport the child; the idiom restores world position exactly; matrix_world stays stale until view_layer.update(); every orbit lands on its closed form.</p>
<a class="card-link" href="parent-inverse-orrery/">View example<span class="sr-only"> parent-inverse-orrery</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="grease-pencil attributes">
<a class="card-media" href="grease-pencil-rosette/" tabindex="-1" aria-hidden="true">
<img src="assets/grease-pencil-rosette-hero.webp" alt="A neon Grease Pencil rosette of nested cyan, violet, magenta and red petal loops on a dark blue backdrop." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="grease-pencil-rosette/">grease-pencil-rosette</a></h2>
<p class="teaches">Grease Pencil v3's attribute-based API — layer → frames.new(1).drawing → add_strokes → per-point position/radius/opacity/vertex_color — drawing five nested neon rose curves.</p>
<p class="witnesses"><span class="tag">witnesses</span> The GPv3 address break: 4.5 keeps GPv3 at grease_pencils_v3 while grease_pencils is still legacy GPencil (frame.strokes, no .drawing); 5.x deletes legacy and GPv3 takes over the grease_pencils name. Point writes lazily materialize attribute layers, and every position round-trips through the raw POINT buffer.</p>
<a class="card-link" href="grease-pencil-rosette/">View example<span class="sr-only"> grease-pencil-rosette</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="armature depsgraph">
<a class="card-media" href="armature-bend/" tabindex="-1" aria-hidden="true">
<img src="assets/armature-bend-hero.webp" alt="Three tapered tubes, coral to amber to teal, standing straight, half curled and fully curled by an armature." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="armature-bend/">armature-bend</a></h2>
<p class="teaches">Rigging end to end in the data API — edit_bones chain construction, name-bound vertex groups with smoothstep blend zones, posing, and depsgraph evaluation — bending a tapered tube through rest, half, and full curl.</p>
<p class="witnesses"><span class="tag">witnesses</span> edit_bones exists only in edit mode (empty in object mode), vertex groups bind to bones strictly by name, and the armature modifier is exactly linear blend skinning: every evaluated vertex must equal Σ wᵢ·(pose_bone.matrix @ bone.matrix_local.inverted()) @ rest, root ring pinned, tip deflected — a straight tube fails.</p>
<a class="card-link" href="armature-bend/">View example<span class="sr-only"> armature-bend</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="curves depsgraph rendering">
<a class="card-media" href="text-version-stamp/" tabindex="-1" aria-hidden="true">
<img src="assets/text-version-stamp-hero.webp" alt="The Blender version number in large gold 3D characters standing on a dark plinth, the word BLENDER set into its face." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="text-version-stamp/">text-version-stamp</a></h2>
<p class="teaches">The TextCurve data API — curves.new(type='FONT'), live body text from bpy.app.version_string, extrude and bevel_depth solids, and evaluated-mesh conversion — so every render self-documents which Blender produced it.</p>
<p class="witnesses"><span class="tag">witnesses</span> TextCurve solids are exactly predictable: evaluated z-extent = 2 × (extrude + bevel_depth), bevel widens the outline by 2 × bevel_depth, editing body regenerates geometry — and version_string is not bare semver on LTS ("4.5.11 LTS"), so parse bpy.app.version instead.</p>
<a class="card-link" href="text-version-stamp/">View example<span class="sr-only"> text-version-stamp</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="images performance rendering">
<a class="card-media" href="image-pixels-testcard/" tabindex="-1" aria-hidden="true">
<img src="assets/image-pixels-testcard-hero.webp" alt="A monitor showing a colour-bar test card with a black circle and a greyscale strip." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="image-pixels-testcard/">image-pixels-testcard</a></h2>
<p class="teaches">The Image pixel-buffer contract — a procedural broadcast test card written into bpy.data.images.new() with one pixels.foreach_set (589,824 floats), byte vs float_buffer storage, scale() reallocation, and the save() vs save_render() lifecycle.</p>
<p class="witnesses"><span class="tag">witnesses</span> pixels is always flat RGBA (channels == 4 even with alpha=False), byte storage quantizes at exactly ≤ 0.5/255 and strictly > 0, stale-size bulk reads raise after scale() — and save() silently flips source to FILE and drops the buffer, so later pixels reads come from whatever sits on disk (proven with an imposter file).</p>
<a class="card-link" href="image-pixels-testcard/">View example<span class="sr-only"> image-pixels-testcard</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="images rendering alpha">
<a class="card-media" href="png-exr-alpha/" tabindex="-1" aria-hidden="true">
<img src="assets/png-exr-alpha-hero.webp" alt="Two monitors on a plinth labelled FLOAT to PNG and FLOAT to EXR, showing alpha and colour bar strips side by side." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="png-exr-alpha/">png-exr-alpha</a></h2>
<p class="teaches">Float-image PNG save trap — float_buffer=True Image.save() writes RGBA16 and unpremultiplies as if associated-alpha, clamping straight-authored dark values at low alpha to white (closed-form err 0.98 at RGB 0.02 / a=1/255).</p>
<p class="witnesses"><span class="tag">witnesses</span> float→PNG IHDR is RGBA16 and matches q16(min(1, c/q16(a))); OpenEXR round-trips within 1e-5; byte→PNG is straight RGBA8; EXR color_mode=RGB drops alpha to opaque.</p>
<a class="card-link" href="png-exr-alpha/">View example<span class="sr-only"> png-exr-alpha</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh bmesh uv materials">
<a class="card-media" href="uv-layer-grid/" tabindex="-1" aria-hidden="true">
<img src="assets/uv-layer-grid-hero.webp" alt="Two lightbox panels: the left one flat teal with no UV layer, the right one a full magenta, cyan and green checker." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="uv-layer-grid/">uv-layer-grid</a></h2>
<p class="teaches">The UV-layer authoring hazard — bmesh.ops.create_grid(..., calc_uvs=True) is a silent no-op unless a UV layer already exists; without one an Image Texture samples texel (0,0) everywhere.</p>
<p class="witnesses"><span class="tag">witnesses</span> calc_uvs=True alone leaves 0 UV layers; pre-create + calc_uvs fills loops to the closed-form grid UVs ((x/size+1)/2, (y/size+1)/2) within 1e-6; explicit loop assignment is the calc_uvs-free fallback. The still is self-witnessing: the script re-reads its render and exits non-zero unless the hazard panel is one flat teal and the repaired panel a high-contrast checker.</p>
<a class="card-link" href="uv-layer-grid/">View example<span class="sr-only"> uv-layer-grid</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="sequencer rendering">
<a class="card-media" href="vse-cut-list/" tabindex="-1" aria-hidden="true">
<img src="assets/vse-cut-list-hero.webp" alt="A monitor on a desk labelled PROGRAM, showing a sequencer frame of four colour blocks with a cut-list caption strip." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="vse-cut-list/">vse-cut-list</a></h2>
<p class="teaches">The sequencer API rename from 4.5 LTS to 5.x — strips (never .sequences), new_effect ending in length= vs frame_end=, and left_handle/right_handle/duration replacing the deprecated frame_final_*. A deterministic cut list — color programs, a clamped GAMMA_CROSS, a scene strip, a text strip — asserted before and after save/reload.</p>
<p class="witnesses"><span class="tag">witnesses</span> Each side hard-fails the other's spelling: TypeError on the wrong end kwarg, AttributeError on .sequences. The cross clamps to the source overlap, effect strips consume their inputs only when stacked above them, and a same-scene scene strip renders transparent.</p>
<a class="card-link" href="vse-cut-list/">View example<span class="sr-only"> vse-cut-list</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="export uv">
<a class="card-media" href="gltf-export-roundtrip/" tabindex="-1" aria-hidden="true">
<img src="assets/gltf-export-roundtrip-hero.webp" alt="Two identical olive equipment crates with cyan light strips, both turned to show a side, labelled AUTHORED and ROUND-TRIP." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gltf-export-roundtrip/">gltf-export-roundtrip</a></h2>
<p class="teaches">A sci-fi supply crate exported to glTF and re-imported, verifying the round-trip against the depsgraph-evaluated mesh within float tolerances. Positions, loop normals, box-mapped UVs, and per-triangle material bindings must all survive; the on-disk JSON proves the +Y-up conversion and the V-flipped UV layout.</p>
<p class="witnesses"><span class="tag">witnesses</span> export_yup bakes (x, y, z) -> (x, z, -y) into the vertex data with no node rotation (probed identical on 4.5.11 and 5.1.2); export_apply ships the evaluated mesh, not the base cage; exporter/importer RNA is guarded so a future kwarg rename fails loudly.</p>
<a class="card-link" href="gltf-export-roundtrip/">View example<span class="sr-only"> gltf-export-roundtrip</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="export">
<a class="card-media" href="export-preset-axis/" tabindex="-1" aria-hidden="true">
<img src="assets/export-preset-axis-hero.webp" alt="Two re-imports of a red-and-white radio mast with axis gizmos: the Unity copy stands with blue Z up, the Godot copy lies on the floor with green Y up and blue Z along the mast." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="export-preset-axis/">export-preset-axis</a></h2>
<p class="teaches">A radio mast exported under Unity and Godot glTF presets and re-imported, proving the two files have different vertex orientation</p>
<p class="witnesses"><span class="tag">witnesses</span> Unity export_yup=True round-trips standing (x,y,z); Godot export_yup=False reimports lying along -Y as (x,-z,y); --same-axis exits 9; exporter RNA is guarded so a future kwarg rename fails loudly</p>
<a class="card-link" href="export-preset-axis/">View example<span class="sr-only"> export-preset-axis</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="depsgraph mesh">
<a class="card-media" href="lod-decimate-chain/" tabindex="-1" aria-hidden="true">
<img src="assets/lod-decimate-chain-hero.webp" alt="Three identical cream-and-red retro rockets with brass trim and a porthole, each covered in a dark triangle wireframe that grows coarser left to right, labelled 4784, 2392 and 860 tris." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="lod-decimate-chain/">lod-decimate-chain</a></h2>
<p class="teaches">A retro rocket at LOD0/1/2 via the Decimate modifier evaluated through the depsgraph, with a wireframe of each evaluated mesh. The check proves the reduction is non-destructive, the triangle count hits ratio x base within bounds, and silhouette-critical dimensions survive.</p>
<p class="witnesses"><span class="tag">witnesses</span> Evaluated-vs-original: the depsgraph carries the reduction while obj.data keeps the closed-form counts. A stacked Decimate halves the effective ratio (caught); a fin extreme on an oblique plate corner is shaved at ratio 0.18 (caught).</p>
<a class="card-link" href="lod-decimate-chain/">View example<span class="sr-only"> lod-decimate-chain</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="armature mesh">
<a class="card-media" href="vertex-weight-limit/" tabindex="-1" aria-hidden="true">
<img src="assets/vertex-weight-limit-hero.webp" alt="An orange industrial robot arm reaching down with a two-jaw gripper, each segment glowing in its bone colour and the cables on its back grading from colour to colour across each joint." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="vertex-weight-limit/">vertex-weight-limit</a></h2>
<p class="teaches">A rigged industrial robot arm pruned to the game-engine cap of four bone influences per vertex, through the data API. The check proves no vertex exceeds the cap, weights still sum to one, the pose survives pruning, and the modifier is still exact linear blend skinning.</p>
<p class="witnesses"><span class="tag">witnesses</span> Limit-total and normalize without bpy.ops: keep the top four groups, VertexGroup.remove the rest, renormalize. LBS is verified against the weights read back from the mesh's own deform layer, not the authoring function.</p>
<a class="card-link" href="vertex-weight-limit/">View example<span class="sr-only"> vertex-weight-limit</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh uv">
<a class="card-media" href="triangulate-tangents/" tabindex="-1" aria-hidden="true">
<img src="assets/triangulate-tangents-hero.webp" alt="A steel buckler on a walnut stand, turned three-quarter: pointed brass boss, domed face cut with two bands of concentric lathe grooves, brass rim ringed with steel rivets." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="triangulate-tangents/">triangulate-tangents</a></h2>
<p class="teaches">A machined buckler verifying the tangent-space contract a game engine's normal mapping depends on. Deterministic triangulation, unit orthogonal tangent frames, and the edge/UV-delta formula matching mikktspace within welding tolerance.</p>
<p class="witnesses"><span class="tag">witnesses</span> calc_tangents aborts on any ngon; planar UVs on a cylindrical wall collapse tangents onto normals; a MeshUVLoopLayer handle held across calc_tangents dangles on 4.5 (471 phantom flips, silent exit 0) while the mikktspace math is byte-identical on both versions.</p>
<a class="card-link" href="triangulate-tangents/">View example<span class="sr-only"> triangulate-tangents</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="export armature">
<a class="card-media" href="gltf-skin-roundtrip/" tabindex="-1" aria-hidden="true">
<img src="assets/gltf-skin-roundtrip-hero.webp" alt="Two orange-plated mech scorpions face off: the authored one coils its tail with claws tucked; the re-imported one, driven by its imported bones, rears its tail to strike with claws raised." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gltf-skin-roundtrip/">gltf-skin-roundtrip</a></h2>
<p class="teaches">A rigged mech scorpion exported to glTF with skins and re-imported, verifying the skinning contract the geometry round-trip left uncovered. Skeleton, weights, and deformation must all survive the format.</p>
<p class="witnesses"><span class="tag">witnesses</span> skins[0].joints names all 21 bones; JOINTS_0/WEIGHTS_0 per primitive with unit sums; every split copy's weights bit-exact on re-import; deformation matches within 6.0e-07. The mesh must be parented to the armature or the exporter binds by name.</p>
<a class="card-link" href="gltf-skin-roundtrip/">View example<span class="sr-only"> gltf-skin-roundtrip</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="sequencer rendering">
<a class="card-media" href="vse-gamma-cross/" tabindex="-1" aria-hidden="true">
<img src="assets/vse-gamma-cross-hero.webp" alt="A hooded grading monitor showing two orange-to-blue filmstrips: the gamma cross on top sinks to dark grey in the middle, while the linear cross beneath it passes through violet." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="vse-gamma-cross/">vse-gamma-cross</a></h2>
<p class="teaches">The GAMMA_CROSS fade is not the naive linear mix: it blends in a gamma-0.5 space, so the mid-cross dips below the sRGB lerp. Tiny per-frame renders are asserted against the closed form per frame.</p>
<p class="witnesses"><span class="tag">witnesses</span> out = ((1-t)*sqrt(A) + t*sqrt(B))^2 with t = (frame - start) / duration, never 1 inside the effect. The mid lerp deviation is 0.250; AgX-default sampling poisons the fit (Standard is mandatory).</p>
<a class="card-link" href="vse-gamma-cross/">View example<span class="sr-only"> vse-gamma-cross</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="rendering objects">
<a class="card-media" href="light-link-studio/" tabindex="-1" aria-hidden="true">
<img src="assets/light-link-studio-hero.webp" alt="Two spheres on pedestals: a brightly lit orange sphere labelled LINKED and a dark grey sphere labelled UNLINKED." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="light-link-studio/">light-link-studio</a></h2>
<p class="teaches">One key, one hero: a light linked to a receiver collection lights only the hero, proven by two pixel renders in one pass. Linked: 3.6x luminance ratio; unlinked in the same check: the decoy rises 233% while the hero holds at 0.3% drift.</p>
<p class="witnesses"><span class="tag">witnesses</span> The API is obj.light_linking on the light OBJECT (ld.light_linking is an AttributeError). Luminance is sampled at each sphere's projected center; EEVEE honors linking too (probe-measured 3.8x on 4.5.11 EEVEE Next and 5.1.2 EEVEE), Cycles pinned for deterministic samples.</p>
<a class="card-link" href="light-link-studio/">View example<span class="sr-only"> light-link-studio</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="bmesh mesh">
<a class="card-media" href="collision-hull-proxy/" tabindex="-1" aria-hidden="true">
<img src="assets/collision-hull-proxy-hero.webp" alt="A red and yellow fire hydrant wrapped in a cyan wireframe convex collision hull." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="collision-hull-proxy/">collision-hull-proxy</a></h2>
<p class="teaches">A fire hydrant street prop inside its compound collision shell: four convex pieces hulled by bmesh.ops.convex_hull from a coarse inflated cage. The dense render mesh is never hulled - its hull would measure 380 faces, over the 255-face per-piece engine budget. Closed-form plane tests prove containment, convexity, watertightness, outward winding, and Euler characteristic 2 per piece.</p>
<p class="witnesses"><span class="tag">witnesses</span> A hull of the dense render mesh measures 380 faces, over the 255-face per-piece budget - the cage is a coarser lathe with rings inflated by sec(pi/n) so each cage ring circumscribes its render ring exactly (containment 4.4e-08). Proud details cost cage rows; concave grooves are free under the hull. Piece budgets: body 70, caps 60+60+60, compound 250.</p>
<a class="card-link" href="collision-hull-proxy/">View example<span class="sr-only"> collision-hull-proxy</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh attributes">
<a class="card-media" href="custom-normals-shade/" tabindex="-1" aria-hidden="true">
<img src="assets/custom-normals-shade-hero.webp" alt="Three olive jerry cans with X-pressed panels, triple handles and red-sealed spouts: faceted flat, glossy-smeared smooth-everywhere, and crisp by-angle with its sharp edges traced in thin cyan lines." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="custom-normals-shade/">custom-normals-shade</a></h2>
<p class="teaches">A jerry can prop shaded three ways to prove the post-4.1 shading contract: hard edges are mesh data, landing exactly where the dihedral crosses. Face smooth flags plus a sharp_edge attribute, verified against an independently recomputed dihedral test, and per-loop custom normals surviving depsgraph evaluation within their int16 storage quantization (3.904e-05 over 8196 loops, not float-exact).</p>
<p class="witnesses"><span class="tag">witnesses</span> use_auto_smooth, use_custom_normals and calc_normals are AttributeError on BOTH 4.5 LTS and 5.1 - AI code still emits them. The legacy shade_auto_smooth operator CANCELS headless on 4.5 (asset load never finishes; mesh untouched; no exception) while 5.1 FINISHES with the Smooth by Angle NODES modifier. By-angle sharp sets match the independent dihedral recompute exactly (1304 of 4738 edges over 3 meshes).</p>
<a class="card-link" href="custom-normals-shade/">View example<span class="sr-only"> custom-normals-shade</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="world sky rendering">
<a class="card-media" href="sky-texture-sun-elevation/" tabindex="-1" aria-hidden="true">
<img src="assets/sky-texture-sun-elevation-hero.webp" alt="A red-granite obelisk on a paved plaza lit only by the sky: navy dusk with an orange horizon glow at sun elevation 8 degrees, bright blue midday and a short shadow at 55 degrees." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="sky-texture-sun-elevation/">sky-texture-sun-elevation</a></h2>
<p class="teaches">World ShaderNodeTexSky driving Background Color — the sky contract across 4.5 LTS and 5.1. sky_type is NISHITA on 4.5 and MULTIPLE_SCATTERING on 5.1 (NISHITA gone); dust_density exists only on 4.5 (aerosol_density on 5.1). Two tiny Cycles OPEN_EXR zenith probes prove sun_elevation 8 deg to 55 deg brightens zenith (rise 2.25x on 5.1.2, 1.50x on 4.5.11, gate >= 1.25).</p>
<p class="witnesses"><span class="tag">witnesses</span> AI code still assigns sky_type='NISHITA' and dust_density on 5.1 — both are wrong (NISHITA removed; dust_density is AttributeError; use MULTIPLE_SCATTERING + aerosol_density). A near-black Background Strength alone is not a sky: Sky must link into Background Color. Elevation that does not brighten zenith fails the rise gate.</p>
<a class="card-link" href="sky-texture-sun-elevation/">View example<span class="sr-only"> sky-texture-sun-elevation</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="grease-pencil line-art modifiers">
<a class="card-media" href="gp-lineart-contour/" tabindex="-1" aria-hidden="true">
<img src="assets/gp-lineart-contour-hero.webp" alt="A translucent teal crystal, a six-sided double pyramid set tip-down in a dark hex mount, its edges traced by cyan Line Art contour strokes." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gp-lineart-contour/">gp-lineart-contour</a></h2>
<p class="teaches">Grease Pencil LINEART modifier contours via the depsgraph on a faceted crystal. source_object is load-bearing (clear yields 0 strokes); contour+crease off yields 0; restore recovers 2 strokes / 12 points on 4.5.11, 5.1.2 and 5.2.1. Stroke width: thickness exists on 4.5, AttributeError on 5.1 — portable path is radius.</p>
<p class="witnesses"><span class="tag">witnesses</span> AI code still sets LINEART.thickness on 5.1 (AttributeError) or hand-draws strokes / enables Freestyle instead of modifiers.new(..., 'LINEART'). Clearing source_object or leaving contour+crease off silently yields an empty drawing — the check proves both failure modes and recovery.</p>
<a class="card-link" href="gp-lineart-contour/">View example<span class="sr-only"> gp-lineart-contour</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="bmesh mesh game-pipeline">
<a class="card-media" href="mesh-hygiene-audit/" tabindex="-1" aria-hidden="true">
<img src="assets/mesh-hygiene-audit-hero.webp" alt="Two blue street valves with brass handwheels: the left has a red-outlined hole, a red bonnet patch, an amber flange patch and three red beads beside it; the right is intact." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="mesh-hygiene-audit/">mesh-hygiene-audit</a></h2>
<p class="teaches">Engine-ingest mesh hygiene on every part of a flanged street valve: no ngons, no loose verts, manifold edges, no zero-area faces, contiguous and outward winding, Euler V-E+F==2 on the body casting. A dirty copy carries a hole, a flipped patch, an ngon and loose verts, each marked from live audit incidence; the paint glows red wherever the renderer sees a back face.</p>
<p class="witnesses"><span class="tag">witnesses</span> Pipelines that skip topology gates ship open boundaries, flipped patches, ngons, loose verts or stray shells into engine ingest. The still shows the first four on a dirty copy; zero-area faces and a buried second shell remain check-only.</p>
<a class="card-link" href="mesh-hygiene-audit/">View example<span class="sr-only"> mesh-hygiene-audit</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="transforms parenting game-pipeline">
<a class="card-media" href="prop-origin-transform/" tabindex="-1" aria-hidden="true">
<img src="assets/prop-origin-transform-hero.webp" alt="Two green street utility pedestals in floor pivot rings: the left one keeps its orange conduit elbow bolted on, the right one's elbow hangs in the air beside a glowing cyan outline of its seat." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="prop-origin-transform/">prop-origin-transform</a></h2>
<p class="teaches">Street pedestal origin-to-base-center + data-API scale apply + matrix_parent_inverse for a flanged conduit elbow. After bake: scale (1,1,1), local min.z==0, world AABB unchanged. Bare parent throws the elbow off its mount; MPI keeps it seated.</p>
<p class="witnesses"><span class="tag">witnesses</span> Bare child.parent = parent teleports accessories off their mounts; skipping view_layer.update() before matrix_world, or leaving non-uniform scale / centered origin, breaks engine ingest placement.</p>
<a class="card-link" href="prop-origin-transform/">View example<span class="sr-only"> prop-origin-transform</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="bmesh mesh">
<a class="card-media" href="soccer-ball-goldberg/" tabindex="-1" aria-hidden="true">
<img src="assets/soccer-ball-goldberg-hero.webp" alt="A round white soccer ball with black pentagon panels and dark stitched seams outlining every white hexagon, built as a smoothed Goldberg polyhedron." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="soccer-ball-goldberg/">soccer-ball-goldberg</a></h2>
<p class="teaches">A soccer ball as a Goldberg polyhedron: a bmesh icosphere truncated at 1/3 per edge, faces ordered by link-topology walks, panels bound by face vertex count.</p>
<p class="witnesses"><span class="tag">witnesses</span> Goldberg invariants are closed forms — counts, degree 3, uniform edges, planar faces, one circumsphere — and panels bind by vertex count, never enumeration order.</p>
<a class="card-link" href="soccer-ball-goldberg/">View example<span class="sr-only"> soccer-ball-goldberg</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="modifiers depsgraph">
<a class="card-media" href="car-mirror-symmetry/" tabindex="-1" aria-hidden="true">
<img src="assets/car-mirror-symmetry-hero.webp" alt="A red stylized hatchback in front three-quarter view with tinted glass, black pillars, spoked wheels, and matched headlamps and door mirrors either side of one centered grille." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="car-mirror-symmetry/">car-mirror-symmetry</a></h2>
<p class="teaches">A stylized hatchback lofted as one half (52 stations, 13-point rings) and completed by the Mirror modifier, evaluated through the depsgraph. Wheels, lamps, grille, door mirrors and handles mirror about object origins parked on the symmetry plane; the grille is authored as a half and welded on it.</p>
<p class="witnesses"><span class="tag">witnesses</span> Mirror is a modifier, not applied data: the original keeps the authored half while the evaluated mesh is the welded, watertight, exactly symmetric whole.</p>
<a class="card-link" href="car-mirror-symmetry/">View example<span class="sr-only"> car-mirror-symmetry</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="attributes mesh rendering">
<a class="card-media" href="attribute-domain-shear/" tabindex="-1" aria-hidden="true">
<img src="assets/attribute-domain-shear-hero.webp" alt="Two rainbow pinwheels on wooden sticks, well apart: CORNER on the left with crisp coloured petals, POINT, last write wins, on the right with colours smeared across the hub." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="attribute-domain-shear/">attribute-domain-shear</a></h2>
<p class="teaches">POINT vs CORNER color-attribute domains on a shared-vertex pinwheel: CORNER stays exact per face while a naive per-wedge POINT loop shears to the last write at the hub. Crisp petals versus a smeared swirl in one frame; the measured shear equals the palette closed form.</p>
<p class="witnesses"><span class="tag">witnesses</span> Authoring per-face colors into a POINT-domain attribute overwrites shared vertices once per neighbor; the last write wins and intended colors shear across every shared vertex.</p>
<a class="card-link" href="attribute-domain-shear/">View example<span class="sr-only"> attribute-domain-shear</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="bmesh mesh game-pipeline">
<a class="card-media" href="degenerate-bevel-weld/" tabindex="-1" aria-hidden="true">
<img src="assets/degenerate-bevel-weld-hero.webp" alt="Two teal rounded slabs labelled BEVEL 0.10 and BEVEL 0.20 = min/2, the right one with orange weld markers at its corners." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="degenerate-bevel-weld/">degenerate-bevel-weld</a></h2>
<p class="teaches">Bevel offset >= half the min box dimension collapses the band into zero-area faces — and they ship: a stdlib GLB re-parse counts the degenerate triangles crossing the export boundary. Dual tray: rounded edge versus knife seam, markers from live mesh data.</p>
<p class="witnesses"><span class="tag">witnesses</span> At offset == min_dimension/2 the bevel band pinches to exactly 12 zero-area faces (4 edges x 3 segments); 32 degenerate triangles cross into the exported GLB, waiting for any merge-by-distance to weld them.</p>
<a class="card-link" href="degenerate-bevel-weld/">View example<span class="sr-only"> degenerate-bevel-weld</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh bmesh game-pipeline instancing">
<a class="card-media" href="modular-kit-snap/" tabindex="-1" aria-hidden="true">
<img src="assets/modular-kit-snap-hero.webp" alt="A sci-fi corridor built from snapped modular segments, with glass wall panels, orange trim rails and a lit doorway at the far end." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="modular-kit-snap/">modular-kit-snap</a></h2>
<p class="teaches">A tiling corridor kit whose open-end boundary verts snap to the tile grid, so instances at 4 m multiples join with zero gap or overlap.</p>
<p class="witnesses"><span class="tag">witnesses</span> 16 boundary verts on x∈{0,4} within 1e-6 m, linked-duplicate joint deviation 0.0, bbox == declared tile; unsnapped probe fails at 3e-3 m.</p>
<a class="card-link" href="modular-kit-snap/">View example<span class="sr-only"> modular-kit-snap</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="uv game-pipeline rendering">
<a class="card-media" href="lightmap-uv-channel/" tabindex="-1" aria-hidden="true">
<img src="assets/lightmap-uv-channel-hero.webp" alt="A wooden covered cart, its four posts carrying an arched canvas canopy, beside a board showing its packed lightmap UV atlas as coloured islands." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="lightmap-uv-channel/">lightmap-uv-channel</a></h2>
<p class="teaches">A market cart carrying the two-channel UV contract for baked lighting: UV0 untouched, UVLight packed with no overlaps and a respected margin.</p>
<p class="witnesses"><span class="tag">witnesses</span> Per-part UVMap/UVLight with active vs active_render pinned (ops clear both flags), UV0 drift 0.0, 3680 islands with 0 SAT overlaps, min island distance 0.00401.</p>
<a class="card-link" href="lightmap-uv-channel/">View example<span class="sr-only"> lightmap-uv-channel</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh transforms game-pipeline instancing">
<a class="card-media" href="socket-attach-points/" tabindex="-1" aria-hidden="true">
<img src="assets/socket-attach-points-hero.webp" alt="A dark quadcopter drone with orange motor mounts, propellers and attached antenna and camera parts." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="socket-attach-points/">socket-attach-points</a></h2>
<p class="teaches">A survey drone whose named SKT_ empties are the spawn contract: modules parented with an identity local transform seat exactly on their mount pads.</p>
<p class="witnesses"><span class="tag">witnesses</span> 7 socket world matrices within 1.788e-07 of the authored transform, socket +Z == the pad's Newell normal (1.794e-07), seating offset 0.0; the no-parent-inverse probe jumps 0.690128 m.</p>
<a class="card-link" href="socket-attach-points/">View example<span class="sr-only"> socket-attach-points</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh attributes game-pipeline rendering">
<a class="card-media" href="vertex-color-ao/" tabindex="-1" aria-hidden="true">
<img src="assets/vertex-color-ao-hero.webp" alt="A round stone well with a wooden windlass frame, its stones darkened near the base by baked vertex-colour ambient occlusion." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="vertex-color-ao/">vertex-color-ao</a></h2>
<p class="teaches">A stone well carrying baked ambient occlusion in a colour attribute, with the bake held to the closed-form hemisphere integral rather than to a captured value.</p>
<p class="witnesses"><span class="tag">witnesses</span> Integrator matches 1 - 0.5(1 - 1/sqrt(1+k^2)) to 6.760e-04, unoccluded plate exactly 1.0, FLOAT_COLOR exact vs BYTE_COLOR sRGB-quantised (model agreement 3.189e-07), evaluated deviation 0.0.</p>
<a class="card-link" href="vertex-color-ao/">View example<span class="sr-only"> vertex-color-ao</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="context properties">
<a class="card-media" href="cross-version-property-delete/" tabindex="-1" aria-hidden="true">
<img src="assets/cross-version-property-delete-hero.webp" alt="Two brass tags hanging from a stand on steel rods: the left shows a lit cyan inlay, the right a blank grey pocket." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="cross-version-property-delete/">cross-version-property-delete</a></h2>
<p class="teaches">Custom ID properties are removed with del, not property_unset. The IDs are built through bpy.data.objects.new so the check does not depend on active_object.</p>
<p class="witnesses"><span class="tag">witnesses</span> Factory-empty has no active_object; property_unset raises TypeError and leaves the key; del removes it (clear_has=False). --skip-delete and --unset-instead exit 7.</p>
<a class="card-link" href="cross-version-property-delete/">View example<span class="sr-only"> cross-version-property-delete</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="depsgraph export">
<a class="card-media" href="usd-export-evaluation-mode/" tabindex="-1" aria-hidden="true">
<img src="assets/usd-export-evaluation-mode-hero.webp" alt="Two steel balls resting on the floor: a coarse, flat-shaded one on the left and a smooth, subdivided one on the right." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="usd-export-evaluation-mode/">usd-export-evaluation-mode</a></h2>
<p class="teaches">The USD exporter evaluation_mode chooses viewport versus render modifier quality. TESSELLATE makes the split observable; BEST_MATCH writes the cage and the mode is silent.</p>
<p class="witnesses"><span class="tag">witnesses</span> TESSELLATE+VIEWPORT writes 26/24; TESSELLATE+RENDER writes 98/96 subdivisionScheme=none; BEST_MATCH writes the 8-vert catmullClark cage. --evaluation-mode VIEWPORT and --subdivision BEST_MATCH exit 4.</p>
<a class="card-link" href="usd-export-evaluation-mode/">View example<span class="sr-only"> usd-export-evaluation-mode</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="geometry-nodes">
<a class="card-media" href="gn-zone-iterate/" tabindex="-1" aria-hidden="true">
<img src="assets/gn-zone-iterate-hero.webp" alt="Four brass cubes evenly spaced in a row from a Repeat zone beside a vertical stack of six cyan cubes from a For Each zone." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gn-zone-iterate/">gn-zone-iterate</a></h2>
<p class="teaches">Repeat Zone and For Each Element only iterate after pair_with_output. Evaluated cube counts follow 8 times (1+N) and 8 times P, not tree structure.</p>
<p class="witnesses"><span class="tag">witnesses</span> Repeat 32/24 verts/faces with X-centers at k*1.2; For Each 48/36 with Z-centers at i*0.6+0.21. Unpaired evaluates empty; For Each main Geometry passthrough is 6 verts.</p>
<a class="card-link" href="gn-zone-iterate/">View example<span class="sr-only"> gn-zone-iterate</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh">
<a class="card-media" href="bake-normal-high-to-low/" tabindex="-1" aria-hidden="true">
<img src="assets/bake-normal-high-to-low-hero.webp" alt="A baked tangent-space normal map shown as a lilac card beside a bronze plate wearing it, with a radial embossed pattern, both standing in low display plinths." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="bake-normal-high-to-low/">bake-normal-high-to-low</a></h2>
<p class="teaches">A collapse-decimated hatch plate receiving a Cycles cage-baked tangent normal map from a ribbed high-poly source</p>
<p class="witnesses"><span class="tag">witnesses</span> Statistical gates not byte-identity: detail frac 0.7211 / MAD 0.09356 vs flat 0.0000 / 0.00277; --flat-source exits 5; type=NORMAL not bake_type; RNA identical on 4.5.11, 5.1.2, 5.2.1</p>
<a class="card-link" href="bake-normal-high-to-low/">View example<span class="sr-only"> bake-normal-high-to-low</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="geometry-nodes">
<a class="card-media" href="gn-socket-rename/" tabindex="-1" aria-hidden="true">
<img src="assets/gn-socket-rename-hero.webp" alt="A copper measuring column with graduated tick marks standing on a grey base plate." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="gn-socket-rename/">gn-socket-rename</a></h2>
<p class="teaches">Compare and Random Value socket identifiers collapsed onto reused names in 5.2; enabled-name lookup wires on 4.5, 5.1, and 5.2</p>
<p class="witnesses"><span class="tag">witnesses</span> A_INT and Min_001 present on 4.5.11 and 5.1.2, absent on 5.2.1. --legacy-ids exits 5 only on 5.2. Evaluated 16 verts and gauge_h 1.80 on eight column verts; the still draws the column graduations from gauge_h, so an unwired Random Value renders a blank column</p>
<a class="card-link" href="gn-socket-rename/">View example<span class="sr-only"> gn-socket-rename</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="shipping-crate/" tabindex="-1" aria-hidden="true">
<img src="assets/shipping-crate-hero.webp" alt="A grained wooden shipping crate with nailed iron corner straps, horizontal planks and a metal bail handle mounted on one end board." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="shipping-crate/">shipping-crate</a></h2>
<p class="teaches">A procedural shipping crate through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 2508 tris, two materials with 1170 wood and 280 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.146×0.726×0.612 m, grounded zmin, 3 skids, handle-end and slat-post join 0, mesh hygiene all zero, LOD ratios in band (5.2 COLLAPSE leaner on LOD2), convex collider 76 tris, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-skids 16; --float-handle 17; --omit-slats 18.</p>
<a class="card-link" href="shipping-crate/">View showcase piece<span class="sr-only"> shipping-crate</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="stone-well/" tabindex="-1" aria-hidden="true">
<img src="assets/stone-well-hero.webp" alt="A round well of grey stones, each a slightly different shade, under a four-post grained wooden roof, with a bucket on rusted iron hoops hanging inside." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="stone-well/">stone-well</a></h2>
<p class="teaches">A procedural stone well through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 9380 tris, three materials with face floors, UVs in 0..1 with zero AABB overlap, outer AABB 1.312×1.312×1.761 m, LOD ratios in band, convex collider 346 tris, hygiene zero (loose, non-manifold, doubles, n-gons), zero coplanar cross-shell face pairs, all 12 bottom-course stones on the floor, each post tenoned 18 mm into the measured coping and standing under a roof hip corner, the bucket hanging 0.10 m clear of the coping, grounded zmin, non-empty glTF. --stand-posts exits 15 on the z-fight budget; --float-stone exits 16 on the named-support budget; --shallow-tenon and --drop-bucket exit 18; --turn-posts exits 19 on post placement; --skip-decimate exits 9 on the LOD1 ratio budget; --lift-z exits 16 on the grounded budget.</p>
<a class="card-link" href="stone-well/">View showcase piece<span class="sr-only"> stone-well</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="wooden-barrel/" tabindex="-1" aria-hidden="true">
<img src="assets/wooden-barrel-hero.webp" alt="A wooden stave barrel bound by four iron hoops, its head made of boards." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="wooden-barrel/">wooden-barrel</a></h2>
<p class="teaches">A procedural wine-cask with boarded, croze-seated heads and chord-lofted hoops through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 7312 tris, two materials with 2584 wood and 1440 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.722×0.714×0.880 m, 20 grounded staves, hoop bite 0.003 m, head-croze gap 0.007 m, four boards per head with 1.5 mm seams, LOD ratios in band, convex collider 238 tris, non-empty glTF. --skip-decimate exits 9; --round-band exits 18 on the hoop-seat budget; --one-piece-head exits 17 on the head-board budget.</p>
<a class="card-link" href="wooden-barrel/">View showcase piece<span class="sr-only"> wooden-barrel</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="campfire/" tabindex="-1" aria-hidden="true">
<img src="assets/campfire-hero.webp" alt="A campfire of crossed logs in a teepee, embers in the ash, inside a two-course ring of rounded grey fieldstones." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="campfire/">campfire</a></h2>
<p class="teaches">A procedural campfire through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 2760 tris, three materials with 216 wood, 48 ash and 1416 stone faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.802×0.802×0.404 m, LOD ratios in band, convex collider 162 tris, hygiene 0, 14 grounded bottom stones, teepee kiss 0.00034 m, course seat 0, stone variation 0.01269 m, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-stones 16; --float-logs 17; --gap-courses 18; --uniform-stones 20.</p>
<a class="card-link" href="campfire/">View showcase piece<span class="sr-only"> campfire</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="market-stall/" tabindex="-1" aria-hidden="true">
<img src="assets/market-stall-hero.webp" alt="A grained timber market stall with diagonal side braces, a red and cream striped canvas awning and a counter with shelves." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="market-stall/">market-stall</a></h2>
<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>
<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, both side braces seated 0.0418 m into their posts, 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/--short-brace 17; --float-awning 18; --rake-posts 19.</p>
<a class="card-link" href="market-stall/">View showcase piece<span class="sr-only"> market-stall</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="street-lantern/" tabindex="-1" aria-hidden="true">
<img src="assets/street-lantern-hero.webp" 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." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="street-lantern/">street-lantern</a></h2>
<p class="teaches">A procedural hanging street lantern through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> 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.</p>
<a class="card-link" href="street-lantern/">View showcase piece<span class="sr-only"> street-lantern</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="treasure-chest/" tabindex="-1" aria-hidden="true">
<img src="assets/treasure-chest-hero.webp" alt="An open grained wooden treasure chest with iron bands following its barrel-vaulted lid." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="treasure-chest/">treasure-chest</a></h2>
<p class="teaches">A procedural iron-bound chest with a lofted barrel-vault lid, U-wrap bands, and hinge knuckles through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 3852 tris, two materials with 1608 wood and 318 metal faces, UVs in 0..1 with zero AABB overlap, outer AABB 0.764×0.542×0.691 m, LOD ratios in band, convex collider 176 tris, non-empty glTF. Hygiene all zero, four feet at zmin 0, lid-knuckle to hinge barrel 7 mm, band-wall gap 0. --float-hinge exits 17 on the hinge join; --narrow-bands exits 18 on the band seat.</p>
<a class="card-link" href="treasure-chest/">View showcase piece<span class="sr-only"> treasure-chest</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="terrain-scatter/" tabindex="-1" aria-hidden="true">
<img src="assets/terrain-scatter-hero.webp" alt="A square tile of dark rolling earth with a rounded edge, nine faceted grey stones from cobble to boulder sunk into the ground across the hill." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="terrain-scatter/">terrain-scatter</a></h2>
<p class="teaches">A Geometry Nodes hill tile with embedded, varied stone scatter through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 2398 tris, two materials with 720 stone faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.800x1.800x0.570 m, grounded zmin, 9 stones of >=80 faces each sealed into the ground in 8/8 sectors, footprint ratio 9.8, rim tilt step 33.5 deg, no stone pairs overlapping, LOD ratios in band, convex collider 36 tris, hygiene zero, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z 16; --poke-rock 17; --float-rocks 18; --box-rocks 19; --pile-rocks 20; --perch-rocks 21; --uniform-rocks 22; --sharp-rim 23.</p>
<a class="card-link" href="terrain-scatter/">View showcase piece<span class="sr-only"> terrain-scatter</span> <span aria-hidden="true">→</span></a>
</div>
</article>
<article class="card" data-tags="mesh export showcase">
<a class="card-media" href="fence-kit/" tabindex="-1" aria-hidden="true">
<img src="assets/fence-kit-hero.webp" alt="A section of grained timber post-and-rail fence with a diagonal board brace across the rails and dark iron bands and shoes on both posts." loading="lazy" decoding="async" />
</a>
<div class="card-body">
<h2><a href="fence-kit/">fence-kit</a></h2>
<p class="teaches">A procedural post-and-rail fence section that fits its 1.60 m tile, with one-shell iron bands and a board brace housed in both posts, through UVs, bake, LOD, collider, and Unity glTF, asserting recomputed budgets rather than an API contract.</p>
<p class="witnesses"><span class="tag">witnesses</span> Recomputed: 1012 tris, two materials with 116 metal and 390 wood faces, UVs in 0..1 with zero AABB overlap, outer AABB 1.596×0.134×1.232 m inside the 1.60 m tile, grounded zmin, 2 iron shoes, brace housed 12 mm in both posts and bearing 2 mm on the middle rail, rail-to-post gap 0.93 mm, rail span 1.362 m, LOD ratios in band (5.2 COLLAPSE leaner on LOD2), convex collider 24 tris, hygiene all zero, non-empty glTF. --skip-decimate exits 9; --stray-vert 15; --lift-z/--short-shoes 16; --short-brace 17; --gap-rails 18; --long-rails 19; --float-brace 20; --wide-tile 21.</p>