How to Evaluate 3D Spatial Reasoning in Generative Models
Evaluating a generative model’s 3D spatial reasoning requires more than executable code and convincing renders. This article presents a reproducible framework for checking geometry, mechanical relationships, character contact, parameter dependencies, and motion. A procedural scene involving a pelican riding a bicycle illustrates how parameter changes, automated checks, and multiple viewing angles can reveal whether a model maintains spatial constraints rather than merely producing a plausible image.
1. Evaluate Constraint Satisfaction, Not Just Successful Generation
A generative model’s programming and spatial reasoning abilities cannot be assessed solely by whether it produces runnable code. Nor can a single rendered image establish the quality of its output.
Three-dimensional scenes are particularly prone to looking plausible while being structurally incorrect. A handlebar may appear close to a bird’s wings without actually touching the wingtips. A chain may form a closed curve without following the chainring and rear sprocket. A character may look like it is cycling even though its feet have no relationship to the pedal phase.
These errors can remain hidden from a fixed viewpoint and become apparent only when parameters change or the scene is viewed from another direction.
The more useful evaluation question is therefore not whether one output looks attractive, but whether the model can translate a natural-language description into consistent, verifiable spatial relationships that remain valid as parameters change.
A complete evaluation framework should cover at least four layers:
- Program execution: Can the script run headlessly in the specified environment?
- Geometry: Are component positions, dimensions, and connections correct?
- Motion: Do the cranks, pedals, feet, and wheels satisfy their coupling constraints?
- Presentation: Do materials, lighting, composition, and style meet the scene requirements?
The first three establish engineering correctness. The fourth cannot compensate for failures in them.
2. Design a 3D Task That Exposes Reasoning Differences
A text-driven scene can serve as the test case: at dusk, a pelican rides along a coastal promenade on a bicycle with a dark green steel frame, a tool bag, and a fishing net. The character leans forward, both wings touch the handlebars, and at least one webbed foot has a clearly defined contact with a pedal.
The value of this task is not its visual complexity. It is the interaction of several constraint systems:
- The diamond-shaped bicycle frame must preserve its topology and connections.
- The wheels, axles, fork, and frame must share a consistent coordinate layout.
- The chainring and rear sprocket determine the chain path.
- Crank phase determines pedal positions.
- The riding pose must respond to changes in the pedals and handlebars.
- Accessories must not visibly intersect the frame or moving components.
Artistic expression should be separated from mechanical relationships. Character proportions can be stylized and materials exaggerated, but stylization does not justify a floating chain, misaligned axles, or broken contact constraints.
Deliverables should also be explicit. In addition to the scene-generation script, require key parameter values, constraint-check results, and views that expose the main structures. This prevents the evaluation from becoming a purely subjective judgment of appearance.
3. Establish the Parameter System Before Generating Geometry
Parametric modeling means more than placing a few numbers at the top of a file. Critical geometry must actually be derived from those values.
The following can serve as primary inputs:
| Parameter | Meaning | Main effects |
|---|---|---|
| Wingspan | Span of the character’s extended wings | Wing length, handlebar width, and grip positions |
| Wheelbase | Distance between the front and rear axle centers | Frame layout and fork position |
| Chainring tooth count | Number of teeth on the front drivetrain component | Chainring pitch circle and chain path |
| Rear sprocket tooth count | Number of teeth on the rear drivetrain component | Rear sprocket pitch circle and transmission ratio |
| Crank phase | Current crank angle | Positions of both pedals and the contacting foot |
Supporting parameters should include chain pitch, crank length, wheel diameter, and contact tolerances. Their units, ranges, and purposes should be documented.
Avoiding “magic numbers” does not mean prohibiting all constants. The real problem is using an independently hard-coded coordinate for a position that should depend on wheelbase, or fixing grip spacing inside a function when it should vary with wingspan.
A useful distinction is:
- Input parameters: Values deliberately changed during testing.
- Derived parameters: Values calculated from inputs and geometric relationships.
- Style parameters: Values controlling feathers, colors, decorative density, and other visual details.
The main structure should depend primarily on the first two categories. Style parameters should not invalidate core constraints.
4. Use Consistent Coordinate Systems
Before building the scene, define the world coordinate system, the bicycle’s local coordinate system, and the local coordinate systems of individual components.
For example, one horizontal axis can represent forward travel, the vertical axis can represent height, and the remaining horizontal axis can represent left and right. The rear axle center can serve as the layout reference, with the front axle center derived from wheelbase and the crank center determined by frame proportions.
Frame members can then be generated from explicit connection nodes rather than independently positioned until they appear to meet.
For each structural member, calculate length and orientation from its endpoints. For each axle, define its rotation axis. For the left and right cranks, derive their positions from the phase offset. Consistent coordinate conventions reduce axis confusion, unintended mirroring, and angle-unit errors.
Object origins must also be distinguished from actual contact points. Placing a foot object’s center near a pedal does not establish contact between the sole and pedal. Verification should use a sole marker or contact surface, not the object center.
5. A Chain System Is More Than a Closed Curve
The chain is one of the clearest indicators of weak spatial reasoning in this task.
In a simplified planar drivetrain, the chain path consists of wrap arcs around the front and rear drivetrain components, connected by upper and lower common tangent segments. Constructing it correctly requires calculating both pitch-circle radii, finding the tangent points from the center distance, and joining the straight segments to the circular arcs.
For a chain-driven component with chain pitch (p) and tooth count (N), the pitch-circle radius is:
[
r = \frac{p}{2\sin(\pi/N)}
]
Changing the chainring tooth count must therefore change its pitch-circle radius. The tangent points and complete chain path must also be recalculated.
If the chainring’s visible geometry is enlarged while the chain path remains unchanged, the chain may intersect the chainring or separate from its tooth engagement region. Updating only the chain while leaving the drivetrain components unchanged is equally invalid.
An important engineering boundary must also be explicit: a closed continuous path does not guarantee a feasible number of physical chain links. A real chain consists of discrete links. With a fixed wheelbase, changing tooth counts may require a different link count, along with a small center-distance adjustment or a tensioning mechanism to resolve the remaining mismatch.
The task should therefore distinguish two acceptance standards:
- For a stylized scene, check whether the continuous chain centerline follows a reasonable path around the drivetrain components.
- For mechanical feasibility, also check discrete links, engagement relationships, and tensioning conditions.
Rendering quality should not obscure the difference between these standards.
6. Solve Crank Phase and Character Pose Together
Pedal positions can be calculated directly from the crank center, crank length, and phase angle. The opposite crank is normally offset by half a revolution.
The conceptual logic is:
Primary pedal position = crank center + crank length × phase directionOpposite pedal position = crank center + crank length × opposite phase directionSupporting foot target = target point on the primary pedal contact surfaceWingtip target = target point on the corresponding handlebar grip
The character’s limbs should then be solved again against these targets. Joint-chain constraints or inverse kinematics can be used, but any implementation should check limb lengths, joint limits, and target reachability.
A requirement such as “the other foot hovers at the lowest point of the return stroke” also needs clarification. In a two-crank system with a half-revolution phase offset, both pedal positions are uniquely determined by the crank phase. A pedal cannot remain at the lowest point while the phase changes arbitrarily.
If the hovering foot is no longer touching its pedal, it can remain in a low, lifted pose. That is a character-animation choice, not a necessary consequence of pedal geometry. If the foot must continue to follow the returning pedal, its position must update with phase rather than stay fixed at the bottom.
Strong task understanding includes recognizing this potential conflict and stating which interpretation is being used, rather than generating a scene that appears compliant but is internally contradictory.
7. Test Real Parameter Coupling Through Perturbations
A correct scene at one fixed parameter configuration demonstrates only a successful one-time construction. A more discriminating test changes only the input values, prohibits manual geometry repairs, and reruns the script.
Example tests include:
- Increasing wingspan from 1.15 m to 1.35 m.
- Increasing chainring tooth count from 44 to 52.
- Changing crank phase from 35° to 140°.
These are test inputs, not evidence that any model has passed validation.
Acceptance checks should focus on the following relationships.
After changing wingspan: Does handlebar width follow the specified rule? Do the wingtips remain within the grip contact regions? Are the wings overstretched?
After changing tooth count: Do chainring dimensions, chain tangent points, and wrap arcs update together? Does the chain remain in the correct plane? Does it visibly collide with the frame or other components?
After changing crank phase: Does the supporting foot remain in contact with the pedal? Do the two cranks maintain the correct phase relationship? Is the character pose still reachable?
Combined tests are also necessary. Changing one parameter at a time may miss errors in the dependency chain. Changing wingspan, tooth count, and phase together provides a stronger test of whether a unified parameter system truly drives the scene.
8. Combine Automated Validation With Visual Inspection
Assign semantic markers to key features, including axle centers, the crank center, pedal contact surfaces, sole contact points, and wingtip grip points.
Automated checks can cover:
- Deviation between the measured axle-center distance and target wheelbase.
- Distance between the sole and pedal contact surface.
- Deviation between the wingtip and handlebar grip region.
- Geometric relationships between chain tangents and pitch circles.
- Intersections between critical components.
- Joint angles outside predefined limits.
Tolerances should reflect the model’s scale and the task’s purpose rather than use an arbitrary fixed threshold. A decorative scene and a mechanical design validation task have different accuracy requirements.
Visual inspection should use multiple viewpoints, particularly side views, top views, and drivetrain-side close-ups. A single perspective image can conceal lateral misalignment, chain-plane offsets, and feet hovering above pedals.
9. Dynamic Drivetrain Claims Require More Than a Static Pose
A static scene with the correct crank phase does not prove that the crank is driving the rear wheel.
Under ideal no-slip conditions with a selected transmission ratio, the angular-speed ratio between the rear drivetrain component and the crank is determined by the chainring and rear sprocket tooth counts. If the bicycle must also roll along the ground, wheel rotation must be linked to displacement.
Dynamic validation should therefore sample multiple points in time and check:
- Whether crank and pedal positions change continuously.
- Whether chain motion agrees with the drivetrain direction.
- Whether rear-wheel rotation follows the specified transmission relationship.
- Whether foot contact is maintained over time.
- Whether wheel–ground motion satisfies the no-slip assumption when forward movement is enabled.
The evaluation must explicitly state whether tire deformation, chain elasticity, drivetrain backlash, and similar effects are ignored. Simplified models are acceptable, but their assumptions must be transparent.
10. Produce a Reproducible Evaluation Report
The final report should not reduce the result to “completed” or “failed.” It should separately record program execution, structural correctness, parameter coupling, dynamic consistency, and visual presentation.
Preserve the input specification, execution environment, random seed, modified parameters, execution logs, and validation results. Report code-generation time, script-execution time, and rendering time separately rather than combining distinct stages into one measurement.
Multiple generation attempts and manual repairs should also be disclosed. One successful example can demonstrate a capability, but it does not establish reliability. Likewise, one failure should not automatically support a sweeping conclusion.
Ultimately, 3D spatial reasoning is less about how many objects a model generates than about whether it maintains the relationships between them. Detecting conflicting constraints, establishing parameter dependencies, explaining simplifying assumptions, and preserving structural consistency after parameter changes provide stronger evidence of engineering capability than runnable code and an attractive render alone.
