Abstract
We present LL3M, a multi-agent system that leverages pretrained large language models (LLMs) to generate 3D assets by writing interpretable Python code in Blender. Breaking away from typical generative approaches that learn from 3D data, we reformulate shape generation as a code-writing task, enabling greater modularity, editability, and integration with artist workflows. Given a text prompt, LL3M coordinates a team of specialized LLM agents to plan, retrieve, write, debug, and refine Blender scripts. The generated code serves as a high-level, human-readable representation of scenes, making full use of sophisticated Blender constructs like B-meshes and shader nodes. This medium enables a co-creative loop where agents self-critique using visuals and iterative user instructions provide intuitive refinement. A retrieval-augmented generation knowledge base, BlenderRAG, built from official documentation, equips agents with the examples and functions necessary for advanced modeling. We demonstrate the effectiveness of LL3M across diverse shape categories and user-driven refinements, showcasing the power of code as a generative medium for 3D asset creation. Project page: https://threedle.github.io/ll3m.
Introduction
Traditional generative 3D models typically output low-level representations like point clouds, voxels, or triangular meshes. While visually impressive, these outputs are "dead" geometry—difficult for artists to modify precisely, lacking semantic structure, and poorly suited for procedural pipelines. Furthermore, while LLMs are excellent at writing code, the Blender Python API is notoriously complex and version-sensitive. Standard LLMs often "hallucinate" outdated functions or fail to handle complex spatial logic. LL3M addresses these challenges by reframing 3D generation as a collaborative, multi-stage software engineering problem, transforming asset generation into an interpretable, "white-box" task.
Methodology
LL3M employs a team of specialized agents powered by state-of-the-art models like GPT-4o and Claude 3.7. The process follows three distinct phases:
- Initial Creation Phase: A Planner Agent breaks the user's prompt into subtasks. A Retrieval Agent uses BlenderRAG—a custom knowledge base of 1,729 official documentation files—to pull up-to-date API documentation, ensuring the Coding Agent writes executable, version-correct Python code.
- Auto-Refinement Phase: The system renders the initial model from multiple angles. A Critic Agent (using a Vision-Language Model) identifies visual flaws—such as floating components or missing textures—and suggests code fixes. A Verification Agent then confirms the implementation of these fixes.
- User-Guided Refinement: Unlike one-shot generators, LL3M stays "in the loop." Users can provide follow-up text prompts to modify existing code rather than regenerating the asset from scratch.
Key Results and Insights
By representing 3D assets as Python scripts, the model becomes inherently interpretable. A user can adjust variables in the code to change dimensions or materials with a level of precision impossible in standard mesh-based generators. Key findings from our evaluation include:
- BlenderRAG Performance: Providing up-to-date documentation led to a 5x increase in the use of complex Blender operations and reduced the total error rate in code execution by 26%.
- Efficiency: While initial creation and auto-refinement take roughly 10 minutes, subsequent user-guided edits are extremely fast, averaging only 38 seconds per instruction.
- Qualitative Superiority: In comparisons with single-agent baselines, LL3M produced assets with significantly higher geometric detail and better adherence to complex prompts.
Limitations and Future Work
The "Critic" agent occasionally struggles with complex 3D spatial reasoning due to the inherent limitations of 2D vision models. Additionally, while LL3M excels at individual assets, extremely large-scale environments would require more advanced hierarchical planning. Future work will focus on improving VLM spatial reasoning to further reduce the need for human intervention in complex modeling tasks.
Summary updated