Testing 3D and General-Purpose Coding Capabilities of Chinese LLMs: A Practical Methodology

    This article presents a practical methodology for evaluating how well large language models handle 3D scene generation and effect simulation, two high-difficulty tasks that reveal real coding ability. It explains the shift toward general-purpose coding, where code acts as an intermediate representation layer, and introduces a three-tier prompt gradient, a four-dimension scoring framework, common failure modes, and engineering practices for turning generated output into reproducible prototypes. Readers will learn how to design verifiable prompts, assess visual and performance quality, and build a generate-validate-iterate loop.

    1. Background: Why Code Is Becoming a Universal Interface

    Over the past two years, competition among large language models has centered on text understanding and dialogue quality. The recent direction of technical progress, however, is shifting from “being able to answer” to “being able to construct.” General-purpose coding does not only mean writing business logic. It means the model can use code to describe video shots, game logic, three-dimensional spatial structures, and even physical simulation processes. Here, code serves as an intermediate representation layer: it translates vague natural-language intent into structured instructions that browsers, rendering engines, or simulators can execute.

    This shift has two direct consequences. First, the evaluation dimension expands from “whether the answer is correct” to “whether the artifact runs, is interactive, and is aesthetically sound.” Second, the engineering focus moves from single-shot generation quality to the stability of the generate-validate-iterate loop. Using 3D scene generation and effect simulation as samples of high-difficulty tasks, this article outlines a practical testing methodology.

    2. Test Design: Using High-Information-Density Tasks to Expose Real Capability

    Low-difficulty prompts can only verify whether something runs. High-information-density tasks expose the gaps in constraint following, spatial reasoning, and code organization. A three-tier task gradient is recommended:

    1. Single-point capability: Given a clear object and action, assess geometric modeling and basic animation.
    2. Scene composition: Add environment, lighting, and multi-object interaction to assess resource scheduling and rendering trade-offs.
    3. Open aesthetic: Provide only a theme without implementation details to assess design judgment and detail density.

    The following is an illustrative prompt structure. The key is to state verifiable constraints clearly rather than pile on adjectives:

    1. Task: Output a single self-contained HTML file using a general-purpose WebGL rendering approach.
    2. Subject: A pelican riding a bicycle, with recognizable beak and wing structures.
    3. Environment: A coastal highway at dusk, including road signs, palm trees, wild grass, a distant island, and a lighthouse.
    4. Interaction: Support mouse-drag orbit viewing with 360-degree rotation.
    5. Constraints: Do not reference any external asset files; all geometry and materials must be generated by code.
    6. Performance: Maintain an interactive frame rate in a standard laptop browser; avoid recreating objects every frame.

    3. Case One: “Closer-Look Quality” of 3D Characters and Environments

    The most valuable observation in the original test was not whether the model could generate a 3D pelican, but whether the scene held up under close inspection. Closer-look quality can be broken down into four verifiable indicators:

    • Structural soundness: Whether the proportions and connections of the beak, neck, wings, and legs are self-consistent, and whether clipping occurs during motion.
    • Material layering: Whether metal, fabric, road surface, and vegetation have distinguishable roughness and reflection responses.
    • Lighting consistency: Whether the direction, color temperature, and shadow length of the warm sunset light are unified, and whether sea-surface highlights match the light source.
    • Detail density: Whether the background includes secondary elements such as a lighthouse, birds, or creatures leaping out of the water, avoiding an empty scene.

    Notably, near game-quality water usually does not rely on external textures. It is approximated through a combination of multi-layer normal perturbation, Fresnel reflection, and screen-space refraction. If a model can autonomously choose an appropriate approximation strategy, it demonstrates structured invocation of rendering knowledge rather than simple asset stitching.

    4. Case Two: Engineering Constraints of Particle and Fluid Effect Simulation

    A volcanic eruption demo may look simple, but it simultaneously tests the particle system, noise functions, time stepping, and performance control. Evaluation should focus on:

    1. Time stability: Use a fixed time step or delta clamping to prevent frame-rate fluctuations from causing abrupt changes in eruption rhythm.
    2. Particle reuse: Reuse particles through an object pool to reduce runtime memory allocation and garbage-collection jitter.
    3. Parameter interpretability: Eruption intensity, wind speed, gravity, and similar values should be centralized as configuration items for easy tuning and reproduction.
    4. Visual layering: Smoke columns, lava flows, sparks, and ground light bounce should be handled in layers to avoid a single particle cloud blurring into a mass.

    Reference configuration snippet:

    1. const config = {
    2. emissionRate: 1200, // particles emitted per second
    3. lifetime: [1.5, 3.2], // particle lifetime range
    4. gravity: -0.6,
    5. wind: { x: 0.15, z: 0.0 },
    6. noiseScale: 0.35
    7. };

    5. Evaluation Framework: Turning Subjective Impressions into Verifiable Metrics

    To make test conclusions reproducible, a four-dimension scoring sheet is recommended, with each dimension scored from 1 to 5:

    • Runnability: Whether it passes on the first attempt and whether the console is free of errors.
    • Constraint adherence: Whether hard requirements such as self-containment, no external assets, and interaction mode are met.
    • Visual completeness: Composition, lighting, materials, and detail density.
    • Performance health: Frame-rate range, memory growth curve, and interaction latency.

    Also record the number of iterations and manual interventions. If a model converges to a high score within two rounds, its self-correction ability is strong. If the same type of error must be pointed out repeatedly, automated validation should be added when moving toward engineering deployment.

    6. Common Failure Modes and How to Avoid Them

    • Resource hallucination: Referencing nonexistent external files or interfaces, resulting in a blank screen. Avoid it by enforcing self-containment in the prompt and adding static scanning to the pipeline.
    • Performance collapse: Creating geometry and materials every frame. Avoid it by requiring object pools and resource caching.
    • Physical distortion: Particles without gravity or damping, producing motion that defies intuition. Avoid it by explicitly providing physical parameter ranges.
    • Missing interaction: Rendering only a static scene. Avoid it by listing interaction as an acceptance criterion.

    7. Engineering Implementation Recommendations

    When introducing this capability on the enterprise side, treat it as an accelerator from requirements to prototypes rather than a final deliverable. A recommended workflow is: structure natural-language requirements, generate a first version with the model, run automated static checks and screenshot regression, conduct human aesthetic review, and archive versions. Supporting infrastructure can use general-purpose capabilities, such as object storage for artifact versions, container platforms for headless-browser rendering clusters, and logging services with monitoring alerts to track failure rates and latency. Baidu AI Cloud can provide general cloud-native components for this “generate + render + observe” pipeline, and specific choices should be evaluated against the team’s existing technology stack.

    8. Conclusion

    3D generation and effect simulation are only surface phenomena. What is truly validated is the model’s ability to translate intent into executable structures. For developers, the pragmatic approach is not to chase a single impressive result, but to establish prompt standards, automated validation, and an iteration loop. When generated artifacts can be reliably reproduced, measured, and integrated, the value of code as a universal interface will be fully released.