Testing Chinese LLMs on 3D and General Coding Tasks
This article evaluates how Chinese large language models handle 3D scene generation and general coding tasks, using three test cases: single-prompt 3D scenes, physics simulations, and multi-turn refinement. It explains the four evaluation dimensions—semantic fidelity, visual quality, interaction robustness, and self-containment without external assets—and shares key findings, sample code patterns, prompt structures, a scoring checklist, and practical guidance for turning one-off demos into maintainable production assets.
1. Background: Why “3D + General Coding” Is the New Capability Divide
Chinese large language models have plateaued in public benchmarks, shifting industry attention from parameter counts to the quality of deliverables. The real divide has emerged in two areas: visual understanding, or whether a model can interpret images and spatial relationships; and general coding, or whether it can compile natural-language intent directly into runnable, interactive front-end output.
Combined, these capabilities turn code from a developer-only tool into a general-purpose interface. A single description can produce a video-style animation, a 3D scene that supports 360-degree dragging, or an interactive demo with physical intuition. For developers and business users, this compresses prototyping cycles from days to minutes.
Evaluating these capabilities requires more than checking whether the output runs. Four dimensions matter: semantic fidelity, visual completeness, interaction robustness, and self-consistency under zero external assets. All test methods and conclusions below revolve around these four dimensions.
2. Test Design: Building High-Signal Cases
High-quality testing starts with cases that actually differentiate models. Simple prompts only verify syntax and fail to expose real performance under long context, spatial reasoning, and resource constraints. A useful strategy combines “standard cases” with “open-ended challenges.”
2.1 Case 1: Single-Sentence 3D Scene Generation
The input is one sentence, for example: “Generate a pelican riding a bicycle, output a standalone 3D HTML file, use all your design ability.” This forces the model to decide layout, materials, lighting, animation, and camera control on its own, heavily testing its default aesthetic judgment.
Three points matter during evaluation. First, can it generate a gradient sky, ocean highlights, and distant depth layers entirely in code without external textures? Second, are character motions natural, with no clipping or joint misalignment? Third, does it support free-view dragging without the scene breaking at any angle?
2.2 Case 2: Physics Process Simulation
The second standard case is: “Build a volcano eruption simulation using a general-purpose 3D rendering library, output a standalone HTML file.” It looks simple but simultaneously tests particle systems, time stepping, gravity and buoyancy approximations, material distinction between smoke and lava, and the balance between performance and visual quality.
Evaluation points include: whether the eruption has clear phases (pressure buildup, explosion, fallout); whether particle counts and frame rates are acceptable; whether a parameter panel lets users adjust intensity; and whether the scene degrades gracefully on low-end devices.
2.3 Case 3: Multi-Turn Refinement and Added Constraints
Real projects rarely come together in one pass. After the first output, add constraints such as “change the time to dusk,” “add ocean reflections,” or “raise the initial camera position.” Observe whether the model makes local edits without breaking existing structure. This distinguishes a “generator” from an “engineering assistant.”
3. Key Findings: From “It Runs” to “It Holds Up Close”
The most valuable finding is that model output has shifted from “runnable” to “visually refined.” High-quality 3D scenes typically show these traits:
- Lighting uses a unified color temperature, with warm sunset tones complementing cyan water rather than clashing high-saturation colors;
- Distant elements use atmospheric perspective, with islands, a lighthouse, and circling birds creating depth and avoiding emptiness;
- Water surfaces show directional highlights and ripple distortion, approaching real-time rendering quality, all generated from code and math functions;
- Interaction supports a free camera, with animation loops that show no visible jumps.
A representative implementation approach focuses on driving the overall mood with a few parameters rather than piling on models:
// General pattern for unifying scene mood with color temperature and fogscene.fog = new THREE.Fog(0xffd9a0, 40, 180);sun.color.setHSL(0.09, 0.85, 0.62);sun.intensity = 1.6;// Approximate water ripples with layered sine waves, avoiding external texturesconst wave = (x, t) => Math.sin(x * 0.35 + t) * 0.12+ Math.sin(x * 0.11 - t * 0.6) * 0.08;
Volcano simulations rely more on time stepping and particle lifecycle management:
// General approximation of particle lifecycle with gravity and dampingp.life -= dt;p.vy += gravity * dt;p.vx *= damping;if (p.life <= 0) respawn(p);
These snippets make a core point: the real capability of a model is not writing longer code, but choosing fewer, better parameters.
4. Productionization: Turning One-Off Demos into Maintainable Assets
Bringing this capability into production requires four pieces of infrastructure, all achievable with industry-standard approaches:
- Generation and hosting: When output is a single-file page, host it on object storage with CDN acceleration; when server-side rendering is needed, run stateless services on a container platform.
- Runtime governance: Connect logging and monitoring/alerting services to collect first-screen time, frame rate, and script error rates, forming a loop for continuous optimization.
- Model access: Use a unified LLM gateway for routing, rate limiting, and fallback so a single model’s instability does not affect experience; desensitize sensitive data before it enters the prompt pipeline.
- Quality gates: Add automated checks to the pipeline, including syntax validation, no-external-resource validation, and mobile degradation validation.
On Baidu AI Cloud, these capabilities can be carried by general product categories such as object storage, container platforms, logging services, and monitoring/alerting, upgrading “can generate” to “can operate.”
5. Prompt Structure and Evaluation Checklist
A recommended prompt structure has five parts: role and goal, tech stack constraints, visual style, interaction requirements, and performance/degradation requirements. Example:
Goal: Output a single HTML file using a general-purpose 3D rendering library.Visual: Dusk color temperature, warm light as the main tone, distant elements need atmospheric perspective.Interaction: Support free rotation and zoom, seamless animation loops.Constraints: Do not reference any external assets or network resources.Degradation: Automatically reduce particle count when device pixel ratio is too high.
The evaluation checklist should stay fixed at six items: semantic fidelity, aesthetic consistency, interaction stability, resource self-containment, performance, and modifiability. Score each from 1 to 5 and average across multiple rounds to avoid misjudgment caused by a single impressive result.
6. Limitations and Outlook
Three limitations remain. First, very long interaction logic can produce inconsistent states and needs manual testing. Second, complex physics processes are mostly approximations and should not be used directly for engineering simulation. Third, aesthetic quality depends heavily on prompt quality, and output varies widely without constraints.
Looking ahead, as visual understanding and general coding continue to merge, code will more thoroughly become a universal interface connecting video, games, 3D space, and the physical world. The advice for developers: build your own test case library and evaluation checklist early, treat the model as a replaceable compute backend, and keep engineering standards in your own hands.
