gaoypeng/3dcodeverse
Official Codebase of 3DCodeVerse
What it solves
Creating 3D content typically requires manual modeling or complex tools. 3DCodeVerse treats 3D worlds as code, letting AI agents generate and refine 3D assets programmatically. It also addresses the problem that open models struggle to execute 3D code correctly — the project provides a training dataset and fine-tuning recipes that dramatically raise execution rates.
How it works
The core is the 3DCodeVerse Harness, a plugin for agent hosts like Claude Code, Codex, and Antigravity. The host agent writes code using its own model, while the plugin supplies skills and "3dcode" instruments to build, measure, render, gate, and score the output. Each round collects three kinds of feedback: execution logs, measurements (dimensions, contacts, collisions, kinematics, placement), and a vision-based judge using a rubric-guided VLM on multi-view renders. The score is computed from rubric weights, defect penalties, and measured caps; measurements override visual claims. A fix agent receives localized repair tasks, and the best-scoring round becomes the deliverable. Every round is recorded (successes, failures, repairs, preference pairs), which also feeds the dataset engine.
The project also includes the 3DCodeVerse-2M dataset (2 million examples) and fine-tuning code (based on LLaMA-Factory) for supervised fine-tuning and preference optimization. Results in the README show that fine-tuning on this dataset can raise execution rates from near-zero to over 90% on tasks like Blender, CadQuery, and Three.js.
Who it's for
Researchers and developers working on AI-generated 3D content, especially those interested in agentic coding, program synthesis, or improving open LLMs for structured code generation in 3D graphics. It also provides a practical plugin for anyone using Claude Code, Codex, or Antigravity who wants to generate 3D models by describing them in natural language.
Highlights
- Treats 3D creation as code, with a plugin-based harness that integrates into existing agent environments.
- Iterative feedback loop combining execution logs, physical measurements, and vision-based judging.
- Includes a 3DCodeVerse-2M dataset for training and preference optimization.
- Fine-tuning open models on the dataset can lift execution rates from ~0% to over 90% on several 3D coding benchmarks.
- Recorded full runs (successes, failures, repairs) serve as a data engine for further training.
Related
- Project
- Project
- Project
- Project