Evaluating Chinese LLMs on 3D and General Coding Capabilities
This article presents a practical evaluation framework for general-purpose LLMs with visual understanding and general coding capabilities, focusing on their ability to generate interactive 3D scenes and physics simulations as single runnable HTML files. It breaks assessment into four measurable dimensions—aesthetics, physical plausibility, code quality, and runtime performance—with suggested scoring weights. Two case studies illustrate a procedural 3D scene and a volcano eruption simulation, followed by an iterative refinement strategy, prompt structuring tips, and deployment advice covering cost control, sandboxing, and observability.
1. Background: Why “3D + General Coding” Is the New Benchmark
Chinese LLMs have stabilized in general conversation and code completion, shifting industry attention from “can it write a correct function” to “can it build a complete interactive artifact.” The underlying reason is that code is becoming a universal interface connecting video, games, 3D spaces, and physics simulation: a single standalone HTML file can simultaneously carry a rendering pipeline, physics integration, camera control, and UI state management.
Evaluation focus should shift accordingly. Traditional tasks (algorithm problems, single-function generation) only reflect local correctness, whereas 3D scene generation requires a model to handle spatial coordinate systems and hierarchy, physically plausible approximations of lighting and materials, animation timelines, and browser-side performance budgets. These tasks are closer to end-to-end delivery in real business scenarios.
This article does not recommend or compare specific products. Instead, it abstracts the phenomenon into a capability evaluation framework for general-purpose LLMs with visual understanding and general coding abilities, so teams can validate different technical approaches against a unified standard.
2. Evaluation Framework: Four Dimensions and Quantifiable Metrics
Break subjective impressions into recordable, reproducible metrics to avoid vague conclusions like “looks good.”
- Aesthetic and Composition Quality
- Clear primary/secondary relationships and a visual focal point;
- Unified color palette (e.g., warm sunset gold contrasted with cool turquoise sea);
- Reasonable camera language (depth of field, horizon placement, negative space).
- Physical and Geometric Plausibility
- Continuous rigid-body motion without clipping or jitter;
- Intuitive approximations of gravity, friction, and collision;
- Whether water, particles, and smoke rely on external assets (ideally generated entirely in code).
- Code Engineering Quality
- Single runnable file output with minimal dependencies;
- Clear variable naming, module separation, and comments;
- Parameter entry points reserved for easy secondary tuning.
- Interaction and Runtime Performance
- Smooth drag-to-rotate and zoom;
- Stable frame rate on mid-range devices;
- Resource usage within acceptable browser limits.
Fix the weights in a scoring sheet, for example aesthetics 30%, physics 25%, engineering quality 25%, performance 20%. Record score changes each iteration to build a traceable evaluation archive.
3. Case One: The Aesthetic Ceiling of Procedural 3D Scenes
The first typical task: given a natural language description (e.g., “a pelican riding a bicycle, output an interactive 3D HTML version”), observe the model’s “design completeness.”
Low-quality output usually only satisfies geometric assembly: model, wheels, and road in place, but lacking atmosphere. High-quality output proactively completes the scene narrative: a winding coastal highway, road signs, palm trees, wild grass, a distant island lighthouse, circling seagulls, dolphins leaping from the sea, unified by sunset afterglow.
The key observation is the water surface. Water approaching AAA game quality generated entirely in code indicates the model has mastered procedural texturing and lighting approximation rather than relying on texture assets. The direct business value: rapidly producing visualization prototypes without copyrighted assets or art resources.
Prompt design should follow a four-part structure: “role + scene + interaction + constraints”:
Role: 3D scene designerScene: coastal highway at dusk, warm gold tones, lighthouse and seagulls in the distanceInteraction: support 360-degree drag observation, natural motionConstraints: output a single HTML file only, no external assets, materials and water generated procedurally
4. Case Two: Stability of Physics Simulation Demos
The second retained task: “build a volcano eruption simulation using a 3D rendering library, output standalone HTML.” It looks simple but comprehensively tests particle systems, noise functions, time stepping, and performance control.
Focus on three points during evaluation:
- Whether the eruption is staged (buildup, explosion, ember falloff) rather than uniform from the start;
- Whether particles are affected by gravity and wind fields, with naturally decaying trails;
- Whether long-running sessions show memory growth or frame rate drops.
If the model automatically generates an adjustable parameter panel (eruption intensity, wind speed, particle count), its output has engineering usability rather than being a one-off demo.
Illustrative structure:
// Pseudocode: expresses structure only, not a specific APIconst params = { intensity: 1.0, wind: 0.2, count: 2000 };function step(dt) {emitParticles(params.intensity, dt);applyForces(gravity, windField(params.wind));updateLifetimes(dt);render();}
5. Iterative Refinement: Turning “One-Shot Generation” into “Controlled Convergence”
The most overlooked aspect in practice is the multi-round refinement strategy. Fix a “baseline version” and change only one variable per round—composition first, then materials, then performance. This localizes the source of problems and prevents the model from losing early constraints in long contexts.
Three engineering practices:
- Front-load constraints: write “single file, no external assets, target frame rate” into the first prompt;
- Isolate changes: each round’s prompt describes only incremental needs and restates key constraints;
- Version tracking: save each round’s HTML and scores to form a rollback-capable version chain.
6. Cost, Security, and Deployment Recommendations
3D and general coding tasks consume high tokens and require many iterations. Enterprises should do three things: set per-task round and duration limits to control budget; preview generated artifacts in an isolated sandbox to prevent untrusted scripts from affecting the main network; and record call volume, failure rate, and latency through a unified logging service and monitoring/alerting system for capacity planning.
For cloud deployment, combine general-purpose capabilities: object storage for versioned artifacts, container platforms for preview and rendering services, message queues for peak shaving, and logging/monitoring for observability. If visual understanding inputs are involved, add desensitization and compliance checks at the data entry point.
7. Conclusion
Judging whether a model with visual and general coding capabilities is first-tier should not rely on a single frame, but on its balanced performance across aesthetics, physics, engineering, and performance, plus convergence efficiency after multiple iterations. For developers, tabulating evaluation, structuring prompts, and versioning artifacts is the key path to turning new model capabilities into real business productivity.
