Evaluating Spatial Reasoning and Parametric 3D Generation in Large Models
This article outlines a comprehensive framework for evaluating the spatial reasoning and parametric 3D generation capabilities of large models. Moving beyond simple script execution success, it details how to translate natural language narratives into computable scene specifications, establish parameter dependency graphs, and enforce geometric and mechanical constraints such as chain paths and joint contacts. The guide also covers automated validation methods and modular engineering workflows, aiming to help developers transition from one-off visual demonstrations to maintainable, reusable technical assets.
1. Evaluating Generation Capabilities Beyond Script Execution Success
When working with large models capable of generating code and complex scenes, developers often conflate “completing output,” “successful script execution,” and “spatial understanding capability.” In reality, these represent different levels of assessment.
Completing output merely indicates that the model delivered text as requested. Successful script execution means the code ran without blocking errors in a specific environment. Spatial understanding, however, requires the generated result to satisfy the scale, position, contact, motion, and constraint relationships between objects.
For example, the presence of a pelican, a bicycle, and a coastal promenade in a frame does not prove the scene is correct. If the wings do not contact the handlebar grips, the webbed feet clip through the pedals, the chain deviates from the gear plane, or the feet remain stationary after modifying the crank angle, the scene is merely a combination of visual elements without a credible structural model.
Therefore, the focus of evaluating such capabilities should shift from “what was generated” to “why it was generated this way, and whether it remains valid under changing conditions.”
An effective evaluation system must cover at least four dimensions:
- Execution Integrity: Can scene construction, saving, and rendering be completed in a non-interactive environment?
- Geometric Validity: Do part sizes, connection relationships, and spatial positions conform to constraints?
- Parameter Consistency: Do related objects update synchronously when inputs are modified?
- Validation Interpretability: Can it output constraint check results and locate failure causes?
This approach better reflects the actual engineering value of the generation system than simply displaying a rendered image.
2. Translating Narrative Requirements into Computable Scene Specifications
“At dusk, a pelican rides a dark green bicycle along a coastal promenade” is a natural language narrative, not a complete engineering specification. To make it an executable task, the description must be decomposed into objects, attributes, relationships, and acceptance rules.
2.1 Separating Visual and Structural Requirements
Visual requirements include lighting, color, material, background, and artistic style. These factors affect the viewing experience but typically do not determine structural correctness.
Structural requirements include:
- The distance between the front and rear wheel axles;
- The connection relationships of the frame nodes;
- The positional relationship between the handlebar grip points and wingtips;
- The linkage between the crank, pedals, and feet;
- The coplanar relationship among the chainring, rear cog, and chain;
- The mounting relationship of the toolkit to the frame and the fishing net to the rack.
Structure should be validated before visual effects are refined. Otherwise, fine materials and complex lighting may mask fundamental geometric errors.
2.2 Defining a Unified Coordinate System
It is recommended to define the vehicle’s forward direction as the longitudinal axis, the left-right direction as the lateral axis, and the vertical direction as the height axis. The orientations of the wheel axles, crank axle, and handlebar should all derive from this convention.
Additionally, lengths should explicitly use meters, angle inputs should use degrees, and internal trigonometric calculations should use radians. Unit conversions must be centralized to avoid redundant or missed conversions across different modules.
The coordinate system should also include definitions for local coordinates. For instance, a contact point on the pedal surface should first be described in the pedal’s local coordinate system and then transformed into world coordinates. This way, when the pedal rotates, the contact point updates automatically, eliminating the need to manually guess its new position.
2.3 Completing Parameters Not Inferable from Narratives
The wheelbase alone does not uniquely define a complete bicycle. Wheel diameter, crank length, bottom bracket position, seat tube angle, and handlebar height must also be specified.
If the task allows artistic design, public default values or scaling rules can be set for these quantities, but it should be clarified that these are modeling assumptions, not the only answers for a real structure.
It is important to distinguish between two types of constants:
One type consists of core parameters specified by the user, such as wingspan, wheelbase, number of teeth, and crank phase. The other type consists of auxiliary parameters required for modeling, such as chain pitch, tube diameter, and contact tolerance.
Avoiding “magic numbers” does not mean all dimensions must be forcefully derived from a few inputs; rather, it requires every numerical value to have a name, unit, purpose, and source.
3. Building Parameter Dependency Graphs Instead of Stacking Independent Objects
The key to parametric modeling is that when one parameter changes, all related objects update along clearly defined dependency relationships.
Take wingspan as an example. It can affect grip spacing but does not directly determine the complete riding posture. Wing root position, torso tilt angle, wing segment length, and joint range of motion also determine whether the wingtips can reach the target.
A reasonable dependency chain should be:
Wingspan → Wing segment length and grip spacing → Left and right wingtip targets → Joint solving → Final wing posture.
If only the handlebar is widened while the wings continue to use their original coordinates, the parametric update is only half complete.
The dependency relationship for the wheelbase is similar:
Wheelbase → Front and rear wheel axle positions → Frame nodes → Fork and rack positions → Attachment mounting points.
For the frame, key nodes such as the head tube, seat tube, bottom bracket, and rear axle should be calculated first, and tubes generated based on these nodes. Generating a set of fixed-length tubes first and then forcing them to fit a new wheelbase through global scaling will easily cause node misalignment and local proportion distortion.
An illustrative build sequence is as follows:
Configuration read and validation
→ Derived parameter calculation
→ Frame and wheelset
→ Drivetrain system
→ Character contact targets
→ Joint and posture solving
→ Attachments, materials, and lighting
→ Automated acceptance and result output
This sequence reflects dependencies: foot posture depends on pedal position, and pedal position depends on crank phase. Therefore, feet should not be determined before the drivetrain.
4. Chain Generation Tests Geometric and Mechanical Constraints
The chain is a typical component that distinguishes “visual assembly” from “relational modeling.” Simply drawing a curve connecting two circles usually yields only a rough outline and cannot guarantee correct wrapping and tension.
4.1 Converting Teeth Count to Dimensions via Chain Pitch
Let the chain pitch be p, the gear teeth count be N. The ideal pitch circle radius can be expressed as:
r = p / [2 × sin(π / N)]
This relationship establishes a link between the number of teeth and geometric scale. When the chainring teeth count increases, its pitch circle radius increases accordingly, and the chain’s tangent points, wrap angle, and path length must be recalculated.
The pitch circle here is a geometric reference for the transmission relationship and cannot be directly used as the tooth tip profile. If clear tooth shapes are required, the tooth tips, tooth roots, and visual simplification rules should be defined independently.
4.2 Chain Paths Composed of Arcs and Common Tangents
In an idealized model with two gears, coplanar alignment, and no guide pulleys, the chain path can consist of wrapping arcs on the two gears and two external common tangents.
When solving, the following should be checked:
- Whether the center distance between the two gears allows for the construction of this path;
- Whether the tangent connections are continuous;
- Whether the chain lies in the same transmission plane;
- Whether the chain thickness interferes with the gears or frame.
If discrete chain links are used, the issue of requiring an integer number of links must be addressed. The continuous path length divided by the pitch is usually not an integer. Therefore, you cannot simultaneously demand a fixed center distance, a fixed integer link count, and perfect tensioning after arbitrarily changing the number of teeth.
Feasible approaches include allowing rear axle position adjustment, setting up a tensioner mechanism, or explicitly stating the use of a continuous curve approximation without simulating real link assembly. The chosen approach should be specified in the task requirements rather than implicitly decided by the generation model.
4.3 Distinguishing Static Phase from Dynamic Transmission
For ideal non-slip transmission, the rotation increment of the rear cog satisfies:
Rear cog rotation increment = Crank rotation increment × Chainring teeth count / Rear cog teeth count.
However, “the crank is driving the rear wheel” also involves the connection state between the rear cog and the hub. In the presence of a freewheel mechanism, the rear wheel is not rigidly linked to the crank in all states.
If the task only requires a static scene, it can declare the use of a driving engaged state and display consistent transmission relationships. If the task includes animation, time, initial phase, and motion state should be further defined; a single posture-correct image cannot replace dynamics validation.
5. Explicit Constraint Solving for Foot and Wing Contact
Character posture should not be established independently of the bicycle; it should be driven by contact targets.
5.1 Calculating Pedal Position from Crank Phase
Let the crank center be C, the crank length be L, and the phase be θ. Within the defined crank plane, the pedal axle position can be calculated via circular motion. The left and right cranks differ by half a cycle, and the two pedal targets should follow this relationship.
The foot contact point requires further consideration of pedal thickness, pedal orientation, and sole shape. Placing the foot center at the pedal center does not mean the two are in contact.
A more robust method is to define sole sampling points, check their distance to the pedal surface, and limit obvious penetration. For stylized characters, simplified contact surfaces can be used, but it should be clarified that this is a geometric approximation.
5.2 Addressing Potential Contradictions in Phase Descriptions
If the requirement is that one foot always presses a specified pedal, the other foot always hovers near the lowest position of the corresponding pedal, and arbitrary crank phase modifications are simultaneously allowed, these conditions may not be simultaneously satisfiable.
The left and right cranks have a fixed phase difference. Whether a pedal is at its lowest point is determined by the current angle; it cannot remain in the lowest position at arbitrary phases.
Therefore, the specification should choose an explicit interpretation:
- The hovering foot follows the opposite pedal and maintains a specified clearance distance;
- The hovering foot is only required to approach the low position within a specific phase interval;
- The character’s foot is allowed to detach from the corresponding pedal, but its position is no longer required to consistently match the pedal phase.
Identifying and clarifying such conflicts is itself an important part of evaluating spatial reasoning capability. A reliable system should report incompatible constraints rather than fabricating a superficial pass using hidden offsets.
5.3 Checking Target Reachability for Wing Contact
After widening the handlebar, the wingtip target may exceed the character’s reachable range. In this case, simply stretching the wing mesh to mask the problem is unacceptable.
Reachability checks should be performed based on wing segment lengths and joint limits. If necessary, adjust the torso forward lean, wing root position, or handlebar height. If these variables are not allowed to change, a constraint failure message should be returned.
This elevates the evaluation from “whether the position is close” to “whether the posture is valid under the allowed conditions.”
6. Replacing Single Screenshots with Automated Acceptance
Headless batch execution helps reduce manual operation discrepancies, provided that the execution environment, random seeds, and resource conditions remain consistent.
It is recommended to save parameter snapshots, structural inspection reports, execution logs, and multi-angle images for each generation. Structured reports should include at least the following metrics:
- The error between the actual front and rear wheel axle distance and the target wheelbase;
- The distance from the left and right wingtips to the grip targets;
- The distance from the sole to the pedal surface and any penetration;
- The continuity and coplanarity of the chain path;
- Collisions or interference between key objects;
- The presence of invalid numerical values, degenerate geometry, or missing objects in the scene.
Tolerances should be set according to scene scale and purpose. Presentation-level scenes and engineering assembly models have different precision requirements and cannot apply the same unexplained threshold.
Testing should also include parameter perturbation, not just default parameters. For example, adjust the wingspan from 1.15 meters to 1.35 meters, the chainring teeth count from 44 to 52, and the crank phase from 35 degrees to 140 degrees. Modifying these individually and then in combination can distinguish single-dependency errors from multi-parameter interaction errors.
The test set should be fixed in advance; samples should not be kept only if they perform well after seeing the results. Reports should also distinguish between initial execution results, post-repair results, and the scope of manual intervention, avoiding treating success after repeated modifications as a single-generation success.
7. Moving from Capability Evaluation to Maintainable Engineering Workflows
For developers, the most valuable output is not a massive but hard-to-modify script, but a scene construction workflow with clear responsibilities that can be validated and repaired.
It is recommended to divide the system into five modules: configuration, geometry, posture, visual, and validation. The geometry module is solely responsible for structure generation, the posture module handles targets and joints, the visual module manages materials and lighting, and the validation module independently inspects results.
This design narrows the scope of error localization. For instance, a loss of foot contact might stem from an incorrect crank coordinate, a local transformation error, or a posture solving failure, rather than being broadly attributed to “the model generating poorly.”
During batch execution, execution time limits, memory budgets, output directory isolation, and file access restrictions should also be set. Generated code must run in a controlled environment; execution risks cannot be ignored simply because the task involves 3D modeling.
Ultimately, evaluating the spatial reasoning and 3D generation capabilities of large models should focus on three consecutive questions: Can it translate natural language into explicit constraints? Can it establish consistent parameter dependencies? Can it pass interpretable checks after conditions change?
Beautiful visuals, verbose code, or rapid execution cannot individually answer these questions. Only when structure, motion, contact, and parameter updates form a complete closed loop does the generated result truly transition from a one-off demonstration to a reusable technical asset.
