Evaluating Chinese LLMs on 3D Generation and General Coding: A Practical Framework
This article presents a practical framework for evaluating how well large language models—particularly recent Chinese models with visual understanding and general coding capabilities—generate interactive 3D applications from natural language. It breaks subjective visual quality into four verifiable dimensions, walks through two test cases (a procedural 3D scene and a volcanic eruption effect), and covers prompt design, common failure modes, and how to turn generation quality into a repeatable engineering pipeline.
1. Background: Why the Shift from Answering to Delivering Matters
For a while, it looked like Chinese large language models were iterating more slowly on general capabilities. But real progress often happens at the level of deliverables: models no longer just answer questions—they can produce runnable, interactive, and extensible engineering artifacts in a single pass. A recent class of models with visual understanding and general coding ability makes this shift tangible.
This article does not benchmark any specific product. Instead, it abstracts the capability into a general technical question: how to evaluate and reliably reproduce the quality of natural-language-to-interactive-3D generation.
The key point is that code is becoming a universal interface. It connects downward to graphics rendering and physics simulation, and upward to video, games, spatial computing, and real device control. Once you understand this, you understand why a request as simple as “draw a pelican riding a bicycle” actually tests a model’s grasp of scene composition, materials and lighting, interaction control, and performance budgets all at once.
2. Evaluation Framework: Turning “Looks Good” into Verifiable Metrics
Subjective impressions cannot serve as engineering conclusions. Break 3D generation tasks into four layers of metrics:
- Semantic fidelity: Are the subject, action, and environmental elements all present? Are there obvious hallucinated elements?
- Spatial and interaction correctness: Are camera orbit control, object hierarchy, and collision/occlusion relationships reasonable?
- Visual completeness: Is lighting direction consistent, is color temperature unified, are materials distinguishable, and is there depth in the background?
- Engineering maintainability: Does it run as a single file, are resources inlined, and is the code structure easy to modify?
A sample evaluation record can be structured like this:
{"task": "3d_scene_from_text","scores": {"semantic": 0.0,"interaction": 0.0,"visual": 0.0,"maintainability": 0.0},"issues": ["list reproducible defects"],"rounds": 1}
The value here is that across multiple iterations you can quantify whether things actually improved, instead of judging by feel.
3. Case One: From a Single Sentence to an Interactive 3D Scene
The first typical case uses an extremely low-information prompt: generate a 3D scene whose subject is an animal riding a bicycle, with a complete sense of design and a space that can be freely observed. The task looks playful, but it stress-tests all four capabilities at once.
Composition and narrative: A strong output proactively fills in narrative cues—a sunset, a coastal highway, a road sign, palms, and wild grass—giving the scene a sense of time and place. The model must decide on a color scheme on its own (warm gold key light plus turquoise water) and keep color temperature consistent globally.
Water and background: Water that approaches a high-quality game look usually relies on stacking multiple layers—base normal perturbation, Fresnel reflection, depth gradient, distant haze, and specular highlights. The key is that no external assets are referenced; everything is generated by code and procedural textures. This demands a lot from a model’s ability to create something from nothing.
Interaction and performance: 360-degree dragging requires a correct camera controller with damping and boundary limits. Maintaining frame rate on mobile means controlling polygon count, texture size, and draw calls.
A reusable implementation skeleton looks like this:
// Pseudocode: minimal skeleton of a procedural sceneconst scene = new Scene();scene.fog = new FogExp2(0x0b2a3a, 0.008);const water = createProceduralWater({size: 4000,segments: 128,fresnel: true,depthFade: true});const rider = createProceduralCharacter({ type: 'pelican' });rider.attachTo(createBicycle());const controls = createOrbitControls({damping: 0.08,minDistance: 6,maxDistance: 60,maxPolarAngle: Math.PI * 0.49});
Engineering tip: decouple the three stages of “lighting—materials—geometry.” Fix the key light direction and color temperature first, then tune material roughness and metalness, and finally add background and particles. Reversing the order leads to repeated rework.
4. Case Two: A Comprehensive Stress Test with Procedural Effects
The second classic standby prompt is to build a volcanic eruption demo using a mainstream 3D rendering paradigm, output as a standalone runnable web file. It is a touchstone for overall capability because effects tasks must satisfy both physical intuition and rendering budget.
Physical intuition: The eruption column needs four phases—rise, expansion, cooling, and fall. Lava flows should spread along terrain slopes and gradually cool and change color. Debris ejection needs an initial velocity distribution and gravity integration.
Rendering strategy: A common approach is a particle system plus a noise field plus additive blending, combined with screen-space distortion from heat haze. The key is tiering particle counts: high counts up close, low counts in the distance, and soft particles to avoid hard intersections with terrain.
// Pseudocode: eruption phase driverconst phases = ['charge', 'burst', 'column', 'fallout'];function update(dt, t) {const phase = phases[Math.min(3, Math.floor(t / 2.5))];emitter.setRate(rateByPhase[phase]);emitter.setSpread(spreadByPhase[phase]);smokeField.evolve(dt, turbulence);}
Maintainability: Centralizing parameters into a configuration object and avoiding magic numbers scattered everywhere is an important dividing line in the quality of model-generated code.
5. Prompt Design: The Key Variable That Sets the Ceiling
The same model can vary enormously under different prompting strategies. A four-part structure is recommended:
- Goal and artifact form: Specify “a single runnable web file with no external dependencies.”
- Visual constraints: Key light direction, color temperature, material distinction, background depth.
- Interaction constraints: Camera freedom, damping, boundaries, mobile frame rate target.
- Acceptance criteria: List elements that must appear and elements that must not.
Example:
Output a standalone runnable web file; referencing external assets is forbidden.Scene: a coastal highway at dusk, with a pelican riding a bicycle as the subject.Lighting: a single warm key light, low angle, long shadows; water with Fresnel and depth gradient.Interaction: 360-degree orbit with damping and distance limits.Acceptance: road sign, palms, lighthouse, and seagulls must appear; no text watermarks allowed.
When polishing over multiple rounds, change only one dimension at a time (composition first, then lighting, then effects, then performance) to significantly reduce regression risk.
6. Common Failure Modes and a Troubleshooting Checklist
- Elements stacked but spatially broken: Objects intersect each other, indicating missing hierarchy and collision constraints.
- Plastic-looking lighting: Missing ambient occlusion and roughness variation.
- Hollow background: No haze or layered depth added.
- Frame rate collapse: Too many draw calls, particles not tiered.
- Hard to modify afterward: All logic written in one layer, lacking configuration and module separation.
Recommended troubleshooting order: semantics → space → lighting → performance → structure.
7. Engineering Implementation: From Demo to an Operable Capability
To turn this capability into reusable productivity for a team, three things are needed. First, a versioned evaluation set that locks in typical tasks and scoring tables to form a regression baseline. Second, pipelining: use a container platform to handle builds and rendering screenshots, object storage to hold artifacts, and logging and monitoring/alerting services to track failure rates and latency. Third, a human-AI collaboration workflow where the model handles first-pass generation and developers handle performance and maintainability.
On Baidu AI Cloud, these stages map to general capability categories: a container platform handles builds and batch rendering, object storage holds input and output assets, a message queue decouples long-running tasks, and logging and monitoring/alerting services provide observability. This preserves the model’s generation strengths while adding the stability and traceability required for engineering delivery.
8. Conclusion
The recent progress of Chinese models is essentially a move from “being able to answer” to “being able to deliver.” 3D scenes and procedural effects are just the entry point; what is really being validated is the model’s ability to translate vague intent into structured, runnable, and evolvable code. For developers, the pragmatic approach is not to chase a single impressive result, but to establish evaluation dimensions, prompt standards, and an engineering pipeline so that capability leaps settle into stable output.
