Skip to content

armgit / forma

Public Imported from GitHub
0

A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server

4.0 KB
Raw Blame

[!NOTE] Archived benchmark snapshot (v0.1 baseline study). For current documentation and APIs, see docs/README.md.

Phase 1.2 — Baseline Evaluation Report: Stock Headless Blender 5.3 (bpy)

1. Experimental Setup

  • Backend: Stock /Applications/Blender.app/Contents/MacOS/Blender (Blender 5.3.0, --background --factory-startup --python-exit-code 1).
  • Models (4 distinct families via OpenRouter):
    • anthropic/claude-opus-5.5 (Anthropic, reasoning.effort = low)
    • google/gemini-4-neon (Google, reasoning.effort = low)
    • openai/gpt-6.2-astra (OpenAI, reasoning.effort = low)
    • tencent/hy4-flash (Tencent, reasoning.enabled = false — note: under default reasoning, hy4-flash exhausted 3,154 hidden reasoning tokens per turn planning bpy boilerplate and emitted empty scripts 0/12; disabling reasoning produced valid Python attempts and is reported below for fairness)
  • Tasks: 12 exact-dimension modeling tasks (4 hard-surface booleans, 4 multi-part/beveled assemblies, 4 rotational/subdivision/organic forms), up to 3 turns per task.
  • Independent Verifier: trimesh + scipy.spatial.cKDTree + exact Generalized Winding Number Volumetric IoU (Jacobson et al. 2013), passing only if watertight && non_manifold_edges == 0 && bbox_err <= max(0.08, 0.03*diag) && chamfer <= 0.025*diag && IoU >= 0.80 && normal_consistency >= 0.85.

2. Quantitative Results (48 Trials)

Model Pass@1 Pass@3 Median API Tok (Pass) Median API Tok (All) Mean Code Tok (o200k, Pass) Mean Volumetric IoU
anthropic/claude-opus-5.5 10/12 12/12 1,398 1,398 679 0.986
google/gemini-4-neon 10/12 12/12 2,658 2,658 958 0.985
openai/gpt-6.2-astra 10/12 12/12 816 816 739 0.984
tencent/hy4-flash 3/12 5/12 1,614 7,637 1,180+ 0.413

3. Turn-Level Failure Taxonomy (All 71 Turns Across 48 Trials)

Failure Category Count Root Cause Observed in Raw Transcripts
passed 41 —
runtime_or_missing_export 17 bpy.ops context/mode mismatches, active-object loss, missing export_scene.gltf, or Blender 5.x parameter changes
boolean_or_topology_non_manifold 5 Silent non-manifold corruption (WT=False, NM=4..6, IoU=0.0) with exit code 0 (including Opus 5.5 & Astra 6.2 on subdiv_mug, and hy4-flash on pipe_tee, slotted_block, hex_nut)
geometry_mismatch_low_iou 3 All 3 frontier models failed Turn 1 on pedestal_bowl (IoU=0.271..0.767) hand-rolling bmesh vertex/ring/face loops & subsurf shrinkage
python_syntax_error 2 Long bmesh scripts hitting token truncation before closing code fence
blender_api_or_version_error 2 Legacy Blender 3.x/4.x bpy API calls failing under Blender 5.3
invalid_glb_load 1 Empty/corrupt mesh export

4. Key Empirical Takeaways Driving Phase 2 Design

  1. Boilerplate tax is massive (~700–960 code tokens/task): Even on clean 1-shot passes, models burn ~700–960 o200k tokens on Blender ceremony (read_factory_settings, bmesh.new(), matrix transforms, bpy.data.meshes.new, modifiers.new('BOOLEAN'), modifier_apply, objects.remove, export_scene.gltf).
  2. Repair turns cause 3×–5× token blowups: Every single frontier model failed Turn 1 on the exact same two tasks (subdiv_mug and pedestal_bowl), exploding from ~800–1,400 tokens to 2,932–11,678 tokens across multi-turn repair loops.
  3. Small/flash models collapse on stateful bpy: tencent/hy4-flash only solved 5/12 (3/12 Pass@1) with a median of 7,637 tokens—directly proving that GUI-shaped modal bpy APIs impose huge cognitive overhead on smaller models.
  4. Silent corruption is real: Blender exited with code 0 on 5 non-manifold exports (NM=4..6, WT=False), confirming the need for automatic post-operation manifold/Euler invariant verification and a compact ~100-token observation/diff channel.