Evaluating Spatial Reasoning in Parametric 3D Generation

    Rendered views are a weak test of spatial reasoning in generative 3D. This article describes a reusable evaluation method: require a complete, headless-runnable scene script, treat parameters as geometric contracts, and check derived relationships under perturbation.

    When generative models claim near-leading spatial reasoning, a single render is not enough. A render only shows that one viewpoint looks plausible. It does not prove that part-to-part spatial relations, kinematic coupling, and parameter dependencies are correct. A more reliable test is to require a complete script that can run in batch in a 3D engine without a GUI, then perturb parameters. This article does not focus on a specific product. It abstracts the task into a reusable method for evaluating 3D spatial reasoning.

    Why evaluate spatial reasoning with parametric scripts

    Typical text-to-3D demos hide failures behind visuals: a chain that floats, a foot that intersects a pedal, handlebar width that matches composition but is not bound to the rider skeleton. With a favorable camera and occlusion, those errors may not show in a screenshot.

    Parametric scripts are inspectable. They turn “looks like” into computable geometry: handlebar width derived from wingspan, frame size from wheelbase, chain path from chainring and cog tooth counts, pedal position from crank phase. The model must not emit a static statue. It must emit a spatial system that re-solves when parameters change.

    A valid task can be specified as follows: at dusk on a seaside promenade, a large waterbird rides a dark-green steel bicycle; body leaned forward, both wings reaching the handlebars, one webbed foot on a pedal, the other hanging at the low return of the stroke; a classic diamond frame, a tool bag on the downtube, a roll of fishing net on the rear rack; the chain taut, the crank driving the rear wheel, and the riding pose consistent with the current drivetrain phase.

    No reference image is provided. The deliverable is a complete, executable scene script. Style may remain, but key spatial relations must be parameter-checkable. The goal is not whether the model “draws well,” but whether it can turn structure, contact, motion phase, and size dependencies in text into consistent geometric constraints.

    Parameters are geometric contracts, not decoration

    The evaluation script should declare global constants at the top. All geometry must be derived from them. Functions must not contain magic numbers decoupled from those constants. Example configuration in pseudocode:

    1. CONFIG = {
    2. WINGSPAN: 1.15,
    3. WHEELBASE: 1.02,
    4. CHAINRING_TEETH: 44,
    5. COG_TEETH: 16,
    6. CRANK_PHASE_DEG: 35.0
    7. }
    8. function build_scene(c):
    9. frame = build_frame(c.WHEELBASE)
    10. handlebar = build_handlebar(c.WINGSPAN)
    11. drivetrain = build_drivetrain(c.CHAINRING_TEETH,
    12. c.COG_TEETH,
    13. c.WHEELBASE)
    14. pose = solve_rider_pose(c.WINGSPAN,
    15. c.CRANK_PHASE_DEG,
    16. drivetrain.pedal_centers)
    17. validate_geometry(frame, handlebar, drivetrain, pose)
    18. validate_contacts(pose, handlebar, drivetrain)
    19. return scene

    “Contract” means: when wingspan changes, handlebar width, shoulder position, wing-bone length, grip spacing, and wing-tip contact must all update; when wheelbase changes, axle positions, frame tubes, seat-tube angle, and chain path must re-solve; when tooth counts change, chainring radius, cog radius, wrap angles, and chain length must be recomputed; when crank phase changes, pedal centers, ankle pose, and support-foot contact must re-solve.

    If the model hard-codes values that only hold at defaults, changing parameters exposes the failure. That is the point of the evaluation.

    Three core derived relationships

    1. Wingspan drives handlebars and rider pose

    Handlebar width and grip spacing should be derived from wingspan, not set by eye. A stricter approach is to set shoulder width and upper- and forearm lengths from wingspan, then inverse-kinematics the wing tips to the grips. Grip spacing should stay in a range that is neither too wide for contact nor so narrow that the wings fold or intersect.

    When wingspan changes from 1.15 to 1.35, check: whether the handlebar widens; whether grip center distance still matches wing-tip reach; whether wing tips stay in contact with or wrap the grips; whether joint bends stay reasonable; whether chest, neck, and handlebar intersect. Updating only the bar or only the wing bones produces “correct at default, broken under perturbation.”

    2. Tooth count drives the chain path

    Chainring and cog radii must not be hard-coded. They should be derived from tooth count and chain pitch, using an approximate pitch-circle radius, with the chain remaining tangent to both wheels. After chainring teeth change from 44 to 52, the chain path must recompute tangents, wrap, and total length. The chain must not pierce the frame, float, or leave the tooth surfaces.

    If the rear axle is fixed, a tensioner must absorb length change. If travel is insufficient, the script should report constraint failure rather than draw a curve that merely looks like a chain. Acceptance can measure tangent error from the chain polyline to the sprocket pitch circles, minimum chain-to-frame clearance, wrap reasonableness, and obvious slack.

    3. Crank phase drives pedals and foot contact

    Crank phase sets both pedals on a circle. The support foot must contact one pedal surface; the free foot should keep a reasonable gap at the low return. After phase changes from 35° to 140°, it is not enough to rotate pedal meshes. Legs and ankles must re-solve to the new pedal positions.

    Acceptance should distinguish “foot center near the pedal” from “contact patch on the pedal surface.” The former can be visual proximity; the latter requires contact point, normal, and penetration within thresholds. The free foot should still be low, not graze a pedal, and not pierce frame or crank.

    Designing perturbation tests

    Use single-variable tests to isolate coupling errors and combination tests to check whether parameter relationships are actually understood.

    Perturbation Expected response Key checks
    Wingspan 1.15 → 1.35 Handlebar widens; wing bones and grips re-solve Wing-tip/grip contact, reasonable joints, no intersections
    Chainring 44 → 52 Larger chainring radius; chain path recomputed Tangency, wrap, length, and tension remain valid
    Crank phase 35 → 140 Pedals rotate; pose re-solves Support foot still contacts; free foot still low on return
    Multi-parameter combo All derived relations recompute together No leftover hard-coding, no new collisions

    Combination tests matter most. With several parameters changing at once, the model cannot rely on small patches near defaults. Geometry must come from a unified spatial solve.

    Automatic acceptance metrics

    An executable validator can be organized as:

    1. function validate(scene, c):
    2. assert_in_range(scene.handlebar.grip_span,
    3. derive_grip_span(c.WINGSPAN), EPS)
    4. assert_distance(scene.rider.wing_tip,
    5. scene.handlebar.grip, 0, EPS)
    6. assert_contact(scene.rider.support_foot,
    7. scene.drivetrain.pedal_surface,
    8. EPS)
    9. assert_air_gap(scene.rider.swing_foot,
    10. scene.drivetrain.return_pedal,
    11. MIN_GAP, MAX_GAP)
    12. assert_tangent(scene.drivetrain.chain,
    13. scene.drivetrain.chainring)
    14. assert_tangent(scene.drivetrain.chain,
    15. scene.drivetrain.cog)
    16. assert_clearance(scene.drivetrain.chain,
    17. scene.frame, MIN_CLEARANCE)
    18. assert_no_intersection(scene.rider, scene.bicycle)

    Metrics fall into four groups.

    First, parameter-derivation correctness: whether key sizes come from config constants, whether hard-coding is obvious, and whether related geometry updates when constants change. Second, contact and collision: gaps and penetration among wing tip and grip, foot and pedal, chain and sprockets, chain and frame. Third, motion-phase consistency: pedal positions versus crank angle, support versus free foot. Fourth, structural integrity: non-finite vertices, broken faces, self-intersections, or missing parts.

    Common failure modes

    The most common failure is declaring parameters at the top and not using them. Handlebar width reads wingspan, but wing-bone length stays fixed; defaults align by chance, then wing tips float.

    Second is unit confusion. Degrees versus radians, meters versus centimeters, local versus world frames send crank phase the wrong way and offset chain tangency.

    Third is static appearance without drivetrain relations. Drawing a bent tube as a chain is easy. Keeping it tangent, with reasonable wrap, length absorbable by a tensioner, and no collision with chainstay or crank is not.

    Fourth is using ankle or foot-center proximity instead of a real contact patch, so renders look close while geometry shows penetration or edge grazing.

    Fifth is lack of robustness to perturbation. Passing the default config is not competence. The meaningful test is: leave the code unchanged, change only parameters, and re-run.

    Engineering recommendations

    For developers, this evaluation can drive 3D generation design. Split the scene into a parameter layer, a geometry-build layer, a pose-solve layer, and an acceptance layer. Parameters define sizes and phase only. Geometry is derived. Pose handles contact and joints. Acceptance is independent so the generator does not grade itself.

    Export structured diagnostics for key parts: grip centers, wing-tip coordinates, pedal centers, contact normals, chain samples, minimum-clearance locations. Failures then point to geometric relations, not only a poor render.

    Run a small parameter sweep with code fixed, varying wingspan, tooth counts, and phase. Record hard-constraint pass/fail and pass rate. Pass rate is more informative than a single success. The same checks fit containerized batch jobs, with object storage for scripts, logs, and diagnostics, as a traceable evaluation pipeline.

    Score visual quality separately from spatial correctness. Materials, composition, and atmosphere can improve look and feel; they do not replace contact, collision, tangency, and phase checks. A scene may be stylized. Geometric constraints should not be vague.

    Conclusion

    Evaluating a generative model’s 3D spatial reasoning is not about one eye-catching render. It is about turning text into an executable, derived, verifiable geometric system. Parametric scene scripts provide that window: wingspan tests size coupling, tooth count tests drivetrain recomputation, crank phase tests contact and motion consistency.

    The signal is not a single sample image, but whether the model stably emits “parameters as contract” code: geometry derived from config, contacts computable, perturbations re-solvable. Only under those constraints does spatial reasoning become an engineering result that can be audited.