Skip to content

Commit 1282f01

Browse files
committed
fix: pin turntable still to a readable three-quarter Suzanne pose (regression from #62)
1 parent 1ac2458 commit 1282f01

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

4.99 KB
Loading

‎docs/gallery/turntable/index.html‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ <h2>Source</h2>
235235
bpy.ops.wm.read_factory_settings(use_empty=<span class="k">True</span>)
236236
bpy.ops.mesh.primitive_monkey_add(location=(<span class="n">0</span>, <span class="n">0</span>, <span class="n">1.0</span>))
237237
obj = bpy.context.active_object
238-
<span class="k">for</span> p <span class="k">in</span> obj.data.polygons:
239-
p.use_smooth = <span class="k">True</span>
238+
obj.data.shade_smooth()
240239
mat = bpy.data.materials.new(<span class="s">&quot;M&quot;</span>); mat.use_nodes = <span class="k">True</span>
241240
b = mat.node_tree.nodes.get(<span class="s">&#x27;Principled BSDF&#x27;</span>)
242241
b.inputs[<span class="s">&#x27;Base Color&#x27;</span>].default_value = (<span class="n">0.85</span>, <span class="n">0.35</span>, <span class="n">0.10</span>, <span class="n">1</span>)
@@ -309,7 +308,10 @@ <h2>Source</h2>
309308
<span class="k">else</span>:
310309
<span class="k">try</span>: sc.eevee.taa_render_samples = <span class="n">16</span>
311310
<span class="k">except</span> Exception: <span class="k">pass</span>
312-
sc.frame_set(FRAMES // <span class="n">4</span>)
311+
<span class="c"># pin the still to a deliberate pose: frame 4 is ~31 degrees of turn, a</span>
312+
<span class="c"># three-quarter view where ears and brow read instantly as Suzanne. An</span>
313+
<span class="c"># arbitrary turntable frame can land face-away and read as broken geometry.</span>
314+
sc.frame_set(<span class="n">4</span>)
313315
sc.render.resolution_x = <span class="n">1280</span>; sc.render.resolution_y = <span class="n">720</span>
314316
sc.render.image_settings.file_format = <span class="s">&#x27;PNG&#x27;</span>; sc.render.filepath = path
315317
<span class="c"># AgX would wash the copper toward beige (docs/VISUAL-STYLE.md)</span>

‎examples/turntable/preview.webp‎

4 KB
Loading

‎examples/turntable/turntable.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def build():
3333
bpy.ops.wm.read_factory_settings(use_empty=True)
3434
bpy.ops.mesh.primitive_monkey_add(location=(0, 0, 1.0))
3535
obj = bpy.context.active_object
36-
for p in obj.data.polygons:
37-
p.use_smooth = True
36+
obj.data.shade_smooth()
3837
mat = bpy.data.materials.new("M"); mat.use_nodes = True
3938
b = mat.node_tree.nodes.get('Principled BSDF')
4039
b.inputs['Base Color'].default_value = (0.85, 0.35, 0.10, 1)
@@ -107,7 +106,10 @@ def render_still(obj, path, engine):
107106
else:
108107
try: sc.eevee.taa_render_samples = 16
109108
except Exception: pass
110-
sc.frame_set(FRAMES // 4)
109+
# pin the still to a deliberate pose: frame 4 is ~31 degrees of turn, a
110+
# three-quarter view where ears and brow read instantly as Suzanne. An
111+
# arbitrary turntable frame can land face-away and read as broken geometry.
112+
sc.frame_set(4)
111113
sc.render.resolution_x = 1280; sc.render.resolution_y = 720
112114
sc.render.image_settings.file_format = 'PNG'; sc.render.filepath = path
113115
# AgX would wash the copper toward beige (docs/VISUAL-STYLE.md)

0 commit comments

Comments
 (0)