Code4Scene: Benchmarking Coding Agents for Constructing and Editing 3D Scenes
Xiaokang Ye, Siddhant Hitesh Mantri, Zimeng Chen, Edward Zhang, Zhaoxu Zheng, Yuanheng Li, Yizhao Chen, Tianyang Huang, Lianhui Qin
Abstract
Frontier coding agents can now write and execute code that authors 3D environments, but whether they reliably understand 3D structure and precisely control scene state remains unclear. The generated 3D scene is a persistent, executable artifact: a convincing render can hide incorrect spatial relations, intersecting objects, or unintended modifications. We introduce Code4Scene, a benchmark of 170 Unreal Engine cases built from human-assembled scenes that evaluates coding agents on two complementary settings under a shared execution interface. Construction tests scene-level spatial reasoning from open-ended language specifications, where many realizations are valid; editing tests precise control of scene state, where the agent must recover the target scene from reference images while preserving everything else. Rather than scoring code or rendered views, Code4Scene evaluates the generated engine-native scene for task fulfillment, artifact integrity, and static physical validity, with edits additionally compared against withheld ground truth. Across 14 coding-agent systems on the 83-case public set, construction and editing performance are strongly correlated but not interchangeable (Spearman ): Claude Fable 5.1 leads construction, Gemini 3.8 Flash leads editing. Spatial Composition is the weakest construction category for every agent, while editing remains imprecise: the best Repair F1 is only 0.562, and 34.2% of edits that fully recover the target still introduce unintended changes elsewhere in the scene. These results expose a gap between plausible 3D generation and reliable spatial reasoning and state control. The project webpage is at https://simworld.org/code4scene.
Create a lesson
Metadata
- Comments
- 46 pages, including appendices. v2 updates the benchmark to 170 cases and revises the evaluation results
Related papers
AGL-SKILL: Coding Harnesses as Agentic Optimizers
Shared title terminologycs.AIRyan Tsui, Yuge Zhang, Yuqing Yang
Beyond Static Charts: Benchmarking Interactive Chart-to-Code Generation for MLLMs
Shared title terminologycs.AIYuhan Bian, Haoyu Liu, Siyu Li et al.
GameDojo: Benchmarking Real-Time Interactive Agents in Video Games
Shared title terminologycs.AIKuan Zhang, Zhihao Yang, Yukun Chen et al.
CARE-3D: Reinforcement Learning for Evidence Grounded Agentic Reasoning in Situated 3D Scenes
Shared title terminologycs.AIXiaoqian Hu, Ruihong Qiu, Yanran Tang et al.
CompMat-Bench: Benchmarking AI Agents for Computational Materials Science
Shared title terminologycs.AIChenmu Zhang, Levi Felix, Jun-Jie Zhang et al.
OSWorld-Science: A Benchmark of Computer Use Agents for Learning and Using Scientific Software
Shared title terminologycs.AIDingyuan Dai, Heli Qi, Lei Liu et al.