Testing Multimodal Models' 3D Spatial Reasoning: A Script-Based Evaluation Method

    This article presents a reproducible method for evaluating the 3D spatial reasoning of multimodal models by requiring them to generate a single parameter-driven Python script that runs in a headless, industrial-grade 3D authoring environment. It defines three prompt constraints—delivery format, parameterization, and dynamic consistency—and explains how changing only a few global constants turns subjective visual judgment into automated geometric assertions. Based on observed results across three model tiers, it breaks spatial reasoning into four independently testable sub-abilities and offers engineering recommendations for reusing the method in CI pipelines.

    1. The Problem: From Writing Code to Building Models

    Recent multimodal large models have drawn attention for their performance in 3D scene generation, with claims that they now approach the spatial reasoning level of top closed-source models. Such claims require a verifiable criterion. This article evaluates no specific product; instead, it abstracts the problem into a general engineering proposition: Can a model, from a natural language description alone, output a parameter-driven 3D modeling program that can be validated by a script?

    This distinction is critical. Generating a script that runs only shows that the model has grasped syntax and common interfaces. Generating a model in which “moving one parameter moves everything else” shows that the model has internally established spatial constraints between parts. The former is a text capability; the latter is spatial reasoning.

    Early evaluations often built scenes with lightweight front-end 3D libraries, but such environments offer limited support for complex mechanical structures, constraint relationships, and material representation, making the model’s real weaknesses hard to expose. A stricter approach is therefore to run directly in the headless scripting mode of industrial-grade 3D content creation software: no GUI, a pure command-line call to the interpreter to execute a Python script, with rendered results reviewed afterward in a unified way.

    2. Evaluation Design: Making Results Machine-Verifiable

    The core of the evaluation is not “does it look right,” but “does it remain self-consistent after parameters change.” This requires explicitly declaring three types of constraints in the prompt.

    The first is a delivery format constraint: only one complete script may be delivered, with no omitted fragments and no pseudocode, and it must execute successfully in one pass in headless mode.

    The second is a parameterization constraint: all key dimensions are placed at the top of the script as global constants, the geometry generation process must derive from these constants, and no magic numbers disconnected from the constants may appear inside function bodies. An example:

    1. # Global constants: all geometry is derived from these
    2. WINGSPAN = 1.15 # wingspan; determines handlebar width and grip span
    3. WHEELBASE = 1.02 # wheelbase; drives frame geometry
    4. CHAINRING_TEETH = 44 # chainring teeth
    5. COG_TEETH = 16 # rear cog teeth
    6. CRANK_PHASE = 35.0 # crank phase angle (degrees)
    7. # Derivation example: gear ratio determines chain length and cog radius
    8. GEAR_RATIO = CHAINRING_TEETH / COG_TEETH
    9. CHAIN_LEN = f(chainring_r(CHAINRING_TEETH), cog_r(COG_TEETH), WHEELBASE)
    10. PEDAL_POS = crank_tip(CRANK_PHASE, crank_length())

    The third is a dynamic consistency constraint: the drivetrain must be in a state of motion rather than a static prop, the crank drives the rear wheel, the chain stays tensioned, and the rider’s posture must correspond strictly to the current crank phase—one sole pressing on the pedal surface, the other hanging at the lowest point of the return stroke.

    The reviewer then does only one thing: change three values (increase the wingspan, increase the chainring teeth, change the crank phase to another angle), touch no code logic, re-run the script, and check whether the handlebar widens with the wingspan while the grips still enclose the bar ends, whether the chain path is correctly re-solved without clipping through or hanging slack, and whether the load-bearing foot still contacts the pedal surface.

    The value of this design is that it converts subjective aesthetic judgment into automated geometric assertions that anyone can reproduce.

    3. Observed Results: Three Typical Patterns

    Running three classes of models in parallel under the same prompt reveals a clear capability stratification.

    The first class completed delivery earliest, with a complete script structure and a well-formed parameter section, but with flaws in the linked details: the chain was connected by approximately straight segments, the tangent path was not re-solved after the chainring teeth changed, causing the chain to intersect the chainring; and the contact point of the load-bearing foot used a fixed offset, so the sole separated from the pedal surface after the phase changed.

    The second class failed to complete delivery, or output only the skeleton of scene construction while omitting the drivetrain, indicating that the model lost part of the requirements under a long constraint chain—a typical case of long-context instruction decay.

    The third class performed best on geometric linkage: the chain was solved analytically through upper and lower tangent points plus a tension segment and recomputed automatically when the tooth count changed; the foot position was derived from the phase angle via trigonometric functions and aligned for contact along the pedal normal; and the handlebar width was mapped linearly from the wingspan, with the grip positions shifting forward accordingly. Such an implementation shows that the model genuinely maintains an internal set of constraint equations rather than assembling parts.

    4. Capability Breakdown: What Spatial Reasoning Actually Includes

    Four independently testable sub-abilities can be distilled from the differences above.

    Parameter propagation: whether a change to one constant spreads along the dependency chain to all related geometry, rather than affecting a single object. This is the dividing line between “configuration-driven modeling” and “hard-coded modeling.”

    Constraint solving: whether structures that require tangent solving, such as chains, gears, and belts, use the correct geometric method rather than a visual approximation.

    Phase and pose coupling: whether kinematic relationships (crank angle to pedal position, then to foot pose) are modeled correctly and whether contact relationships are expressed explicitly.

    Delivery robustness: whether the script runs in one pass in unattended headless mode, including naming conventions, exception handling, and unit consistency.

    5. Recommendations for Engineering Use

    To reuse this evaluation method in production, keep three points in mind. First, put the acceptance criteria into the prompt up front and state explicitly “how it will be checked”; model completion quality improves markedly. Second, replace single-shot generation with parameter sweeps: change key constants in batches for the same prompt and measure pass rate rather than individual cases. Third, incorporate the generated results into a continuous integration process, execute them in batches in headless mode, collect error logs, and form a regression-capable evaluation baseline.

    For compute and engineering support, a combination of general cloud capabilities can be used: a container platform to host and isolate parallel script execution environments, object storage to archive scripts and rendered artifacts, a message queue to smooth and schedule batch tasks, and logging and monitoring with alerting to track failure rates and duration distributions. Such an evaluation pipeline itself becomes an asset that can evolve over the long term.

    6. Conclusion

    The real dividing line for 3D code generation is not whether the visuals are polished, but whether the model still maintains spatial self-consistency after parameters change. Converting aesthetic judgment into geometric assertions, single demonstrations into parameter sweeps, and manual review into an automated pipeline are currently the three most reliable paths for evaluating the spatial reasoning of multimodal models.