Evaluating LLM Spatial Reasoning Through 3D Scene Generation

    3D scene generation provides a practical way to evaluate whether large language models can translate natural-language requirements into consistent geometry. This article explains how to design a parameterized benchmark, verify contact and drivetrain constraints, distinguish visual approximations from mechanical models, and assess generated scenes through execution tests, parameter changes, and geometric checks rather than appearance alone.

    1. Spatial Reasoning Requires More Than a Convincing Render

    In AI-assisted programming and creative content generation, 3D scene generation is a valuable integrated task. It requires a model to translate objects, dimensions, poses, connections, and motion described in natural language into geometric representations that can be executed, modified, and verified.

    An attractive render, however, does not establish reliable spatial reasoning. Decorative details can conceal structural errors. A generated script may run successfully while placing a chain through the bicycle frame, a foot away from its pedal, or a wing above the handlebar instead of touching it.

    Evaluation should therefore distinguish three levels:

    1. Representational completeness: Does the scene contain the required objects and communicate the intended narrative?
    2. Geometric correctness: Are object positions, orientations, connections, and contacts reasonable?
    3. Constraint consistency: When key parameters change, do the associated geometry and poses update together?

    The third level often reveals the clearest capability differences. A model may produce a plausible initial scene by relying on familiar visual patterns. Without explicit dependencies, however, a parameter change can break local structures.

    For developers, the important question is not whether a single demonstration looks impressive, but whether its output can become part of a maintainable, reproducible engineering workflow.

    2. Turn a Creative Scene into a Verifiable Technical Task

    Consider the following task: a pelican rides a dark green steel-frame bicycle along a coastal promenade at dusk. The bicycle has a classic diamond frame, a tool bag hanging from the down tube, and a fishing net secured to the rear rack. The pelican leans forward, extends both wings toward the handlebars, keeps one webbed foot in contact with a pedal, and holds the other in the recovery phase.

    Although this sounds like an artistic brief, it contains several engineering constraints:

    • Both wheels must make appropriate contact with the ground.
    • Frame nodes must connect to the corresponding axle centers and support points.
    • Handlebar grip points must be linked to the wing tips.
    • Crank phase must determine both pedal positions.
    • Foot pose must follow changes in pedal position.
    • The front chainring and rear sprocket must jointly determine the chain path.
    • If the scene is animated, the crank, chain, and rear wheel must obey drivetrain relationships.

    To prevent the model from producing a one-off static assembly, the task should include explicit input parameters.

    Parameter Initial value Main effects
    Wingspan 1.15 m Wing dimensions, handlebar width, grip-point layout
    Wheelbase 1.02 m Front and rear axle positions, frame geometry
    Front chainring tooth count 44 Chainring dimensions, chain path, transmission ratio
    Rear sprocket tooth count 16 Rear sprocket dimensions, transmission ratio
    Crank phase 35° Pedal positions, foot contact pose

    These values are test inputs, not model performance metrics. They also do not imply that the dimensions constitute a validated mechanical design.

    Deliverables should include a scene-generation script that runs in a headless environment and structured data for checking geometric relationships. Rendered images alone cannot adequately verify parameter dependencies.

    3. Parameterization Means Dependencies, Not Just a List of Numbers

    Putting parameters at the top of a script is only the surface form of parameterization. True parameterization requires related objects to derive from the same design variables rather than use separate, approximately matching fixed coordinates.

    For example, if handlebar width depends on wingspan but wing-tip positions remain hard-coded, changing the wingspan will separate the wings from the grips. The script may still execute, but it has failed the dependency check.

    A better approach is to establish a parameter dependency graph:

    • Wheelbase determines the front and rear axle positions.
    • Axle positions and frame proportions determine frame nodes.
    • Frame nodes determine the seat, handlebars, and crank center.
    • Wingspan and riding posture determine the wings’ reachable range.
    • Grip-point layout determines wing-tip contact targets.
    • Crank phase determines pedal targets.
    • Pedal targets determine foot positions and leg poses.
    • Tooth counts and chain pitch determine sprocket pitch circles.
    • Pitch circles and axle positions determine the chain path.

    The task also needs parameters not explicitly specified in the original brief, such as wheel radius, crank length, chain pitch, frame proportions, and wing-segment proportions. These should be exposed as design parameters or configuration options rather than hidden as unrelated constants inside functions.

    Avoiding “magic numbers” does not mean banning all numeric literals. Angle-conversion factors, mathematical constants, and fixed structural counts in geometric algorithms have clear meanings. The problem is unexplained geometric dimensions that have no traceable source and are disconnected from design variables.

    4. Use Consistent Coordinate Systems

    Many errors in 3D generation come from inconsistent coordinate conventions rather than failed algorithms.

    Define the scene conventions explicitly:

    • The longitudinal axis represents the bicycle’s forward direction.
    • The lateral axis represents left and right.
    • The vertical axis represents height.
    • Ground level is zero.
    • All lengths use meters.
    • Conversion between input angle units and internal calculation units is handled centrally.

    Then define local coordinate systems for the wheels, crank, pedals, and body parts.

    Wheel-center height should derive from the tire’s outer radius. The crank center should derive from the frame geometry. Left and right pedals should be separated along the lateral axis rather than placed in the same plane as the chainring or frame.

    Local coordinate systems also simplify rotation. Instead of repeatedly calculating world coordinates for every component, define each component relative to its parent and apply consistent transformations. This helps related parts remain aligned when the frame moves, the crank rotates, or the character’s pose changes.

    5. Chain Modeling: Visual Approximation Versus Mechanical Validity

    The chain is a particularly useful part of this task for distinguishing capability levels. Drawing a curve between two circles provides a visual representation, but does not guarantee correct engagement with the sprockets.

    Tooth count must affect more than the number of visible teeth: it must also affect the pitch-circle dimensions. For chain pitch (p) and tooth count (N), an idealized pitch-circle radius is:

    [
    r=\frac{p}{2\sin(\pi/N)}
    ]

    If the front chainring changes from 44 to 52 teeth, its pitch circle grows. Both the straight chain runs and the wrap arcs must be recalculated.

    For two ideal circles in the same chain plane, common external tangents can define the upper and lower chain runs. Combining these with wrap arcs around the circles produces a closed path.

    At minimum, path generation should check:

    • Whether the two pitch circles permit valid external-tangent geometry.
    • Whether the upper and lower runs are tangent to the pitch circles.
    • Whether the path is closed.
    • Whether the chain and sprockets share the same plane.
    • Whether chain links are distributed continuously along the path.
    • Whether the chain intersects the frame, tires, or crank in unintended ways.

    A closed path does not, however, mean that a real chain is properly tensioned. Real chains consist of discrete links, so chain length is constrained by link count. After changing the chainring, a mechanically reasonable tension state may no longer be possible if wheelbase, link count, and all other conditions remain fixed.

    The acceptance protocol must therefore specify which model is required:

    A visualization model may recalculate the chain path and represent links at approximately uniform spacing, but must disclose that discrete chain-length constraints are not fully simulated.

    A mechanically constrained model must allow adjustments to link count, rear axle position, or a tensioning mechanism, and verify that those adjustments remain within the design limits.

    This distinction matters. An evaluation cannot require every parameter to remain fixed while also demanding unconditional satisfaction of potentially conflicting mechanical constraints.

    6. Crank, Feet, and Riding Posture: Define Motion Before Pose

    Crank phase should be the sole driving input for pedal position.

    Assume the crank rotates in the longitudinal–vertical plane. With crank center ((x_c,z_c)), crank length (L), and phase (\theta), the spindle position of one pedal is:

    [
    x=x_c+L\cos\theta
    ]

    [
    z=z_c+L\sin\theta
    ]

    The opposite crank is normally offset by 180°. The lateral positions of the two pedals must also derive from the crank and pedal geometry.

    Foot contact should not be faked by manually placing a foot near a pedal. A more reliable approach is to calculate the contact target on the pedal surface first, then solve the leg joints so that a designated contact point on the webbed foot reaches that target.

    The pedal spindle and load-bearing surface must be distinguished. The foot should contact the surface, not intersect the spindle. Pedal orientation also needs its own definition; it should not simply be assumed to remain at a fixed angle relative to the crank.

    The scene introduces a possible semantic conflict: requiring the other foot to “always remain at the lowest point of its recovery phase” is not inherently compatible with arbitrary crank phases. When the crank phase changes, the opposite pedal may not be near its lowest position.

    Two reasonable interpretations are:

    • For realistic cycling, move the raised foot along a defined recovery trajectory without requiring it to remain at the lowest position.
    • For a fixed narrative pose, keep the raised foot low, but state that it is off the pedal and that its position does not represent the pedal position.

    Recognizing and explaining conflicting constraints is itself part of spatial reasoning. Silently producing a scene that violates a requirement is not a reliable solution.

    7. Wing-Tip Gripping Requires More Than Proximity

    Making handlebar width depend on wingspan establishes a dimensional relationship, but does not automatically make the wing tips grip the handlebars.

    A more complete approach defines left and right grip points and uses them as wing-pose targets. It then checks:

    1. Whether each grip point is within the corresponding wing’s reachable range.
    2. Whether wing joints fold unnaturally.
    3. Whether each wing tip is close to its assigned grip point.
    4. Whether wing-tip orientation is compatible with the grip direction.
    5. Whether the wings intersect the frame or body.

    In stylized modeling, a wrapping shape at the wing tip can convey gripping. Even then, the contact relationship should have a detectable reference point or local region.

    If wingspan changes from 1.15 m to 1.35 m, handlebar width, wing dimensions, and pose should update together. Widening the handlebars alone is insufficient, as is uniformly scaling the entire character.

    8. Static Scenes and Motion Need Different Acceptance Criteria

    A static scene can verify consistency among crank phase, pedal positions, chain path, and riding posture. It cannot directly demonstrate that the crank is driving the rear wheel.

    If motion is required, introduce continuous time or a frame-sequence parameter and establish drivetrain constraints. In an ideal model that ignores slipping and similar effects, angular-speed magnitudes satisfy:

    [
    |\omega{\text{rear sprocket}}|
    =
    |\omega
    {\text{front chainring}}|
    \frac{N{\text{front chainring}}}{N{\text{rear sprocket}}}
    ]

    Whether the rear wheel rotates with the sprocket also depends on whether the drivetrain is currently engaged. The presence of a static chain is not evidence that power transmission has been implemented correctly.

    Video generation requires continuity checks as well. Chain links must not jump between adjacent frames, feet must not abruptly lose contact, and wheel speed should be consistent with forward speed. If rolling without slipping is required, linear speed and wheel angular-speed magnitude satisfy:

    [
    v=r\omega
    ]

    These constraints distinguish generating a sequence of images from generating a structurally consistent motion sequence.

    9. Automate Acceptance Instead of Relying on Appearance

    An engineering evaluation should combine execution, geometry, and visual checks.

    Execution Checks

    Confirm that the script runs in the agreed environment and produces the scene, preview images, and a validation report. Record errors, resource consumption, and actual execution time.

    Successful execution is an initial gate, not a final verdict on spatial reasoning.

    Parameter Perturbation Checks

    Run modified configurations in addition to the initial one—for example, increase wingspan, increase the chainring tooth count, or change crank phase.

    Change each parameter individually first, then test combined changes. Single-variable tests help isolate faults; combined tests reveal hidden conflicts among dependencies.

    Include phase-boundary and dimension-boundary tests to prevent solutions from relying on special branches written only for a few known inputs.

    Geometry Checks

    Checks can include:

    • Error between actual and target wheelbase.
    • Distance between wing-tip reference points and grip points.
    • Distance from foot contact points to pedal surfaces.
    • Chain-path fit to sprocket pitch circles.
    • Chain-path closure error.
    • Unintended object intersections.
    • Reachability of joint targets.

    Tolerances should reflect scene scale, sampling precision, and modeling purpose. One arbitrary fixed threshold should not be applied to every object. Contact regions should also be explicitly marked so that intended contact is not misclassified as a collision.

    Visual Checks

    Use side views, top views, and close-ups to inspect the frame, chain, wing tips, and feet. A single perspective view can hide errors. Lighting, materials, and background decoration should come after structural validation.

    10. Make Capability Assessments Reproducible

    The value of this task is that it translates abstract “spatial reasoning” into reproducible engineering requirements.

    A credible assessment should examine whether the model establishes clear parameter dependencies, understands contact and drivetrain constraints, identifies ambiguity, maintains structural consistency after input changes, and produces code that is easy to maintain and verify.

    One successful attempt shows only that the model produced a usable result under those conditions. One failed attempt also requires diagnosis: was the cause the environment, a script error, a misunderstanding of the requirements, or an unresolved geometric constraint?

    Without a standardized environment, acceptance criteria, and repeated tests, these outcomes do not support general capability rankings.

    For developers and enterprise users, the meaningful advance is not more decorative detail. It is greater engineering control: parameters have traceable sources, structures have explicit dependencies, constraints can be checked, errors can be located, and results can be reproduced.

    Connecting these elements is what allows AI-generated scenes to move beyond demonstrations and into sustainable technical workflows.