TL;DR
ShapeCraft introduces a multi-agent LLM framework that transforms natural language prompts into structured, textured, and fully interactive 3D assets by generating executable procedural code. By decomposing complex descriptions into a novel Graph-based Procedural Shape (GPS) representation, it enables parallel component modeling, automated visual self-correction, and high-quality physically-based texturing.
What Problem Does This Paper Address?
While text-to-3D generation has advanced rapidly, existing pipelines generally fall into two categories, both of which are impractical for real-world artistic workflows:
- Optimization-based methods (like Score Distillation Sampling) optimize implicit representations to extract meshes via isosurfacing, frequently resulting in dense, messy tessellations, topological defects, and a lack of semantic part segmentation.
- Autoregressive models directly generate triangle sequences but yield monolithic, unmodifiable meshes that cannot be easily adjusted or animated.
To be production-ready, 3D artists need well-structured geometry with clean topology that can be easily edited or animated. Procedural modeling (generating shapes via code scripts) solves this, but LLMs typically struggle to write accurate 3D code from long, complex text prompts due to a limited capacity for spatial reasoning. ShapeCraft bridges this gap by structuring the LLM's reasoning space.
Methods
ShapeCraft coordinates three specialized LLM agents through a central data structure called the Graph-based Procedural Shape (GPS) representation.
- GPS Representation: Instead of tackling a massive modeling task all at once, the system breaks down an object into a flat, single-level graph of independent geometric components rooted in a virtual root node. Each node contains a geometric description, positional description, bounding volume parameters, and an executable Blender API script.
- The Multi-Agent Pipeline:
- Parser Agent: Decomposes the initial user prompt into the hierarchical components of the GPS graph.
- Coder Agent: Generates bounding boxes and writes the corresponding Blender Python code for each component. It utilizes a multi-path sampling strategy to explore alternative modeling sequences in parallel.
- Evaluator Agent: A vision-language model (VLM) that renders the generated components from multiple angles, scores them, and provides textual feedback to guide the Coder through iterative self-correction loops.
- Component-Aware BRDF Painting: Once the geometry is finalized, ShapeCraft applies a component-aware Score Distillation Sampling (SDS) process. It optimizes a learnable texture field mapping UV coordinates to Bidirectional Reflectance Distribution Function (BRDF) parameters (albedo, roughness, metalness), ensuring realistic surface-light interactions.
To keep the code concise and maximize the LLM's reasoning context window, the authors also developed a suite of thin-wrapper utility methods over the standard Blender API.
Datasets
The authors evaluated ShapeCraft using a benchmark subset of 26 long-form functional prompts derived from the MARVEL-40M+ dataset (which itself originates from Objaverse). These prompts feature highly detailed, multi-part descriptions of objects like airplanes, sofas, and electronics.
Key Insights and Ideas
- Structural Flattening for Parallelism: While objects are parsed hierarchically (e.g.,
chair$\rightarrow$upper body$\rightarrow$backrest), the GPS representation flattens this into a depth-1 graph. This allows the framework to treat each part as a self-contained, independent sub-task that can be modeled in parallel without the LLM losing track of the global context. - Multi-Path Exploration Mitigates LLM Fragility: By running the Coder agent at a higher temperature, the system samples multiple distinct code paths. The VLM Evaluator then acts as a pruning mechanism, selecting the most geometrically sound path and preventing a single LLM hallucination from ruining the entire asset.
- Code as an Interaction Layer: Because the final output is a clean, human-readable Python script rather than a dense point cloud or implicit field, users can directly modify parameters (like changing the number of shelves on a bookcase) or prompt the LLM to inject animation keyframes post-generation.
Key Results
ShapeCraft was compared against optimization baselines (MVDream), autoregressive models (LLaMA-Mesh), and prior LLM-based code generators (3D-PREMISE, CADCodeVerify, BlenderLLM).
- Quantitative Superiority: ShapeCraft achieved the highest Intersection-over-Ground-Truth (IoGT) score of 0.471, the best CLIP Score (27.27), and the highest VQA Pass Rate (0.44) on the MARVEL subset.
- Efficiency: ShapeCraft generated high-quality assets in an average of 11.68 minutes, significantly outperforming optimization-based methods like MVDream, which took over 32 minutes and produced unstructured, uneditable meshes.
- Downstream Versatility: The paper demonstrates that the generated assets can be instantly animated (e.g., making a laptop screen close or a fridge door open) simply by asking an LLM to append a new method to the existing shape program.
Limitations and Future Work
- Organic Geometry Bottleneck: ShapeCraft relies on a library of procedural primitives and operations. Consequently, it struggles to generate highly complex, organic shapes like animal wings or tails. The authors suggest mitigating this by delegating organic sub-tasks to native 3D generation models (like Hunyuan3D) and fitting them back into the GPS bounding boxes.
- Prompt Sensitivity: The framework is highly dependent on prompt quality. Ambiguous prompts disrupt the Parser's decomposition, brief prompts limit the Evaluator's visual feedback, and overly "creative" prompts can confuse component placement.
- Lack of Precise Measurement Feedback: The current VLM evaluation loop provides qualitative feedback but does not incorporate exact metric measurements, which can occasionally lead to suboptimal CAD designs where high precision is required.
Summary updated