HoloCode

A Code-Centric Multi-Agent Framework for Image-to-3D Scene Generation

HoloCode turns a single RGB image into an editable Blender scene by predicting executable layout code, binding visible objects to 3D geometry, and refining the result from rendered feedback.

Executable scene state: object identities, locations, rotations, and scales are represented as Blender Python code.
Layout-first reasoning: the Arranger predicts a shared 3D layout before detailed mesh selection or generation.
Render-guided refinement: the Refiner edits code to correct floating objects, interpenetrations, scale, and view mismatches.
Paper Method Code Coming Soon
HoloCode overview teaser

Teaser

HoloCode generates editable 3D scenes from a single image through executable Blender Python code.
HoloCode generates 3D scenes from an image by predicting executable, object-centric Blender Python code. Each create command imports a mesh asset and sets editable 3D transforms.
TL;DR: HoloCode separates scene-level layout reasoning from object-level geometry, then keeps the whole result editable as executable Blender Python code.

Abstract

Image-to-3D scene generation must recover both object geometry and plausible spatial relations. Common object-wise pipelines generate each object separately and then assemble the results, which can preserve local details but often leads to floating objects, interpenetrations, missing contacts, or implausible relative scales. HoloCode is a code-centric multi-agent framework that predicts executable Blender Python layout code from a single image and 2D localization cues. An Arranger Agent estimates object identities and 3D transforms, a Modeler Agent binds each object to retrieved or generated geometry, and a Refiner Agent renders the scene and edits the code from visual feedback. The code representation exposes object names, positions, rotations, and scales, making generated scenes interpretable and directly editable.

Why Layout Code?

Object-wise image-to-3D generation can produce plausible isolated meshes, but scene generation also requires support, contact, depth ordering, scale, and orientation to agree across all objects. HoloCode recovers these scene variables explicitly before binding detailed meshes.

Object-wise 3D generation failures including floating objects and interpenetrations.
Object-wise assembly can create spatial conflicts. HoloCode reasons over all visible objects in a shared executable layout.

Method

HoloCode uses one executable scene representation across three stages. The Arranger predicts a layout script, the Modeler preserves that layout while binding meshes, and the Refiner renders the current scene and edits the code to fix residual visual-spatial errors.

Overview of the HoloCode multi-agent inference pipeline.
Overview of the HoloCode multi-agent inference pipeline: layout programming, layout-preserving geometry binding, and render-guided code refinement.
A

Arranger

Predicts object-level Blender Python layout code from the image and ordered 2D boxes.

M

Modeler

Routes each object to asset retrieval or image-to-3D diffusion, while preserving the predicted transform.

R

Refiner

Compares the input view with a render and edits locations, rotations, scales, and support relations in code.

Executable scene representation
create(name="0.glb", loc=(0.42, -1.35, 0.48),
       rot=(0.0, 0.0, -0.71), scale=(0.82, 0.80, 0.96))

create(name="1.glb", loc=(0.05, -1.10, 0.76),
       rot=(0.0, 0.0, 0.02), scale=(1.44, 0.82, 0.74))

Interactive 3D Visualization

This gallery contains only HoloCode outputs. The meshes are simplified for web interaction; the full-resolution assets are kept offline.

Training

HoloCode builds Blender Python code datasets from SAGE and 3D-FRONT annotations. Supervised fine-tuning teaches valid code generation, while GRPO rewards executable syntax and spatial alignment through mean 3D IoU and thresholded object accuracy.

Executable Format

Rewards scripts whose create calls can be parsed and executed by the restricted evaluator.

Spatial Alignment

Scores oriented 3D boxes derived from loc, rot, and scale.

Render Feedback

Supervises code repair from imperfect scripts and rendered views, aligning visual mismatches with code edits.

Training reward curve for HoloCode.
GRPO optimization improves task-level spatial rewards beyond token-level code imitation.

Results

Experiments evaluate both 3D layout estimation and complete image-to-3D scene generation. HoloCode improves spatial plausibility while preserving object-level fidelity, especially in scenes where independent object assembly struggles with global consistency.

Qualitative HoloCode results on SAGE and 3D-FRONT.
Qualitative visualization on SAGE and 3D-FRONT for layout estimation and image-to-3D scene generation.
Out-of-domain qualitative HoloCode results.
Cross-domain examples show that executable layout code can generalize beyond the training domains.
Render-guided Refiner examples for HoloCode.
The Refiner corrects residual layout errors by editing the executable scene code from rendered feedback.

Code-Centric Editing

Because every object remains a line of executable code, downstream edits can be localized: deleting, copying, moving, rotating, or resizing a target object does not require regenerating the whole scene.

Code-centric 3D scene editing examples.
Code-centric 3D scene editing by modifying object-level commands while preserving unrelated objects.