|
18 | 18 | </p> |
19 | 19 |
|
20 | 20 | <p align="center"> |
21 | | - <strong>12 skills</strong> • <strong>6 rules</strong> • <strong>2 templates</strong> • <strong>17 snippets</strong> • <strong>21 examples</strong> |
| 21 | + <strong>12 skills</strong> • <strong>6 rules</strong> • <strong>2 templates</strong> • <strong>17 snippets</strong> • <strong>22 examples</strong> |
22 | 22 | </p> |
23 | 23 |
|
24 | 24 | <p align="center"> |
|
36 | 36 |
|
37 | 37 | ## Overview |
38 | 38 |
|
39 | | -This repository ships **12 skills, 6 rules, 2 templates, 17 snippets, and 21 runnable examples** for Blender Python development targeting Blender 5.1 (current stable) with Blender 4.5 LTS fallback support. |
| 39 | +This repository ships **12 skills, 6 rules, 2 templates, 17 snippets, and 22 runnable examples** for Blender Python development targeting Blender 5.1 (current stable) with Blender 4.5 LTS fallback support. |
40 | 40 |
|
41 | 41 | The content is consumed by AI coding agents (Cursor, Claude Code, any MCP-capable client) when working on Blender add-ons, geometry nodes scripts, batch pipelines, or animation tooling. There is no build step. Edit the markdown and Python files directly. |
42 | 42 |
|
@@ -85,7 +85,7 @@ or expand a category below. |
85 | 85 | </p> |
86 | 86 |
|
87 | 87 | <details> |
88 | | -<summary><strong>Materials, shading & compositing</strong> — 5 examples</summary> |
| 88 | +<summary><strong>Materials, shading & compositing</strong> — 6 examples</summary> |
89 | 89 |
|
90 | 90 | <table> |
91 | 91 | <tr> |
@@ -166,12 +166,22 @@ non-destructive path. |
166 | 166 |
|
167 | 167 | </td> |
168 | 168 | </tr> |
169 | | -</table> |
| 169 | +<tr> |
| 170 | +<td width="46%" valign="middle"> |
| 171 | +<a href="examples/png-exr-alpha/"><img src="examples/png-exr-alpha/preview.webp" alt="PNG vs EXR alpha: two easel panels on a dark studio floor — left float→PNG false-unpremul clamps dark mid-tones to white at low alpha, right the EXR-clean authored straight buffer with surviving red and green primaries" /></a> |
| 172 | +</td> |
| 173 | +<td valign="middle"> |
170 | 174 |
|
171 | | -</details> |
| 175 | +### [png-exr-alpha](examples/png-exr-alpha/) |
172 | 176 |
|
173 | | -<details> |
174 | | -<summary><strong>Mesh, curves & text</strong> — 7 examples</summary> |
| 177 | +`float_buffer=True` images saved to PNG are written as RGBA16 and unpremultiplied |
| 178 | +as if associated-alpha — straight-authored dark values at low alpha clamp to white |
| 179 | +(closed-form error **0.98** at `(0.02, a=1/255)`). OpenEXR preserves float RGBA; |
| 180 | +byte images stay straight 8-bit. Also witnesses `EXR color_mode='RGB'` dropping alpha. |
| 181 | + |
| 182 | +</td> |
| 183 | +</tr> |
| 184 | +</table> |
175 | 185 |
|
176 | 186 | <table> |
177 | 187 | <tr> |
|
0 commit comments