Evaluating Large Models on 3D Scene Reconstruction: Methods and Practice

    This article presents a repeatable, quantifiable method for evaluating how well large language models reconstruct a real-world scene as a browser-runnable 3D scene from a single reference photo. It covers the evaluation goals, a fixed technical stack and delivery constraints, a reusable prompt template that embeds the scoring criteria, a 100-point scoring breakdown across composition, lighting, materials, text/UI, interactivity, and engineering quality, a worked example based on a nighttime clock-tower landmark photo, common failure modes, and troubleshooting order. The focus is not model ranking but a transferable benchmark that maps directly to front-end generation, visualization, and automated delivery work.

    1. Background and Goals

    As large models continue to improve at code generation, a single question—“Can it write code?”—is no longer enough to measure real engineering capability. A more demanding task is to give a model a photo of a real scene and ask it to generate a 3D scene that runs directly in a browser. This type of task simultaneously tests visual understanding, spatial reasoning, graphics programming, and adherence to engineering constraints, which makes it a strong candidate for a composite evaluation sample.

    This article uses a nighttime photo of a clock-style landmark as input and designs an evaluation workflow around “single-file 3D scene reconstruction.” The goal is not to rank specific models, but to establish a repeatable, quantifiable, and transferable evaluation method that allows different models and versions to be compared side by side.

    2. Evaluation Environment and Technical Constraints

    To keep results reproducible, the evaluation must fix the technology stack and delivery format. The following constraints are recommended:

    • Deliver a single HTML file that runs in a browser on double-click.
    • Base 3D rendering on a mainstream modular WebGL wrapper library, with the version pinned via a CDN import map to avoid version drift.
    • Generate all geometry, materials, and lighting procedurally in code.
    • Do not reference external model files, textures, or large inline binary image data.
    • Support mouse-drag rotation and scroll-wheel zoom.
    • Produce no console errors.

    The purpose of these constraints is to compress the “generated result” into a single auditable code unit. Any dependency on external resources is immediately exposed, which prevents a model from bypassing genuine modeling and coding ability by “referencing ready-made assets.”

    3. Prompt Design: Putting the Criteria Up Front

    The reliability of the evaluation depends heavily on prompt quality. It is recommended to first use a general-purpose AI coding tool to refine the prompt into a structured form, then submit it to the model under test. A reusable prompt skeleton is as follows:

    1. I will give you a reference image. Reconstruct the 3D scene in the image using a single HTML file.
    2. Requirements:
    3. 1) Use a modular 3D library with a pinned version, imported via an import map;
    4. 2) Generate all geometry, materials, and lighting procedurally; no external models/textures/inline images;
    5. 3) Support drag-to-rotate and scroll-wheel zoom;
    6. 4) Runs on double-click with no console errors;
    7. 5) Composition, perspective, and light direction must match the reference image;
    8. 6) Reproduce at least two material characteristics;
    9. 7) Draw text and UI in the image with code;
    10. Output: first summarize the scene and key visual elements in one sentence, then provide the complete code.

    Writing the scoring criteria into the prompt significantly reduces “incomparability caused by the model improvising freely,” keeping the evaluation focused on the model’s own capability.

    4. Scoring Dimensions and Suggested Weights

    A 100-point scale is recommended, divided as follows:

    1. Composition and perspective (20 points): whether the subject position, camera placement, and perspective relationships match the reference image.
    2. Lighting consistency (20 points): whether the main light direction, color temperature, and fill-light relationships are correct.
    3. Material reproduction (20 points): at least two identifiable material characteristics, such as metallic reflection, wet surfaces, or fabric texture.
    4. Text and UI rendering (15 points): whether everything is drawn with code rather than textures.
    5. Interactivity and runnability (15 points): whether dragging, zooming, and animation work correctly.
    6. Engineering quality (10 points): single file, no external dependencies, zero console errors.

    Each dimension is further split into three levels—“fully reproduced / partially reproduced / not reproduced”—to keep scoring consistent when multiple reviewers cross-check.

    5. Case Execution

    Taking the nighttime landmark photo as an example, the model’s understanding is typically: a low-angle upward shot, the subject positioned to the right, warm spotlights illuminating the base and golden gears from below, cool blue steel trusses as fill light, brightly lit buildings in the background, and light strips and neon text in the foreground.

    At the code level, a qualifying implementation usually includes the following elements:

    • A low-angle perspective camera to simulate the upward shot.
    • A warm-colored spotlight as the key light, directed from below; a cool ambient light used only as fill.
    • Metallic gears using a high-metalness, low-roughness material; the road surface using low roughness with reflections to convey a wet look.
    • Neon and text generated as textures via Canvas and applied to planes, rather than external images.
    • Hand animation driven by the local time, reflecting “interactivity” rather than a static texture.

    A schematic structure is as follows:

    1. // Pseudocode: procedural scene skeleton
    2. scene.add(new THREE.PerspectiveCamera(45, w/h, 0.1, 100));
    3. const key = new THREE.SpotLight(0xffcc88, 2); // warm key light
    4. const fill = new THREE.HemisphereLight(0x88aaff, 0x000000, 0.4); // cool fill light
    5. // metallic material
    6. const gold = new THREE.MeshStandardMaterial({ color:0xffaa33, metalness:1, roughness:0.2 });
    7. // text texture generated by Canvas
    8. const tex = new THREE.CanvasTexture(drawTextCanvas('Celebration'));

    6. Common Failure Modes and Troubleshooting

    High-frequency issues during evaluation include: external resource dependencies not removed, versions not pinned causing runtime failures, light direction opposite to the reference image, text degrading into a texture, interaction events not bound, and warnings or errors in the console. The recommended troubleshooting order is “run first, then composition, then details”: first confirm it runs on double-click with no errors, then check camera placement and lighting, and finally assess material and text details.

    7. Conclusion

    The value of 3D scene reconstruction evaluation lies in turning the vague question of “how strong is the model” into actionable engineering metrics. By fixing technical constraints, front-loading the scoring criteria, and quantifying across dimensions, developers can make reliable comparisons across models and versions and map evaluation results directly to real-world scenarios such as front-end generation, visualization setup, and automated delivery.