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

    This article presents a practical framework for evaluating Chinese large language models on 3D scene generation and general-purpose coding. It breaks subjective impressions into six verifiable dimensions, illustrates the approach with two test cases—a high-fidelity interactive 3D scene and a volcanic eruption simulation—and offers engineering advice on performance, self-contained assets, observability, and safety. Readers will learn how to build reproducible evaluation sets and fallback strategies instead of chasing a single impressive result.

    1. Background: Why Code Is Becoming a Universal Interface

    Over the past two years, LLM benchmarks have mostly focused on text Q&A and code completion. But once a model combines visual understanding with generative coding, its output is no longer limited to function snippets. It can directly produce runnable interactive pages, 3D scenes, and lightweight simulations. At that point, code becomes a universal interface connecting video, games, 3D space, and physics simulation.

    The value of this capability is straightforward: a stakeholder describes intent in natural language, and the model returns a self-contained HTML file that runs in the browser, supports drag-to-orbit viewing, and can be iterated on repeatedly. For developers, the evaluation focus should shift from “does it run” to “does it show aesthetic sense, structural clarity, and physical plausibility.”

    2. Evaluation Method: Turning Subjective Feel into Verifiable Dimensions

    To avoid vague conclusions like “looks nice,” it helps to split evaluation into six dimensions while fixing the prompt and runtime environment to keep results reproducible.

    1. Intent understanding and information completion: Does the model make reasonable defaults when information is missing (time, weather, materials)?
    2. Scene and composition: Are the camera, layering, and visual focus clear?
    3. Lighting and materials: Are light direction, color temperature, reflection, and roughness coordinated?
    4. Physics and motion: Do gravity, collision, and fluids use industry-standard approximation models?
    5. Performance and runnability: Are draw calls, geometry complexity, and frame-rate tiers under control?
    6. Safety and compliance: How are external resources, script injection, and private data handled?

    A sample evaluation record structure:

    1. {
    2. "prompt": "Generate a self-contained interactive 3D scene page",
    3. "dimensions": {
    4. "intent": 0.0,
    5. "composition": 0.0,
    6. "lighting": 0.0,
    7. "physics": 0.0,
    8. "performance": 0.0,
    9. "safety": 0.0
    10. },
    11. "notes": "Record default assumptions and failure points"
    12. }

    3. Case One: A High-Aesthetic Interactive 3D Scene

    The first case is a classic meme prompt: generate a pelican riding a bicycle, in 3D and freely observable. The difficulty is not whether it can be generated, but whether it still holds up when you zoom in.

    High-quality output typically has these traits:

    • Complete environmental storytelling: a coastal highway, road signs, palms, and wild grass form foreground and background layers.
    • Unified lighting: warm low-angle light contrasts with cool-toned water at a consistent color temperature.
    • Self-consistent detail: distant islands and a lighthouse add spatial depth, while birds and creatures leaping out of the water add a sense of life.
    • Friendly interaction: free drag-to-orbit from any angle, with natural transitions in motion and expression.

    On the engineering side, this effect relies on procedural geometry, instanced rendering, and sensible material parameters rather than piling on external assets. During evaluation, check whether uncontrollable external links are referenced and whether mobile frame rates are acceptable.

    4. Case Two: A 3D Volcanic Eruption Simulation

    The second case is a recurring favorite: build a standalone page for a volcanic eruption based on a mainstream 3D rendering paradigm. It tests both mathematical modeling and performance awareness.

    A reusable implementation skeleton:

    1. // Pseudocode: particle system + noise perturbation + gravity
    2. const particles = createParticles({ count: 20000 });
    3. function step(dt) {
    4. for (const p of particles) {
    5. p.vy -= gravity * dt; // gravity
    6. p.pos.addScaledVector(p.velocity, dt);
    7. p.life -= dt;
    8. if (p.life <= 0) respawn(p); // lifecycle
    9. }
    10. updateGeometry(particles);
    11. }

    Evaluation points include: tiering strategy for particle count versus frame rate, the turbulent look produced by noise functions, occlusion between the vent and terrain, and whether a fallback switch is provided for low-performance devices.

    5. Performance and Engineering Recommendations

    • Tiered rendering: adjust particle count, shadow resolution, and post-processing based on device capability.
    • Self-contained assets: avoid pulling uncontrollable external resources at runtime.
    • Observability: integrate a general-purpose logging service with monitoring and alerting to track frame rate and error rate.
    • Safety boundaries: review generated content for scripts to prevent injection and unauthorized access.

    For large-scale operation, you can run stateless rendering services on a container platform, distribute static artifacts with object storage, and use a message queue to smooth out traffic spikes, forming a stable pipeline.

    6. Conclusion

    “Vision + general-purpose coding” upgrades models from code assistants to interactive scene generators. Evaluating this capability should stick to fixed prompts, multi-dimensional scoring, and attention to performance and safety. For teams, building a reproducible evaluation set and fallback strategy matters more than chasing a single stunning result.