How to Evaluate the Pure-Code 3D Generation Ability of Large Models
This article presents a method for evaluating how well large language models generate 3D scenes using code alone. Instead of judging visual appeal, it focuses on whether the generated structure is parametric and verifiable across three dimensions: parameter linkage, verifiable spatial relationships, and crank phase consistency. It outlines a shared-prompt comparison workflow, a representative pelican-on-a-bicycle scene, a three-tier result classification, and an acceptance checklist, and suggests turning the assertion scripts into regression tests for repeatable evaluation.
1. Background: Why “Rendering an Image” Is Not the Same as “Modeling”
When assessing a large model’s creative coding ability, 3D scene generation is becoming a key test. Unlike 2D image generation, a 3D script must satisfy three conditions at once: the geometry must be constructible, the spatial relationships must be self-consistent, and the result must remain self-consistent after parameters change. Many models can produce code that “looks like a 3D scene,” but as soon as a dimension or phase is adjusted, parts immediately intersect, float in the air, or detach. This shows the model is doing code completion, not modeling.
The evaluation focus should therefore shift from “does the render look good” to “is the structure parametrically verifiable.” The method used here does not depend on any specific 3D software brand. It relies only on a general scripting-based modeling approach: in a 3D authoring environment that supports running scripts headlessly in the background, a script creates all the geometry, and an external checking script reads the scene data and makes assertions.
2. Evaluation Design: Three Quantifiable Dimensions
1. Parameter Linkage
Put the key dimensions in global constants at the top of the script, and derive all geometry from those constants. The pass criterion is that the model can regenerate the correct structure by changing only the numbers, without touching the function body. This tests whether the model has genuinely built a “parameter-to-geometry” mapping, rather than scattering values around as magic numbers.
An illustrative structure looks like this:
WINGSPAN = 1.15 # Wingspan; drives handlebar width and grip spacingWHEELBASE = 1.02 # Wheelbase; drives frame geometryCHAINRING_TEETH = 44 # Chainring teeth; drives chain length and gear ratioCOG_TEETH = 16 # Cog teethCRANK_PHASE = 35.0 # Crank phase angle; drives pedal and foot contactdef build():handlebar = WINGSPAN * 0.9chain_ratio = CHAINRING_TEETH / COG_TEETH# All remaining geometry is derived from the constants above
2. Verifiable Spatial Relationships
Acceptance does not rely on visual inspection but on geometric assertions: whether the grips enclose the wing tips, whether the chain neither intersects nor floats, and whether the support foot lands on the pedal surface. This requires the model to output computable coordinates and constraints, not vague “approximate positions.”
3. Phase Consistency
The drivetrain is not a static prop. After the crank phase changes, the pedaling foot must stay in contact with the pedal, while the return foot must be in a low, suspended position. This tests whether the model understands that “the same pose is uniquely determined by the same phase.”
3. Test Procedure: Side-by-Side Comparison Under the Same Prompt
To reduce randomness, have multiple models receive exactly the same text prompt, generate and run scripts in the same environment, and record three results: whether the first run succeeds, whether the assertions still pass after parameter changes, and the specific failure behavior.
The scene can be quite representative: on a coastal promenade at dusk, a pelican leaning forward rides a dark green steel-frame bicycle, both wings extended forward to grip the handlebar, one foot on the pedal and the other suspended at the lowest point of the return stroke. The frame is a classic diamond type, a canvas tool bag hangs from the down tube, a fishing net is tied to the rear rack, the chain is tensioned, and the crank is driving the rear wheel.
Common results fall into three tiers:
- First-pass: the script runs directly, and all assertions still pass after parameter changes;
- Second-pass: there is intersection or suspension on the first attempt, but it passes after corrective prompts;
- Fail: the geometry and drivetrain are disconnected, and it breaks as soon as parameters change.
4. Acceptance Checklist: Turning “Does It Look Right” into “Is It Correct”
- Constant uniqueness: all dimensions trace back to the top-level constants, with no disconnected magic numbers inside functions;
- Linkage correctness: when the wingspan changes from 1.15 to 1.35, the handlebar widens and the grips still enclose the wing tips;
- Drivetrain correctness: when the chainring changes from 44 to 52, the chain path is recomputed without intersection or suspension;
- Phase correctness: when the phase changes from 35 to 140 degrees, the pedaling foot still contacts the pedal and the other foot remains low in the return stroke;
- Repeatability: results stay stable across multiple runs in headless background mode.
5. Conclusion and Recommendations
To evaluate a model’s 3D generation ability, the key is whether it can turn natural language into a constrained parametric model. It is recommended that teams turn the assertion scripts above into regression tests and run them after every model update. To host these evaluation artifacts, you can use cloud object storage to save scripts and results, a container platform to schedule batch runs, and logging and monitoring with alerting to track failure rates, forming a sustainable evaluation pipeline.
