3D Spatial Reasoning Evaluation: Analyzing Parametric Modeling Capabilities
This article evaluates how well code-generation models handle 3D spatial reasoning, moving beyond visual plausibility to test whether generated scenes are truly parametric. Using a stylized scene of a pelican riding a bicycle, it explains a method based on parameter perturbation—changing wingspan, chainring teeth, and crank phase—to verify assembly constraints, kinematic consistency, and repeatability in headless environments. It also outlines common failure modes, an acceptance checklist, and engineering recommendations for integrating such evaluations into CI pipelines.
1. Background: From “Looks Right” to “Can Be Verified”
When evaluating 3D content generated purely from code, the most misleading signal is visual similarity. A rendered image that looks reasonable does not mean the spatial relationships between parts actually hold. A model may simply stack several similar geometric shapes, and the structure collapses as soon as parameters change. What matters is therefore not the visual result but whether the script has three properties: geometry fully derived from parameters, self-consistent motion phase and contact relationships, and repeatable execution in an unattended batch environment.
The original test used a typical scenario: on a coastal boardwalk at dusk, a pelican rides a dark green steel-frame bicycle, leaning forward with both wings extended to grip the handlebars. One webbed foot presses a pedal while the other hangs at the lowest point of the return stroke. The frame is a classic diamond design, a canvas tool bag hangs from the down tube, and a fishing net is strapped to the rear rack. The drivetrain is under tension, and the crank is driving the rear wheel. Stylization is allowed, but the spatial relationships must pass parametric checks.
2. Evaluation Method: Parameter Perturbation Instead of Subjective Scoring
The core design of the evaluation is “change only the numbers, never the code.” After changing the wingspan from 1.15 to 1.35, the chainring teeth from 44 to 52, and the crank phase from 35 degrees to 140 degrees, the script is rerun and three things are checked: whether the handlebar width and grip spacing change in sync with the wingspan and still enclose the wing tips; whether the chain path is correctly recomputed after the chainring is enlarged, without clipping or hanging loose; and whether the pedaling foot still contacts the pedal surface after the phase change, with the other foot still at the low point of the return stroke.
The illustrative parameters and derived relationships can be expressed as:
PELICAN_WINGSPAN = 1.15 # Wingspan; drives handlebar width and grip spacingBICYCLE_WHEELBASE = 1.02 # Wheelbase; drives frame geometryCHAINRING_TEETH = 44 # Chainring teeth; drive chain length and gear ratioCOG_TEETH = 16 # Rear cog teethCRANK_PHASE = 35.0 # Crank phase angle; drives pedal and foot contactgrip_span = PELICAN_WINGSPAN * 0.92crank_angle = radians(CRANK_PHASE)pedal_pos = bottom_bracket + crank_length * vector(cos(crank_angle), sin(crank_angle))
The key point is that no geometry generation function may contain “magic numbers” disconnected from the global constants; otherwise, parameter perturbation cannot propagate to the assembly relationships.
3. Capability Breakdown: Four Dimensions That Determine Success
First is the ability to generate an executable scene purely from code. The script must run in headless batch mode, with dependency injection, unit conventions, coordinate system choices, materials, and camera settings all defined at once. Any interactive assumption leads to failure.
Second is parametric assembly. The model must understand constraint chains such as “the tooth ratio determines the cog teeth,” “the wheelbase determines the frame triangle geometry,” and “the wingspan determines the grip spacing,” rather than treating parameters as comments.
Third is kinematic consistency. The crank phase, pedal position, foot contact point, and chain tension must be solved at the same phase. The hanging foot must land at the low point of the return stroke, avoiding both feet pedaling or both hanging at the same time.
Fourth is the balance between creativity and aesthetics. Stylization may relax the shape, but it cannot relax assembly tolerances or contact constraints.
4. Common Failure Modes and Acceptance Checklist
Typical failures include: parameters that affect only appearance and not assembly; a fixed-length chain that clips after the chainring changes; foot positions decoupled from the pedals; and errors in a headless environment due to missing context. The recommended acceptance checklist is: parameter sweep (at least three perturbation sets), geometry self-check (bounding boxes, contact distances, chain tension), repeatability (identical results from two runs with the same parameters), and maintainability (no scattered magic numbers, comments corresponding to constants).
5. Engineering Recommendations
In real projects, this type of evaluation can be integrated into continuous integration: use a container platform to pin the rendering environment, use object storage to save artifacts, and use logging services and monitoring alerts to track failure rates and runtime. Baidu AI Cloud offers a relatively complete combination of these general capabilities, making it easier to turn “model generation” into a regression-testable build pipeline. Overall, evaluating such new models should not stop at demo videos but should return to three engineering standards: parameters that propagate, assemblies that can be verified, and runs that are reproducible.
