From Code Generation to Spatial Reasoning: How to Validate 3D Modeling Capabilities

    This article explains why evaluating generative models for 3D tasks requires more than checking whether a script runs or a scene looks good. Using a pelican riding a bicycle as a running example, it breaks creative requirements into visual, structural, and motion categories, then shows how to build a traceable parameter dependency chain, establish a consistent coordinate system, model the chain drive and riding posture with explicit geometric and kinematic constraints, and verify results through parameter perturbation tests. It closes with a six-layer evaluation framework that separates execution, visual quality, structural correctness, parameter linkage, motion consistency, and engineering maintainability, so spatial reasoning and engineering modeling ability can be assessed credibly.

    1. Evaluating Generative Models: “Did It Finish” Is Not Enough

    When generative models begin to take on 3D scene construction, creative animation, and engineering script generation, the evaluation criteria need to be upgraded. A script that runs and produces a rendered frame shows some code-organization ability, but it does not prove the model correctly understood the spatial relationships between objects, nor that it established a reliable mechanical linkage.

    Take a pelican riding a bicycle as an example. A frame that shows a bird, a bicycle, a toolkit, and a fishing net only demonstrates object composition. The questions that actually matter are:

    • Are the wing tips aligned with the handlebar grip points?
    • Do the webbed feet rest on the pedals, rather than “roughly touching” them visually?
    • When the frame dimensions change, do the wheels, fork, and riding posture update in sync?
    • When the chainring tooth count changes, is the chain path recomputed?
    • As the crank rotates, do the pedals, feet, and rear wheel follow a consistent drivetrain relationship?

    All of these point to the same core issue: did the model generate a picture that merely looks plausible, or a spatial system that can be explained, modified, and verified?

    So the technical evaluation should shift from “does the result look good” to “do the constraints hold, do the parameters link together, and does the result stay correct after changes.”

    2. Turning Creative Descriptions into Verifiable Technical Tasks

    A 3D generation task usually mixes three kinds of requirements.

    The first is visual requirements, such as dusk lighting, a coastal setting, a dark green frame, a canvas toolkit, and a fishing net on the rear rack. These mainly affect materials, lighting, and scene representation.

    The second is structural requirements, such as a classic diamond frame, forward-extended wings, a forward-leaning body, and the contact relationship between feet and pedals. These involve geometric topology and spatial layout.

    The third is motion requirements, such as the crank driving the rear wheel, the chain held under tension, and the riding posture changing with crank phase. These require a kinematic or drivetrain model and cannot be replaced by static placement.

    Separating the three kinds of requirements helps avoid a common misjudgment: assuming the mechanical structure is also correct just because the atmosphere is rendered well.

    For actual delivery, it is worth specifying:

    1. A scene-generation script that can run in a headless environment.
    2. Input parameters and derivation rules declared in one place.
    3. The complete scene file and any necessary preview images.
    4. Geometric-relationship check results.
    5. Re-verification records after parameter changes.
    6. A clear statement of simplifying assumptions and unimplemented parts.

    If the task involves video, also add the time range, frame rate, motion cycle, and frame-by-frame check rules. A correct single-frame composition does not mean no interpenetration occurs during motion.

    3. The Core of Parametric Modeling Is Dependencies

    The key inputs of the task can be organized as:

    Input parameter Example initial value Main affected objects
    Wingspan 1.15 m Wing scale, handlebar width, and grip layout
    Wheelbase 1.02 m Front/rear wheel centers, frame and fork layout
    Chainring teeth 44 Chainring pitch circle, chain geometry, gear ratio
    Rear gear teeth 16 Rear gear pitch circle and gear ratio
    Crank phase 35° Pedal position, foot targets, riding posture

    These numbers are only example inputs for the modeling task and do not represent the design specification of any real bicycle.

    A reliable parametric system should establish a traceable dependency chain:

    input parameters → derived dimensions → key coordinates → geometric objects → posture and motion → acceptance results.

    For example, after the wingspan changes, you cannot simply scale the whole wing. The handlebar width, grip positions, and wing joint posture must also update; otherwise the grip may detach from the wing tip, or the wings may be forced into an unreasonable stretch.

    At the same time, “all geometry is derived from parameters” does not mean only five numbers are allowed. Wheel diameter, crank length, chain pitch, frame proportions, foot thickness, and allowable tolerances all need a clear source. The correct approach is to manage these quantities centrally as public configuration parameters or documented ratio coefficients, rather than scattering them inside functions.

    A schematic processing flow looks like this:

    1. Read and validate configuration
    2. Establish a unified coordinate system
    3. Compute key positions of wheel axles, frame, and drivetrain parts
    4. Compute the chain path
    5. Compute pedal pose from crank phase
    6. Solve character posture from grip and pedal targets
    7. Generate geometry, materials, and environment
    8. Run structural checks
    9. Save the scene and output an acceptance report

    This organization is easier to maintain and more suitable for automated evaluation than “create objects one by one, then adjust positions by experience.”

    4. Establish the Coordinate System First, Then Discuss Spatial Correctness

    Spatial confusion often starts with inconsistent coordinate conventions.

    You can standardize: the forward direction as the longitudinal axis, the left-right direction of the body as the lateral axis, and the vertical direction as the height axis. Then take the rear wheel center as the reference point, determine the front wheel center from the wheelbase, and derive the axle height above the ground from the wheel diameter.

    The bottom bracket, head tube, seat tube, and rear dropout connection points of the frame should be derived from this baseline. The wing grip points, pedal contact points, and body reference points should also use the same coordinate convention.

    You also need to distinguish local coordinates from world coordinates. For example, the pedal contact point is best defined first in the pedal’s local coordinates, then transformed into world coordinates through the pedal transform. This way, when the pedal position or orientation changes, the foot target updates in sync without rewriting the contact-point calculation logic.

    Being “close” geometrically does not equal satisfying a constraint. At minimum, distinguish:

    • Position error between point and point;
    • Gap between face and face;
    • Whether the normals of contact faces are consistent;
    • Whether objects undergo volumetric interpenetration;
    • Whether a local dimension exceeds a joint’s reachable range.

    These checks turn subjective observation into explainable technical evidence.

    5. The Chain Is Not Just a Decorative Line Connecting Two Circles

    The bicycle drivetrain is the part of this task that most easily exposes insufficient spatial reasoning.

    In a simplified model, the chainring and rear gear can be represented as two pitch circles, and the chain path consists of the external common tangents and two arcs. If the chain pitch is p and the tooth count is N, the ideal pitch-circle radius can be written as:

    r = p / [2 × sin(π / N)]

    This relation comes from the geometric spacing of adjacent meshing positions on the pitch circle. Compared with arbitrarily scaling the appearance by tooth count, it establishes a clearer dimensional basis.

    However, the pitch circle is not the tooth-tip outer profile. If you also want to generate the actual tooth shape, you must further define tooth height, tooth grooves, and contact positions; you cannot treat a single ring as a complete mechanical gear.

    For a simplified chain with pitch-circle radii R and r and center distance d, solving for a non-degenerate external common tangent requires:

    d > |R − r|.

    When the chain wraps the chainring and rear gear, connect the arcs starting from the tangent points, rather than assembling a polyline from arbitrarily chosen points. After changing the chainring from 44 to 52 teeth, the pitch-circle radius, tangent points, wrap angle, and path length should all be recomputed.

    There is also an important engineering boundary here: a chain is made of discrete links, not a continuously stretchable curve.

    If the center distance is kept constant, after the tooth count changes, the ideal path length may not correspond exactly to a legal number of chain links. So the task should state in advance which assumption is used:

    • Use a continuous-chain approximation and verify only the path and spatial relationships;
    • Allow re-selecting the number of links and handle the assembly constraints of link types;
    • Allow adjusting the rear wheel position or introducing a tensioner;
    • Report failure for parameter combinations that cannot be assembled.

    “A chain that looks taut” only shows the appearance holds; to claim tension or dynamics are correct requires an additional physical model.

    6. Riding-Posture Consistency Requires Solving Position and Phase Constraints

    Let the crank rotation center be C, the crank length be L, and the crank phase be θ. In the plane formed by the bicycle’s longitudinal and vertical directions, the pedal axle can be written as:

    P₁ = C + L × (cosθ, sinθ).

    The other side’s pedal axle is:

    P₂ = C + L × (cos(θ + π), sin(θ + π)).

    An actual 3D scene should also add a left-right offset so the two pedals are not in the same plane.

    When the foot rests on the pedal, you cannot just move the foot center to the pedal axle. You must also account for pedal thickness, sole shape, contact-point offset, and foot orientation. A more reliable approach is to first compute the target pose of the pedal surface, then adjust the leg joints through inverse kinematics.

    For a stylized character, you can reduce the number of joints, but you should keep joint lengths, angle limits, and target-reachability checks. If a target is out of reach, report a constraint conflict rather than silently stretching the limbs.

    The original task’s “the other foot always stays at the lowest point of the return stroke” needs clarification. The two cranks differ by 180°, so when the phase can change freely, it is impossible for one of the two pedals to always be at the lowest point.

    If that foot is suspended and not in contact with the pedal, you can define its return trajectory separately; but “low return position” should still have a clear time interval or spatial range. If it must continuously correspond to the other pedal’s motion, it must be updated by the same phase and cannot be fixed at a certain height.

    Discovering and stating such a constraint conflict is itself part of reliable reasoning ability.

    7. Rear-Wheel Linkage and Video Generation Should Be Verified Separately

    Under the ideal no-slip drivetrain approximation, the change in rear-gear rotation angle and the change in crank rotation angle satisfy:

    rear gear rotation change = crank rotation change × chainring teeth / rear gear teeth.

    Whether the rear gear stays synchronized with the rear wheel depends on whether it is simplified as a rigid connection. If coasting is considered, the behavior of the freewheel mechanism must be described further.

    If the bicycle is also required to move forward along the ground, the rear wheel angle must establish a rolling constraint with the displacement. Otherwise you may get a frame where the wheels spin fast but the body stays still, or the body moves but the tires visibly slip.

    So video generation should check at least three layers of consistency:

    1. Whether the intra-frame geometric relationships are correct;
    2. Whether the inter-frame motion is continuous;
    3. Whether the drivetrain, character posture, and ground motion are synchronized.

    Outputting multiple frames alone does not prove the model completed a mechanical animation. Camera movement, lighting changes, and object rotation can all create the impression that “the scene is moving” without solving the real drivetrain problem.

    8. Use Parameter Perturbation Tests Instead of Single-Screenshot Judgment

    First run the baseline configuration, then run single-variable tests:

    • Change wingspan from 1.15 m to 1.35 m;
    • Change chainring teeth from 44 to 52;
    • Change crank phase from 35° to 140°.

    Then run a combined test with all three changing at once. Single-variable tests help locate dependency errors, while the combined test reveals problems that arise when multiple constraints interact.

    Each run should record:

    • Whether the script executed successfully;
    • The object count and whether key objects are complete;
    • The distance from wing tip to grip;
    • The contact error between sole and pedal;
    • Interference between the chain and drivetrain parts;
    • Whether joint targets are reachable;
    • Whether there are jumps during the animation;
    • The input parameters, random seed, and runtime environment.

    Acceptance thresholds should be set in advance based on scene scale and purpose, not relaxed after seeing the results. Checks should also cover multiple viewpoints, so that a particular camera angle does not happen to hide a structural error.

    Descriptions in the original material about which run finished first can only serve as execution observations and cannot directly imply whose spatial reasoning is stronger. A faster run may mean simpler geometry was used, or that constraint checks were skipped; a failed run needs to be distinguished among syntax problems, environment mismatches, and modeling-logic errors.

    9. Build a Layered Evaluation System to Reach Credible Conclusions

    A practical evaluation system can be divided into six layers:

    Layer 1: Execution ability. Check whether the script runs and can reproduce results in the specified environment.

    Layer 2: Visual representation. Check whether the subject is recognizable and whether composition, materials, and environment match the description.

    Layer 3: Structural correctness. Check frame topology, part connections, spatial interpenetration, and scale relationships.

    Layer 4: Parameter linkage. Check whether input changes propagate correctly along the dependency chain, rather than only altering surface dimensions.

    Layer 5: Motion consistency. Check whether the crank, pedals, feet, chain, and wheels share a consistent phase and time definition.

    Layer 6: Engineering maintainability. Check whether parameters are centralized, assumptions are public, exceptions are diagnosable, and results are re-verifiable.

    For creative showcases, visual representation can carry more weight; for engineering validation, structure, linkage, and maintainability should matter more. Weights should be set before testing and stated publicly.

    Ultimately, the real strength of a generative model in 3D tasks is not just generating complex code or beautiful frames, but decomposing natural language into explicit constraints, building a traceable parameter dependency, identifying conflicting requirements, and keeping results consistent after parameters change. Only through this kind of validation can we confirm, beyond “can write scene scripts,” that it possesses usable spatial reasoning and engineering modeling ability.