From Code Generation to Multimodal Engineering Tasks in Practice

    How AI agents can move beyond code generation to deliver verifiable multimodal engineering work. This article examines evaluation criteria for visual understanding, long-horizon task management, and validated delivery, with three hands-on case studies: building parametric 3D scenes from reference images, scripting audio-video synchronization, and simulating bicycle drivetrain mechanics.

    1. Evaluating AI Coding Ability Is More Than “Does the Code Look Right”

    Traditional code generation tasks usually have clear inputs and outputs: implement a function from a requirement, fix an exception, or add tests. But when tasks expand into 3D scenes, dynamic video, and interactive simulations, the evaluation criteria change.

    A script that runs does not mean the generated model structure is correct. A video that plays does not mean the audio and visuals are properly synchronized. A smooth-looking animation does not mean the underlying transmission follows mechanical principles.

    The more meaningful question is: can the model convert natural language and visual materials into executable engineering tasks, discover and correct errors during execution, and ultimately deliver verifiable artifacts?

    This capability can be summarized as three chains:

    • Understanding chain: extract constraints from text, images, and assets, distinguishing facts from inferences and unknowns.
    • Execution chain: break goals down into code, assets, configurations, and tool operations.
    • Verification chain: use tests, rendered results, and quantitative metrics to judge whether deliverables meet requirements.

    A “generalized programming task” does not mean the model replaces every professional tool. Rather, it means using code to organize operations that were previously scattered across software UIs, making workflows easier to repeat, inspect, and modify.

    2. Key Capabilities: Visual Understanding, Sustained Reasoning, and External Verification

    1. Visual capability matters for extracting engineering constraints

    Image input adds another information source, but “understanding an image” and “generating a correct engineering model” remain far apart.

    Take an architectural reference image: the model must identify components like columns, steps, roofs, and railings, understand their relative positions, and translate those observations into geometric relationships in the scene. This involves at least three layers:

    The first layer is semantic recognition—identifying what objects appear in the image.

    The second is spatial relationship understanding—for example, steps leading up to the entrance, columns supporting the roof, railings running along platform edges.

    The third is parametric representation—converting these relationships into dimensions, coordinates, rotation angles, and connection rules.

    A single image rarely uniquely determines the real 3D structure. Perspective distorts proportion judgments, occlusion hides components, and material shading can be mistaken for geometric relief. Engineering workflows should therefore make explicit which structures come from image observation and which are reasonable completions, avoiding presenting inference as precise measurement.

    2. Long-horizon tasks depend on state management, not single-shot output

    Complex tasks are rarely completed in one code generation pass. The more typical loop looks like:

    Requirement parsing → solution design → initial implementation → execution check → error localization → partial fix → re-verification.

    The hard part is keeping task state consistent. When modifying the roof, the model must not forget the entrance orientation; when adjusting video length, it must not break already-finished subtitle synchronization; when fixing pedal interaction on a bicycle, it must not redefine the gear ratio.

    In practice, maintain a dedicated task specification file that records:

    • Confirmed requirements;
    • Unresolved issues;
    • Current locations of assets and code;
    • Constraints that must remain unchanged;
    • Verification results after each change.

    Rather than relying on conversation history to implicitly hold all information, make key state explicit. This reduces context omissions and makes human review and task handoff easier.

    3. Architecture changes do not automatically translate into better engineering outcomes

    From a general-technology perspective, one research direction is recurrent-style computation: letting some computational modules process representations repeatedly to explore different levels of computation depth and parameter utilization.

    However, whether to adopt such architectures, what training methods to use, and how to control actual inference costs all require solid technical evidence. You cannot derive accuracy, speed, or complex-task success rates from an architecture name alone.

    For developers, a more effective evaluation approach is to build a fixed task set and observe actual deliverables:

    • Are requirements correctly understood?
    • Does the first execution succeed?
    • Do modifications introduce regressions?
    • Do outputs respect structural and physical constraints?
    • Are total time and resource consumption acceptable?

    Model architecture is a clue for explaining where capabilities come from—not a substitute for acceptance testing.

    3. Project 1: Building a Parametric 3D Scene from a Reference Image

    1. Decompose structure first, add detail later

    Using a four-corner pavilion as an example, decompose the scene into five component types: platform, steps, columns, roof, and railings. The first pass should not chase tile patterns, textures, or decorative details—verify the overall silhouette and spatial relationships first.

    A recommended order:

    1. Define the coordinate system, ground height, and entrance direction;
    2. Build the platform and steps;
    3. Place columns by symmetry;
    4. Generate the main roof structure;
    5. Add railings and decorations;
    6. Set materials, lighting, and camera views.

    This ordering reduces rework costs. If the base proportions are already wrong, building a detailed roof early only amplifies later revisions.

    2. Express geometric relationships with parameters

    Component dimensions should be managed centrally, not scattered across independent constants. The following is illustrative pseudocode only, not the actual interface of any specific software:

    1. column_spacing = configurable parameter
    2. platform_width = column_spacing + edge margins on both sides
    3. roof_width = platform_width + eave overhang on both sides
    4. column_top_height = platform_top_height + column_height
    5. For each column position:
    6. create column
    7. align column base with platform top surface
    8. align column top with roof support surface

    Relationships between parameters matter more than individual values. When platform size changes, columns, railings, and the roof should update together according to design rules, instead of being patched one by one by hand.

    If the image provides no absolute dimensions, pick a normalized scale first, construct the model from proportional relationships, and clearly flag that it is not a precise survey.

    3. Keep structural checks and visual checks separate

    Acceptance of a 3D scene should cover at least two levels.

    Structural checks focus on object counts, connection relationships, intersecting geometry, and dimensional constraints. For example: are all four columns complete? Do the steps lead to the entrance? Do railings block passageways? Is the roof floating unsupported?

    Visual checks focus on silhouette, color, composition, and similarity to the reference image. Output front, side, and diagonal views—not just a single final render.

    A single viewpoint easily hides problems. A model that looks correct from the front may have a too-thin roof, overlapping components, or misplaced railings when viewed from the side. Multi-view verification is therefore a mandatory step.

    4. Project 2: Orchestrating Audio-Video Synchronization with Code

    1. The timeline is the core data structure of video engineering

    To turn video production into a programming task, first map the narration script onto a timeline.

    For a short video of roughly 47 seconds, content can be divided into segments: opening, problem statement, feature demonstration, value summary, and closing. But segment durations should be driven by the actual audio, pauses, and narration rhythm—not divided mechanically and uniformly.

    Each segment should record at least:

    1. Segment:
    2. start_time
    3. end_time
    4. narration
    5. display asset
    6. subtitle text
    7. transition type

    The timeline should be the single source of truth. Visuals, subtitles, and animations all reference it, avoiding deviations caused by maintaining multiple copies of timing information.

    2. Automation pays off through repeatable adjustments

    A code-driven video pipeline is well suited to rule-based operations: subtitle layout, screenshot transitions, local highlights, flowchart animations, and batch export.

    For example, when the narration changes, segment boundaries can be recomputed; when the aspect ratio changes, titles, subtitles, and asset layouts can be adjusted uniformly; when one screenshot is updated, only the corresponding asset needs replacing.

    Automation, however, does not mean aesthetic judgment is done. Information density, pacing, font sizes, and visual focus still need human review. Especially for technical explainers, never sacrifice readability for extra motion effects.

    3. Video acceptance requires checking the full timeline

    Suggested acceptance dimensions:

    • Is the audio complete, without truncation or abnormal silence?
    • Does total duration match requirements?
    • Are subtitles synchronized with narration?
    • Are there blank frames, abrupt jumps, or missing assets?
    • Is text in key screenshots legible?
    • Does critical information stay on screen long enough?
    • Do all assets have proper usage rights?

    Export a low-resolution preview first to confirm timeline and layout, then produce the final render. This avoids repeatedly paying high rendering costs while logic errors are still unresolved.

    4. Project 3: Making a Bicycle Animation Reflect Correct Drivetrain Logic

    1. Define the simulation scope—don’t let “looks right” impersonate “computed right”

    An interactive bicycle scenario tests whether the model understands mechanical relationships, not merely whether it can draw shapes.

    State the simplifications up front. For example: fixed frame, no chain slip, elastic effects and inertia ignored—analyzing only the ideal kinematic relationship between crank and rear wheel. Within this scope, gear ratios can validate rotational relationships, but this does not qualify as a full dynamics simulation.

    Let the front chainring have (Z_f) teeth and the rear sprocket have (Z_r) teeth. With the drivetrain engaged and no chain slip:

    [
    \theta{rear}=\theta{crank}\times\frac{Z_f}{Z_r}
    ]

    Crank angle and rear wheel angle must use consistent units. For one full crank revolution, the rear wheel’s theoretical rotation is (Z_f/Z_r) revolutions.

    2. Reverse pedaling depends on the mechanism type

    When the pedals rotate backward, you cannot simply make the rear wheel rotate backward in sync.

    On a common bicycle with a freewheel mechanism, back-pedaling generally does not drive the rear wheel in reverse. A fixed-gear drivetrain is different: the transmission constraint between pedals and rear wheel remains. Certain braking mechanisms may also exhibit distinct back-pedaling behavior.

    Requirements should therefore specify the mechanism type and treat it as a simulation condition. Otherwise, the same interaction can correspond to entirely different correct outcomes.

    3. Dragging the pedals requires continuous angle handling

    When the user drags a pedal, compute the angle from the pointer’s position relative to the crank center. A common bug is ignoring wraparound across the angle boundary, making the pedal jump by nearly a full revolution.

    The correct flow:

    • Compute the current pointer angle;
    • Compute the angle delta relative to the previous frame;
    • Normalize deltas at the boundary;
    • Accumulate the delta into the continuous crank angle;
    • Update the rear wheel angle according to the current gear ratio and engagement state.

    Likewise, when shifting gears, do not recompute the entire angle history with the new ratio—otherwise the rear wheel jumps instantly. The better approach is to preserve existing angles and apply the current ratio only to subsequent deltas.

    4. Validate the animation with numerical tests

    For acceptance, accumulate several full crank revolutions and compare the rear wheel’s cumulative angle against the theoretical value, checking:

    • Is the gear ratio correct when pedaling forward?
    • Do new rotations after a gear shift use the new ratio?
    • Does back-pedaling match the chosen mechanism?
    • Does dragging across the angle boundary remain continuous?
    • Is state preserved across pause and resume?

    These tests expose issues that visual inspection misses, and they illustrate the core value of interactive simulation: explainable logic and verifiable results.

    5. Turning a One-Off Success into a Reproducible Engineering Process

    The three projects produce different artifacts, yet share the same engineering framework:

    Structure requirements → validate inputs → parametric implementation → controlled execution → automated verification → human acceptance → archive results.

    The execution environment should restrict file access scope, avoid unnecessary external network requests by default, and require confirmation for deletion, overwrites, and bulk modifications. Generated scripts should run in an isolated working directory first, and important assets should retain their original versions.

    Also record the task specification, input assets, execution environment, output files, and verification results. Only with complete information can other developers reproduce results—and can the team diagnose failures.

    To evaluate changes in AI coding capability, use identical inputs, identical acceptance rules, and similar execution conditions, and run multiple trials. Reports should distinguish first-attempt success from success after human correction—never showcase only cherry-picked final results.

    6. Closing Thoughts: The Real Highlight Is a Closed Delivery Loop

    Multimodal input lets models leverage images and assets; sustained task handling makes complex requirements achievable step by step; code-driven workflows make professional operations repeatable. But these capabilities only translate into real productivity when connected to reliable verification mechanisms.

    For developers, what matters most is not how much code is generated, but being able to answer three questions clearly: How was the input understood? Why is the output correct? And how were failures located and fixed?

    From reference-image modeling to audio-video orchestration to mechanical interaction simulation, the underlying method stays the same: turn requirements into constraints, turn processes into executable steps, and turn results into verifiable facts. That is what takes AI coding from demos to real engineering applications.