From Spatial Reasoning to Parametric Modeling: A Practical Approach to Evaluating LLM Capabilities
Large language models can generate 3D scenes from natural language, but a good-looking render does not prove correct spatial understanding. This article uses the task of generating a pelican riding a bicycle to explain how to evaluate LLMs with engineering evidence: turning text into constraint graphs, building closed parametric dependency chains, handling chain drive and pedal geometry, extending static scenes to procedural animation, and setting up layered, reproducible automated acceptance checks. It also covers fairness and safety considerations when benchmarking generative systems.
1. Evaluating LLMs: From Demo Effects to Engineering Evidence
Large models can generate code from natural language and use that code to construct 3D scenes. However, there is still a clear gap between “being able to generate a scene” and “being able to understand the scene correctly.”
A visually pleasing render may hide problems such as incorrect frame connections, a chain passing through parts, or feet that never touch the pedals. A script that runs smoothly may simply use a large number of hard-coded coordinates to place objects in plausible-looking positions. Once you change the wheelbase, wingspan, or crank angle, those relationships fall apart.
Therefore, the core of evaluating such a model should not be whether a single output looks impressive, but whether it can accomplish three levels of work:
- Correctly understand the objects, actions, and constraints described in natural language.
- Convert those constraints into computable geometric relationships and build an executable scene.
- Maintain structural consistency after parameter changes, supporting automated checks and repeatable delivery.
A representative entry point is a task like this: from a text description alone, generate a pelican riding a bicycle, where the pose, frame, and drivetrain all follow the same set of parameters. This kind of task involves semantic understanding, spatial modeling, code organization, and constraint solving at the same time, making it a better test of engineering capability than generating a static decorative object.
To be clear, a task description alone is not enough to prove the performance of any specific model. Without complete generation results, execution logs, and acceptance records, no ranking can be given, and a single success or failure cannot be generalized into a stable capability.
2. Turning a Text Scene into a Constraint Graph
1. Decompose objects first, then relationships
“A pelican riding a bicycle” is not an isolated modeling requirement; it is a set of interdependent objects and relationships.
Scene objects can be divided into four categories:
- Environment: seaside promenade, ground, dusk lighting, and background.
- Bicycle structure: wheels, frame, fork, handlebars, cranks, pedals, and drivetrain components.
- Biological structure: torso, head and neck, beak, wings, legs, and webbed feet.
- Accessories: tool bag, rear rack, and fishing net.
What truly determines task difficulty is the relationships between objects. For example, the wheel axles determine the frame layout, the handlebar grip points determine where the wing tips must be, the pedal position determines the foot contact targets, and the crank angle affects pedal and drivetrain state.
If the model generates objects one by one and then “arranges them together” by hand, it will easily miss these dependencies. A more reliable approach is to first build a constraint graph: clarify which quantities are inputs, which are derived results, and which relationships must always hold.
2. Separate hard constraints from soft constraints
Hard constraints should be verifiable through numerical checks, for example:
- The distance between the two wheel axles equals the specified wheelbase.
- Frame tube endpoints coincide with the corresponding connection nodes.
- Wing tips maintain contact with the handlebar grip points.
- The pedal center is computed from crank length and phase.
- The chain path is geometrically consistent with the front and rear sprockets.
Soft constraints mainly involve visuals and narrative, such as the dusk atmosphere, feather layering, the texture of the tool bag, and how natural the forward-leaning pose looks.
The two must not be mixed together. Excellent visual style should not offset structural errors, and structural correctness does not mean the scene already has ideal expressiveness. Evaluating them separately makes it possible to pinpoint which layer a model actually failed on.
3. The Key to Parametric Modeling: Building a Complete Dependency Chain
1. Top-level parameters cannot be mere decoration
The task requires placing wingspan, wheelbase, chainring tooth count, rear cog tooth count, and crank phase at the top of the script. The point is not to check whether a few constants appear in the code, but to verify whether these inputs truly control downstream geometry.
A reasonable dependency chain can be expressed as:
Wingspan → grip spacing → wing tip targets → wing pose
Wheelbase → front/rear axle positions → frame nodes → tube lengths and directions
Sprocket tooth counts → pitch circle radii → chain tangents and wrap paths
Crank phase → pedal positions → foot contact targets → leg pose
If changing the wingspan widens the handlebars but the wings stay where they were, the parameter linkage is not closed. If changing the chainring tooth count merely enlarges a disk while the chain still follows the old path, that does not count as correct parametric modeling.
2. Fixed numbers are acceptable, but their meaning must be clear
Engineering code cannot be entirely free of fixed values. Material thickness, styling proportions, sampling density, and acceptance tolerances all need concrete settings. The question is whether these numbers have clear meaning and a reasonable relationship to the top-level parameters.
For example, torso length can be derived from wingspan multiplied by an explicitly declared style ratio; tire width can be an independent size parameter; the number of chain samples can belong to a quality configuration.
Conversely, if foot coordinates, grip coordinates, or sprocket radii are hard-coded inside internal functions, they may become disconnected from the input parameters. Evaluation should focus on finding these hidden coordinates, rather than mechanically counting how many numbers appear in the code.
3. Establish a unified coordinate system
Before modeling begins, agree on the forward, lateral, and vertical directions. The bicycle body can lie mainly in the longitudinal–vertical plane, while handlebar width and the left/right pedals extend laterally.
A unified coordinate convention reduces confusion over rotation axes, left/right mirroring errors, and misuse of local coordinates. All parts should ideally be positioned through a small set of semantically clear nodes—rear axle, front axle, bottom bracket, seat tube top, and grip points—rather than storing a large number of unrelated position values.
4. Chain and Pedals: Where Spatial Reasoning Is Most Easily Exposed
1. Sprocket dimensions require a consistent geometric model
For a chain with pitch p and a sprocket with N teeth, the pitch circle radius can be calculated as:
r = p / [2 × sin(π / N)]
This is better grounded than setting the radius to an arbitrary multiple of the tooth count. When the tooth count changes, the pitch circle radius changes, and the tangents, wrap angles, and total chain path between the front and rear sprockets should be recomputed accordingly.
For visual demonstrations, the chain can be simplified into repeated units distributed along a closed path; if you want to claim mechanical-grade accuracy, you also need to handle integer chain links, sprocket engagement, and tensioning mechanisms.
Note that a fixed center distance, arbitrary tooth-count combinations, and an integer number of chain links cannot always be strictly satisfied at the same time. The program should explicitly state which approximation it uses, or allow adjusting the center distance and tensioning components, instead of packaging incompatible constraints as “perfectly correct.”
2. The chain path cannot be a stretched ellipse
In an ideal planar model, the chain path consists of two common tangent segments and two wrap arcs around the sprockets. During construction, check that:
- The sprockets lie in the correct drive plane.
- The center distance satisfies the conditions of the chosen tangent construction.
- Straight segments and arcs connect continuously.
- The chain does not visibly interfere with the frame or other parts.
- The path can be rebuilt stably after tooth-count changes.
3D scenes should also distinguish between the frame center plane and the plane the chain actually lies in. Looking correct in a side view alone does not prove the chain is not passing through the frame.
3. Pedals and feet must share the same phase source
Let the crank center be C, crank length L, and phase angle θ. Once the rotation plane is chosen, the pedal position follows from the circle’s parametric equation. The opposite crank should be offset by half a revolution.
The foot contact target should be derived from the corresponding pedal position, not guessed as a coordinate that “looks about right.” The legs then adjust their pose based on the torso position and the foot target, with a reachability check on the target.
With a simplified two-segment leg structure, the two segment lengths and the target distance can be used to determine whether a geometric solution exists. If the target is out of reach, the program should report a constraint conflict or adjust the body position according to pre-declared rules.
The “hovering foot at the lowest point” in the original task also needs clarification: the pedal reaching its lowest point and an arbitrary crank phase cannot always hold simultaneously, and a hovering foot does not necessarily move with the pedal. A reliable implementation should define “pedaling contact state” and “hovering foot pose” separately, rather than hiding the contradiction behind vague wording.
5. Extending from Static Scenes to Procedural Animation
A single-frame scene only shows the structure at one moment. To demonstrate that the bicycle is actually moving, you need to establish the relationship between a time variable and the motion state.
In an ideal, non-slipping chain drive, the ratio of rear cog angular speed to crank angular speed is determined by the front and rear tooth counts. Whether the rotating rear cog actually drives the wheel also depends on the drivetrain connection; for example, a freewheel structure cannot simply be treated as a permanently rigid connection.
To further show the vehicle moving forward, the wheel angular speed must be linked to the tire’s effective radius. Uniform linear motion works well as an entry-level test scenario for checking whether wheel rolling matches body displacement.
Evaluation of procedural video should add three dimensions:
- Temporal continuity: parts must not jump abruptly between adjacent frames, and chain repeat units must not visibly flicker or reset.
- Causal motion consistency: cranks, pedals, feet, and the chain should follow a unified clock rather than playing independent, unrelated loops.
- Camera verifiability: in addition to showcase shots, provide fixed side views, top views, or close-ups so key structures can be inspected.
The value of creative coding lies in combining narrative, visuals, and rules, but artistic expression cannot replace motion consistency. The two should use different evaluation criteria.
6. Building a Reproducible Automated Acceptance Pipeline
1. Layered acceptance is more reliable than a single score
Split acceptance into five layers:
- Execution layer: does the script run to completion in the agreed headless environment?
- Structural layer: are objects, nodes, and connection relationships complete?
- Constraint layer: do geometric relationships still hold after parameter changes?
- Dynamic layer: is motion continuous and consistent across frames?
- Presentation layer: is the image clear, the pose natural, and the narrative readable?
Successful execution only means the first layer passed. A model may generate valid code and still fail at later layers.
2. Use parameter perturbation to check generalization
Use the variations given in the original task: change the wingspan from 1.15 to 1.35, the chainring tooth count from 44 to 52, and the crank phase from 35 degrees to 140 degrees. Change one parameter at a time first, then combine changes, to make it easier to locate gaps in the dependency chain.
What should be recorded is not “whether the new image still looks good,” but:
- Whether the grip spacing changes according to the design rules.
- Whether the distance between wing tips and grips stays within tolerance.
- Whether the chain path is regenerated after the sprocket grows.
- Whether pedals and contacting feet move in sync.
- Whether new obvious collisions or unreachable poses appear.
These values are test inputs and do not represent any universal optimal dimensions.
3. Make the script output checkable geometry data
Besides the rendered image, the scene script should output key nodes, dimensions, phases, and constraint errors. Illustrative check logic can be written as:
Generate scene (input parameters)Extract axle, grip, wing tip, pedal, and foot positionsCheck: error between axle distance and target wheelbaseCheck: contact error between wing tips and gripsCheck: distance between contacting feet and pedalsCheck: chain path closure errorCheck: obvious interference among key partsSave check results and diagnostic views
This describes the acceptance approach, not any real tool interface. In practice, implement it based on the data structures of your chosen environment, and make units, tolerances, and failure criteria explicit.
7. Ensuring Fair Evaluation and Safe Delivery
When evaluating generative systems, fix the task text, runtime environment, resource limits, number of repair attempts, and acceptance criteria. Results from different systems are hard to compare directly if they use different prompts, different amounts of manual modification, or different execution budgets.
Distinguish between “first-attempt success rate” and “success rate after limited repair.” The former reflects initial understanding and generation quality; the latter reflects the ability to locate errors and iterate. Both are valuable, but they should not be blended into one vague conclusion.
Scripts generated by models should run in an isolated execution environment with restricted file access, network access, runtime, and resource consumption. Generated code is untrusted input—even if the task is only building a 3D scene, it may delete files, loop infinitely, or consume abnormal resources.
For enterprise-grade delivery, further store input parameters, script versions, execution logs, acceptance reports, and artifact digests so every result is traceable. General infrastructure such as object storage, task queues, logging services, and monitoring alerts can support batch runs and result management, but should not be mistaken for capabilities of the model itself.
8. Conclusion: The Real Highlight Is Constraint Closure, Not Just a Complete Picture
Text-driven 3D generation is a window into the spatial reasoning ability of large models, but it is also shaped by code quality, modeling strategy, and the execution environment. Any evaluation should therefore be built on a complete chain of evidence, avoiding the mistake of treating a single demo as a stable capability.
For developers, the highlights worth watching are: whether the model can identify implicit constraints, establish parameter dependencies, maintain contact and drivetrain relationships after changes, proactively expose approximations and conflicts, and deliver reproducible, checkable engineering artifacts.
Only when the evaluation standard shifts from “what image was generated” to “which relationships were correctly established and continuously maintained” will the actual capability boundaries of large models become clearer—and technical selection and real-world deployment gain a reliable basis.
