Evaluating Text-to-3D Generation: A Benchmark for Spatial Reasoning and Parametric Modeling
This article presents a reproducible framework for evaluating text-driven 3D scene generation across AI coding tools. Instead of judging output by visual appearance, the method uses a strict natural-language prompt, global constants as the single source of truth, and automated geometry and kinematics checks. It covers prompt design, parametric modeling, crank-chain-foot phase consistency, a multi-dimensional scoring rubric, common failure modes, and improvement strategies. The approach is applicable to mechanical assemblies, architectural massing, and character rigging where strict spatial relationships matter.
1. Background: Why Generating Code Is Not the Same as Building a Model
In recent technical discussions, the ability of pure code generation to produce 3D content has come up repeatedly. When evaluating AI coding tools, many teams use a short description to obtain a script, then glance at the render window to judge whether it “looks right.” This acceptance method has an obvious flaw: it only proves that the model wrote syntactically correct code. It does not prove that the model understood spatial constraints between objects, drivetrain relationships, or phase consistency.
The real difficulty comes down to three points. First is scale consistency: physical quantities such as wingspan, wheelbase, and tooth count must be self-consistent within the same coordinate system. Second is kinematic correctness: the crank, chain, pedals, and feet must satisfy phase constraints. Third is parameter variability: the reviewer changes only the numbers, not the code, and the scene must still hold. These three points are exactly what separate “writing code” from “building a model.”
This article therefore abstracts the evaluation into a general technical question: how to design a natural-language requirement strict enough that different AI coding tools produce automatically verifiable 3D scene scripts under the same standard, and then compare them side by side. The article makes no capability claims about any specific product; all conclusions are based on a reproducible acceptance process.
2. Evaluation Design: Parameter Linkage Instead of Visual Appearance
The first step is to replace “looks good” with “measurable.” The suggested structure is as follows: the requester provides a text-only scene description and is forbidden from supplying reference images; the tested party delivers a script that runs in headless mode; an automated script then reads the key constants and performs geometry and kinematics checks.
A reusable prompt skeleton is shown below (illustrative, to demonstrate how constraints are expressed):
Build a 3D scene based only on the text below. Do not provide reference images.Deliver a Python script that runs in headless mode.Scene: a coastal boardwalk at dusk, a pelican riding a dark green steel-frame bicycle;body leaning forward, both wings extended forward to grip the handlebar; one webbed foot on the pedal, the other suspended at the lowest point of the return stroke;the frame is a diamond type, a canvas tool bag hangs from the down tube, a fishing net is tied to the rear rack;the crank drives the rear wheel, the chain is tensioned, and the riding posture is consistent with the drivetrain phase.The top of the script must declare global constants:PELICAN_WINGSPAN = 1.15BICYCLE_WHEELBASE = 1.02BICYCLE_CHAINRING_TEETH = 44BICYCLE_COG_TEETH = 16BICYCLE_CRANK_PHASE = 35.0All geometry must be derived from the constants above. No decoupled magic numbers may appear inside functions.
The key to this prompt is not its literary quality but that it moves the acceptance action forward: by explicitly stating the “change only the numbers, never touch the code” check, the model is led to treat parameters as the single source of truth.
3. Parametric Modeling: Global Constants as the Single Source of Truth
The core principle of parametric modeling is a single data source. Wingspan controls handlebar width and grip spacing, wheelbase drives the frame geometry, chainring tooth count determines chain length and the front-to-rear gear ratio, and crank phase determines pedal position and foot contact. If any fixed value unrelated to the constants appears anywhere, the parameters will break immediately after a change.
The recommended organization is a three-part structure: constants, derivations, and assembly:
# Constants: the single source of truthPELICAN_WINGSPAN = 1.15BICYCLE_WHEELBASE = 1.02CHAINRING_TEETH = 44COG_TEETH = 16CRANK_PHASE_DEG = 35.0# Derivations: all dimensions computed from the constantsimport mathWHEEL_RADIUS = BICYCLE_WHEELBASE * 0.34CHAINRING_RADIUS = CHAINRING_TEETH * 0.0032COG_RADIUS = COG_TEETH * 0.0032GRIP_SPAN = PELICAN_WINGSPAN * 0.92phase = math.radians(CRANK_PHASE_DEG)# Assembly: place parts according to constraints# Handlebar width = GRIP_SPAN; chain path computed from the external tangents of two circles; pedal position determined by phase
The derivation coefficients are engineering empirical values that teams can adjust to their own asset standards, but they must be managed centrally rather than scattered inside function bodies. The direct benefit is that after the reviewer changes three numbers, the handlebar widens, the chain is recomputed, and the feet re-fit automatically.
4. Kinematic Linkage: Phase Consistency Is a Hard Constraint
The most easily overlooked requirement in the scene is the “non-static prop” condition. The crank is driving the rear wheel, which means pedal position, foot contact, and chain tension must all share the same phase variable. In implementation, it is recommended to use phase as the sole input, derive the pedal coordinates, and then work backward from the pedal coordinates to position the webbed foot, rather than placing the character first and adding the pedals afterward.
The chain can be approximated with an external common tangent model of two circles: solve for the tangent points from the chainring radius, the cog radius, and the center distance, then generate a closed path. Changes in center distance or tooth count alter the tangent points, so the chain must be computed from geometry in real time and cannot use a fixed length. During validation, several points on the chain can be sampled to detect intersections with the frame or tool bag, as well as any suspended segments.
Foot contact validation can also be automated: compute the plane equation of the pedal surface, take sample points on the bottom of the webbed foot to find the distance, and pass if the error is below a threshold; for the suspended foot, check whether it lies in the low range of the return stroke. This turns “riding posture consistent with drivetrain phase” from an adjective into an assertable condition.
5. Comparison Method: Multi-Dimensional Scoring Under the Same Standard
To make the comparison convincing, run multiple AI coding tools with the same prompt, the same constants, and the same validation script, and score them by dimension:
- Runnability: whether headless mode passes on the first try, and whether dependencies are minimized;
- Parameter sensitivity: whether everything updates after changing only the constants, and whether any magic numbers remain;
- Spatial plausibility: whether parts intersect, float, or are out of proportion;
- Kinematic correctness: whether phase, chain, and contact points are self-consistent;
- Structural readability: whether the sections are clear, names are meaningful, and comments explain constraints;
- Stability: the variance across multiple generations, and whether failures occur sporadically.
Scoring should retain the original scripts and run logs for review. Comparison conclusions should only describe “performance differences under this test set” and must not be extrapolated into general capability conclusions; this is the key to staying objective.
6. Common Failure Modes and Improvement Suggestions
Four high-frequency problems appear in practice. First, residual magic numbers: the parameters change but the frame does not. Second, the chain uses a fixed curve, so it intersects after the tooth count changes. Third, the foot and pedal are positioned independently, so they separate as soon as the phase changes. Fourth, the headless environment is ignored, and calls to nonexistent display interfaces cause startup failure.
The corresponding improvement strategies are equally clear: add constant validation to the script’s self-check and assert key derived quantities at startup; make the chain and contact points pure functions for easy unit testing; run a regression pass with a set of “perturbed constants” before delivery; and probe the rendering backend’s capabilities, falling back automatically when they are missing.
7. Conclusion
When evaluating pure-code 3D generation, the focus is not generation speed but constraint satisfaction. Writing scale, phase, contact, and variability as executable assertions is what allows different tools to be measured fairly on the same scale. For R&D teams, this method is not limited to a single scene; it can also transfer to tasks requiring strict spatial relationships, such as mechanical assembly, architectural massing, and character rigging, forming a sustainable and reusable automated acceptance system.
