TL;DR
ProcFunc is an open-source Python library that transforms Blender’s complex, stateful graphics API into clean, atomic, function-oriented abstractions. By standardizing procedural 3D generation into predictable compute graphs, it enables massive combinatorial asset diversity, unlocks deep-learning-style static analysis, and drastically reduces coding errors for Vision-Language Models (VLMs) generating 3D content.
What Problem Does This Paper Address?
Procedural 3D generation—creating objects, textures, and scenes via code—is incredibly powerful for generating photorealistic synthetic data and infinite content variations. However, existing programming interfaces (like Blender’s native Python API or even wrapper libraries like Infinigen) are fundamentally designed around a GUI-centric workflow.
Developing procedurally currently requires manipulating a global background state, managing hidden dependencies, and dealing with volatile UI strings. Sockets and inputs dynamically appear or disappear depending on the state of a node, making code verbose, fragile, and incredibly difficult to compose. This stateful complexity is a nightmare not just for human developers, but also for LLMs and VLMs, which frequently hallucinate or misuse the API, leading to high code error rates.
Methods
ProcFunc addresses these challenges by introducing three layers of clean, functional abstractions:
- Primitives API: The authors defined 497 pure Python functions that encapsulate Blender operations (Shader Nodes, Geometry Nodes, and mesh manipulations). Every function is atomic: all scene dependencies are exposed as explicit arguments, and results are returned explicitly, eliminating global state side-effects. It also features automatic data type inference to eliminate tedious boilerplate code.
- Module Composition Framework: ProcFunc enforces standardized asset interfaces (e.g., Masks, Materials, Objects, Scenes). Because inputs and outputs are strictly typed and predictable, developers can easily layer components. For instance, a material can have 6+ layers of modularity (e.g., applying scratches and dirt over a brick pattern made of a base marble material).
- Static Analysis with Program Tracing: Borrowing a concept from deep learning frameworks (like PyTorch's
fx.symbolic_trace), ProcFunc includes a program tracer. It executes procedural code in a special context to capture the underlying compute graph without running expensive graphics rendering. This allows developers to inspect, optimize, or mathematically analyze parameter distributions beforehand.
Datasets
The paper evaluates ProcFunc across two primary paradigms:
- BlenderGym: Used to benchmark VLM performance on procedural parameter editing and from-scratch material/geometry creation tasks.
- Stereo Vision Benchmarks: To test the quality of ProcFunc's synthetic data, a 50k stereo pair dataset was generated and used to train a RAFT-Stereo model, which was then evaluated on standard real-world benchmarks: Middlebury 2014, KITTI-15, ETH3D, and Booster.
Key Insights and Ideas
- Functional > Stateful for AI Agents: Forcing graphics operations into pure, stateless functions makes the code distribution look much more like standard Python. This structural alignment allows off-the-shelf VLMs to write 3D generation code with far greater accuracy, despite having zero prior training on the ProcFunc library.
- Combinatorial Explosion of Assets: By standardizing interfaces, components become truly reusable plug-and-play blocks. You can combine any base material with any shape and any weathering mask, effortlessly yielding tens of thousands of unique semantic combinations.
- Graph Tracing for Graphics: Treating a procedural generator as a traceable compute graph opens the door to advanced dataset optimization. Developers can statically analyze all possible control-flow paths to prune unwanted variations or optimize parameter distributions before spending heavy compute on rendering.
Key Results
- Massive Reduction in VLM Errors: In from-scratch material creation tasks (where no starter code is provided), ProcFunc drastically cut down VLM coding crashes. For Gemini 2.5 Pro, the error rate plummeted from 30.3% (using Infinigen) to just 4.9% (using ProcFunc).
- High-Efficiency Scene Generation: ProcFunc's indoor room generator creates highly detailed room meshes in 1 to 2 minutes of CPU time. Compared to the optimized Infinigen Indoors baseline used in WMGStereo, ProcFunc generated scenes 31x faster (0.41 min vs 13 min per scene).
- Strong Synthetic Data Baseline: Despite being drastically smaller than competing synthetic datasets, a RAFT-Stereo model trained on just 50k ProcFunc pairs achieved highly competitive performance against state-of-the-art datasets like FSD (which contains 1M pairs).
Limitations and Future Work
While highly efficient, the current pre-implemented indoor room generator is limited to generic rooms and does not yet support specific room types like bathrooms or complex specialized furniture. Additionally, because the library generates highly intricate, multi-layered procedural shaders, GPU render times can occasionally be slightly slower than simpler baselines. The authors note that future iterations could mitigate this by pre-evaluating complex shaders into static image textures.
Summary updated