Testing Chinese LLMs on 3D and General-Purpose Coding: A Practical Evaluation Framework

    This article examines how Chinese large language models perform on two demanding tasks: generating interactive 3D web pages and general-purpose coding demos. It explains why single-file 3D scenes have become a benchmark for real deliverables, outlines a reproducible test methodology with fixed use cases and a four-part prompt structure, and summarizes key observations on visual detail and interaction quality. A six-dimension scoring table and guidance on moving from demos to production systems are also included for developers and technical decision-makers.

    1. Background: Why “Generate an Interactive 3D Page” Became a New Capability Benchmark

    Chinese large language models have recently stabilized in general conversation and code completion. As a result, industry attention is shifting from “can it answer correctly” to “can it deliver an artifact that runs, looks good, and is easy to modify.” An interactive 3D web demo is a good test of this shift: it requires the model to understand natural-language intent, master the graphics rendering pipeline, organize non-linear scene resources, and complete both resource orchestration and interaction logic in a single standalone file.

    There are three layers of difficulty in this kind of task:

    • Semantic layer: A prompt such as “draw a pelican riding a bicycle, in 3D” contains four implicit constraints: subject, action, style, and medium. The model has to fill in the missing information on its own.
    • Rendering layer: It involves general graphics knowledge such as geometry construction, materials and lighting, camera and controls, animation loops, and post-processing.
    • Engineering layer: The output must be a single-file web page that opens directly, cannot depend on external assets, and needs readable, tunable code structure.

    2. Test Method: Turning “Imagination” into Reproducible Test Cases

    To make the conclusions reproducible, it helps to break subjective impressions into a fixed set of test cases, each with a clear input, constraints, and acceptance criteria.

    1. Signature case: Build a volcanic eruption simulation with a mainstream 3D rendering library, requiring single-file output, controllable particle systems, and layered lava flow and smoke.
    2. Aesthetic challenge: Generate a cinematic 3D scene from a single natural-language prompt, requiring 360-degree drag-to-orbit viewing and natural subject motion.
    3. General-purpose coding: Given a short data structure and algorithm description, generate a demo page with a UI to validate the generalization of “code as an interface.”

    For prompt design, a four-part structure is recommended: role + goal + constraints + acceptance criteria.

    1. You are a senior graphics engineer.
    2. Goal: Generate a single-file 3D scene that opens directly in a browser.
    3. Constraints: Do not reference any external assets; use procedural geometry and textures; provide orbit controls.
    4. Acceptance: Subject motion is coherent; lighting has depth; frame rate stays at or above 30 on mid-range devices.

    3. Key Observations: From “It Runs” to “It Holds Up Under Close Inspection”

    The most valuable signal in testing is not whether the model can output hundreds of lines of code, but whether it has the ability to self-check aesthetics and details. Better outputs usually share the following traits:

    • Complete scene narrative: Sunset, a coastal highway, road signs, palm trees, and wild grass form a unified color palette, with the subject and environment complementing each other.
    • Procedural water: Sea color changes with viewing angle and lighting; a distant lighthouse and circling birds, and even dolphins leaping out of the water, are all generated by code rather than stacked textures.
    • Natural interaction: Camera damping feels right when dragging to observe, subject motion and expression transitions are smooth, and there is no obvious clipping or jitter.

    In a classic case like the volcano simulation, a strong implementation breaks the eruption into five stages: lava ejection, gravity-driven fall, cooling and crust formation, rising smoke, and flickering light. A parameter panel exposes eruption intensity, particle count, and wind direction for repeated tuning. This kind of structured thinking is the dividing line between “generating code” and “generating maintainable engineering.”

    4. Evaluation Dimensions: A Six-Dimension Scorecard

    Dimension Focus Suggested Weight
    Runnability Opens and runs as a single file with no missing dependencies 25%
    Visual quality Composition, color, materials, lighting depth 20%
    Detail density Whether background, particles, water, shadows, etc. hold up 15%
    Interaction experience Control feel and animation continuity 15%
    Code quality Layered structure, naming, tunable parameters 15%
    Generalization Whether it still delivers reliably after switching topics 10%

    5. Engineering Implementation: Turning a Demo into a Deliverable System

    Once a model can reliably produce high-quality single-file scenes, what enterprises really care about is how to plug them into a production pipeline. Common practices include:

    • Hosting generated results in a componentized frontend, using a container platform for canary releases and elastic scaling.
    • Storing static assets and generated artifacts in object storage, paired with a content delivery network to reduce first-screen latency.
    • Collecting rendering exceptions and interaction telemetry with a logging service, and setting thresholds on error rates and frame-rate fluctuations with monitoring and alerting.
    • Putting prompt templates, test case sets, and scorecards under version control to form a sustainable regression evaluation pipeline.

    In related practice at Baidu AI Cloud, this kind of “generate-host-observe-iterate” loop is typically split into four independent capability lines: model service, storage, distribution, and observability. This makes it easy to combine them on demand and avoid being locked into a single vendor.

    6. Conclusion and Recommendations

    3D and general-purpose coding capabilities mark the evolution of large language models from text assistants into “producers of interfaces and experiences.” For developers, the recommendation is not to judge only how impressive a single demo looks, but to build a fixed test case set and a six-dimension scorecard, focusing on detail density, code maintainability, and generalization stability. For technical decision-makers, the recommendation is to place generation capabilities inside an engineering framework that is observable, rollback-capable, and measurable, then gradually extend to scenarios such as gamified showcases, digital twins, and simulation training. Code is becoming a universal interface connecting the visual, spatial, and physical worlds, and whoever standardizes this interface will hold the efficiency advantage of the next stage.