Testing a New Generation of Coding LLMs: Building a Walkable 3D Space with Code

    This article evaluates how modern coding LLMs are moving from text generation toward verifiable delivery through "broad coding"—turning non-text objects such as 3D geometry, materials, and interaction rules into programmable structures. Using a test task that builds a complete hotpot restaurant from a roughly 450-square-meter floor plan, it explains the core challenges, a four-step modular workflow with a visual self-check loop, common failure patterns, and acceptance criteria. Readers will find practical engineering guidance for producing code-based 3D scenes that behave like deliverable assets rather than one-off scripts.

    1. Background: Coding Is Shifting from Text Generation to Verifiable Delivery

    In the past, a coding model was mainly judged by whether it could produce a runnable function or autocomplete common syntax. Once the target expands from a single file to a complete project, the evaluation criteria change: the model must not only generate code but also maintain consistency under constraints and self-correct based on runtime results.

    “Broad coding” is generally understood in the industry as abstracting non-text objects—visuals, 3D geometry, materials, interaction rules, and physical constraints—into programmable structures that the model builds through code. This places three requirements on the model:

    1. Structured decomposition: breaking vague requirements into modules, hierarchies, and dependencies.
    2. Constraint preservation: staying within hard constraints such as coordinates, proportions, scale, and circulation paths without drifting.
    3. Visual feedback loop: being able to “see” rendered output and catch issues that are hard to expose in code alone.

    2. Task Setup: Building a Walkable 3D Space from Scratch with Code

    To test these capabilities, a typical task can be designed: given the floor plan of an unfinished space of about 450 square meters, use a general-purpose 3D rendering library to build a complete hotpot restaurant from scratch, with support for switching between “unfinished” and “renovated” states from multiple camera positions.

    The difficulty concentrates in four areas:

    • Immutable constraints: load-bearing columns, door and window openings, and main aisle width are fixed.
    • Multi-zone coordination: the storefront, main hall, private rooms, and dining areas must follow a unified layout.
    • State switching: the same camera position must align strictly across both states.
    • Detail credibility: close-up details such as pot partitions and cup wall thickness must hold up.

    3. Implementation Path: Modular Building with a Visual Self-Check Loop

    The workflow can be split into four steps to form a traceable engineering pipeline.

    1) Establish the spatial skeleton. First define the coordinate system and units (for example, 1 unit = 1 meter), and write load-bearing structures, aisle centerlines, and opening positions as configuration constants. All later modules reference the same configuration to avoid drift caused by hardcoding in multiple places.

    1. // Example: centralized spatial configuration, read-only for all modules
    2. const SPACE = {
    3. unit: "meter",
    4. axis: { main: 2.6 }, // main aisle width
    5. columns: [[-4,0],[-4,6],[4,0],[4,6]],
    6. doors: { hallToPrivate: { x: 0, z: 8, w: 1.2 } }
    7. };

    2) Model by zone. Encapsulate the storefront, main hall, and private rooms as separate functions that take the same configuration as input and output scene child nodes. The renovated and unfinished states share the same skeleton and only switch material and furniture layers.

    3) Render and self-check. Take a screenshot and compare after each module is completed, focusing on occlusion relationships and opening alignment. Plain text review can hardly catch problems like “a grille blocking a doorway,” while visual feedback can significantly shorten the correction cycle.

    4) Deliver interaction. Provide multiple camera positions and free dragging so reviewers can repeatedly compare both states from the same viewpoint.

    4. Common Issues and Acceptance Criteria

    • Clipping and misalignment: often caused by mixing local coordinate systems; unify to world coordinates before applying offsets.
    • Proportion distortion: manage scale centrally and forbid magic numbers inside submodules.
    • State inconsistency: both states share the skeleton configuration, and differences are allowed only in the decoration layer.
    • Rough close-ups: reserve wall thickness and bevel parameters for small objects such as cups and pots to avoid looking real from afar but fake up close.

    Acceptance can use three metrics: zero constraint offset (columns and aisles unchanged), zero jump on switching (aligned at the same camera position), and zoomable detail (no broken surfaces in close-ups).

    5. Engineering Recommendations

    In real projects, it is advisable to adopt “centralized configuration, modular functions, visual rendering, and automated validation” as the default standard, and to incorporate screenshot comparison into the continuous integration pipeline. When combined with general capabilities such as object storage, log services, and monitoring alerts from Baidu AI Cloud, generated artifacts, rendering logs, and failure samples can be archived together for regression evaluation and team collaboration. This way, the output of a coding model becomes closer to a deliverable engineering asset rather than a one-off script.