Abstract
ShapeCraft is a multi-agent Large Language Model (LLM) framework designed to generate high-quality 3D assets by synthesizing procedural code rather than unstructured meshes. By decomposing complex natural language prompts into a Graph-based Procedural Shape (GPS) and utilizing iterative visual feedback, the system produces 3D models that are inherently structured, textured, and interactive. This approach bridges the gap between automated generation and professional editing workflows, outperforming existing methods in geometric accuracy, prompt adherence, and generation efficiency.
Introduction
Generating 3D models from text traditionally follows two paths: optimization-based methods (such as Score Distillation Sampling) that produce implicit representations, or autoregressive methods that generate raw triangle sequences. Both approaches suffer from a "black box" problem: the resulting meshes often lack semantic structure, possessing messy topology and no distinction between functional parts (e.g., the "leg" vs. the "seat" of a chair). For professional artists, such meshes are difficult to edit or animate. Furthermore, LLMs often struggle with the complex spatial reasoning required to place 3D components accurately based on long-form descriptions. ShapeCraft addresses these challenges by treating 3D modeling as a structured programming task.
Methodology
Graph-based Procedural Shape (GPS)
The core of ShapeCraft is the GPS representation. Instead of generating a monolithic block of code, the system decomposes a 3D object into a flat graph where a root node connects to various semantic components. For example, a "fridge" node might connect to "door," "handle," and "cabinet" nodes, each defined by its own procedural parameters.
Multi-Agent Framework
ShapeCraft utilizes three specialized LLM agents to manage the generation pipeline:
- The Parser: Decomposes the user's natural language prompt into the GPS graph structure, establishing the hierarchy and spatial relationships between parts.
- The Coder: Generates executable Blender API code for each node. It employs a "multi-path sampling" strategy, creating several versions of a component to identify the most accurate fit.
- The Evaluator: A Vision-Language Model (VLM) that inspects renders of the generated components. It provides quantitative scores and qualitative feedback (e.g., "the handle is floating too far from the door") to guide the Coder through iterative refinement.
Component-aware Score Distillation (CASD)
Once the geometry is finalized, ShapeCraft applies a texturing module called CASD. This module uses a diffusion model to apply textures, utilizing loss functions at both the global and individual component levels. This ensures that specific details—such as "rust spots on a fan grille"—are semantically aligned with the correct parts of the model.
Evaluation and Results
The authors evaluated ShapeCraft using a subset of the MARVEL-40M+ benchmark, focusing on 26 complex, functional prompts. Performance was measured via Intersection-over-Ground-Truth (IoGT), CLIP Score, and a custom VQA Pass Rate (where a VLM assesses if the model meets prompt requirements).
- Superior Accuracy: ShapeCraft achieved an IoGT of 0.471 and a CLIP Score of 27.27, outperforming baselines such as 3D-PreMise, LLaMA-Mesh, and MVDream.
- Prompt Following: The system reached a 44% VQA Pass Rate, significantly higher than monolithic LLM-based approaches, demonstrating its ability to handle multi-part instructions.
- Efficiency: While optimization methods like MVDream can take over 30 minutes, ShapeCraft completes the generation process in approximately 11.7 minutes.
- Interactivity: Because the output is a "shape program," the models are fully parametric. The LLM can modify the code post-generation to perform functional tasks, such as opening a laptop screen or adjusting the height of a chair.
Discussion and Limitations
ShapeCraft demonstrates that code-based generation provides a "clean" source of truth for 3D assets. By breaking tasks into manageable sub-tasks via the GPS graph and closing the loop with visual feedback, the system mitigates common LLM hallucinations and spatial errors.
However, limitations remain. The system currently relies on procedural primitives (cubes, cylinders, etc.), making it less effective for highly organic or "soft" geometry like foliage or animal anatomy. Additionally, the Coder is constrained by the scope of the provided Blender API wrappers. Future work may involve incorporating pre-made external assets into the GPS graph to handle organic details while maintaining structured, agentic control over the overall scene.
Summary updated