From Code Generation to 3D Interaction: Evaluating and Practicing Model Capability

    Evaluating AI coding by whether it can deliver runnable 3D experiences, not just valid syntax. This article covers reproducible task design, motion and particle systems, visual debugging, and how to report quality, cost, and maintainability.

    From generating code to delivering an experience

    Evaluating intelligent coding is not only about whether a model can emit syntactically correct programs. When tasks expand from forms and data scripts to 3D scenes, code is an intermediate artifact. The real deliverable is a complete experience users can observe, operate, and understand.

    A request such as “a pelican riding a bicycle along the coast” looks like one sentence. In practice it involves character modeling, vehicle structure, road layout, lighting, sea surface, camera control, and motion coordination. A volcanic eruption demo further involves particle lifetimes, trajectory updates, transparent blending, and performance control.

    These tasks are useful because they test several dimensions at once:

    • Requirement understanding: whether natural language can be decomposed into implementable scene elements.
    • Spatial organization: whether size, position, orientation, and occlusion are reasonable.
    • Dynamic consistency: whether animation obeys basic geometric and motion constraints.
    • Visual expression: whether color, lighting, and composition serve the scene.
    • Engineering delivery: whether the result can run, be modified, and be deployed stably.

    The right evaluation target is therefore not a single screenshot, but the full path from requirement to runtime verification. Strong visuals may indicate scene-organization skill; they do not by themselves prove the model is stronger on all programming tasks.

    Start with a reproducible task definition

    Natural-language requirements leave a large interpretation space. “Build a 3D cycling scene” can be implemented with very different character complexity, environment scale, and interaction. Without shared constraints, results are hard to compare.

    In practice, split the task into three layers.

    1. Must-have functions

    A cycling scene can require: character and bicycle fully visible; wheels rotating continuously; character moving along the road; the user can rotate and zoom the view; pause and resume are available.

    A volcano scene can require: a recognizable volcano; continuous particles from the crater; particles that move and disappear; the user can adjust eruption intensity; after pause, animation state remains consistent.

    Functional requirements should be verifiable by operation, not replaced by subjective words such as “stunning” or “cinematic.”

    2. Explicit runtime conditions

    State whether the target is a desktop browser or a mobile device, whether network access is allowed, whether external textures are allowed, and whether a single web page file is required.

    Distinguish three concepts that are not equivalent:

    • Single-file delivery: entry point and main content live in one file.
    • No external assets: no external images, models, or audio.
    • Fully offline: no network requests at runtime.

    A page without external images may still load rendering dependencies over the network. A single-file page may still fail to open offline.

    3. A fixed test process

    Record the initial requirement, each round of change requests, execution environment, errors, and human fixes. First-try success and success after many revisions are different delivery costs and must not be mixed.

    Scene descriptions in source material can inform task design. Without source, full recordings, and run logs, they do not support firm performance conclusions or capability rankings.

    Case 1: Making character cycling motion believable

    The hard part is not placing a bird and a bicycle together, but forming a stable motion system.

    1. Organize objects with hierarchy

    Split the scene into environment, vehicle, character, and interaction. Inside the vehicle: frame, front and rear wheels, crank, and pedals. Inside the character: torso, head, wings, and legs.

    Parent–child hierarchy reduces duplicate computation. When the bicycle moves along the road, wheels and character move with the root; wheel spin updates only local pose.

    Hierarchy has limits. Feet cannot simply hang under the torso, or pedal rotation will cause penetration or detachment. Pedal positions must be computed explicitly and used to update leg pose.

    2. Prefer motion relationships over independent animation

    Wheel angular velocity should relate to forward speed. Under an ideal no-slip condition:

    wheel angular velocity = forward speed / wheel radius

    The demo need not implement full dynamics, but key visual relationships should stay consistent. Otherwise the bike may move fast while wheels turn slowly, or pedaling may continue while stationary.

    Foot position can follow crank phase; the knee can then be solved from leg-length constraints. Even a simplified two-segment limb should not pose far beyond reachable length.

    Path direction matters. Do not update position while keeping a fixed heading. At least align to the road tangent, with smoothing if needed so turns do not jump.

    3. Procedural sea is not physical water

    A sea surface can combine vertex displacement, color gradients, approximate reflection, and specular highlights. Superimposing waves of different directions and frequencies reduces obvious repetition.

    These effects serve real-time visuals; they do not automatically constitute fluid physics. Articles and demos should state they are visual approximations, not ocean-dynamics simulation.

    “Assets generated in code” also does not imply higher quality. Results still depend on geometry, materials, lighting, and device performance.

    4. Aesthetics need observation criteria

    Check subject readability, color hierarchy, visual focus, and detail density. Sunset, road, character, and sea should have a clear primary–secondary relationship, not all objects in equally bright colors.

    Inspect at least three distances: overall composition, mid-range action, and close-up structure. A pretty far shot with broken frames, floating feet, or clipping up close is not a stable delivery.

    Case 2: Volcanic eruption with both look and performance

    This task tests whether a model can split a complex effect into manageable systems instead of spawning large numbers of random objects at once.

    1. Layer the effects

    Divide into terrain, ejecta, smoke, lava, and lighting feedback.

    The volcano body provides a stable spatial reference; ejecta convey direction and impulse; smoke conveys diffusion and occlusion; lava reinforces a hot-flow impression; lighting lets the eruption affect the surroundings.

    Each layer should have its own parameters and update logic so smoke count can change without rewriting mountain geometry, and bottlenecks are easier to locate.

    2. Particles with a lifetime

    Each eruption particle should at least store position, velocity, age, and lifetime. A simplified update:

    1. velocity = velocity + acceleration * timestep
    2. position = position + velocity * timestep
    3. age = age + timestep
    4. if age reaches lifetime:
    5. recycle the particle
    6. else:
    7. adjust size, color, and opacity from age

    This is a visual-demo integrator. It is not a real eruption model and must not be used for disaster prediction or engineering safety.

    Clamp the timestep so a tab restore or brief stall does not teleport particles. For higher stability, use a fixed timestep and separate simulation from rendering.

    3. Do not create objects without bound

    Creating particles every frame without recycling grows memory and object count until the page stutters or freezes.

    A capacity-limited object pool is more reliable: initialize reusable particles, activate them on eruption, and return them when lifetime ends. Large counts should use batched drawing to cut submission cost.

    Transparent smoke needs extra care. Overlapping translucent objects overdraw the same pixels even with simple geometry. Reducing screen coverage and far-particle density is often more effective than reducing mesh triangles alone.

    Visual feedback as a debugging tool

    When a model can understand images, screenshots can reveal layout, occlusion, and proportion issues. Feedback should not stop at “make it prettier.”

    Effective feedback includes location, phenomenon, and expected result, for example:

    “From the side view, the right foot leaves the pedal at the lowest point. Keep the foot on the pedal and check the leg-length constraint.”

    That kind of description maps more easily to local code changes and re-verification than vague aesthetic comments.

    Suggested iteration order:

    1. Fix load failures, script errors, and missing objects.
    2. Then scale errors, clipping, motion mismatch, and interaction conflicts.
    3. Then materials, lighting, composition, and environment detail.
    4. Finally performance and device compatibility.

    Focus each round on one class of issues and keep a runnable version. Changing many things at once often improves look while regressing function.

    How to make evaluation results credible

    Report both quality and cost.

    Functionally, record requirement coverage, whether interaction works, and whether abnormal operations corrupt state. Visually, check recognizability, spatial relationships, and motion continuity. Engineering-wise, observe structure, resource dependencies, ease of change, and runtime stability.

    Performance tests should state device, viewport size, browser, and scene parameters, and look at frame-time distribution, not one smooth screenshot. Average FPS can hide periodic stalls.

    Also record generation attempts, revision rounds, and the scope of human intervention. Producing a striking demo and delivering stably at low cost are related but different capabilities.

    Without unified test conditions, avoid claims such as “comprehensively ahead” or “on par with large commercial games.” More useful conclusions name what was verified, what still fails, and under which conditions the result holds.

    From demo prototype to maintainable application

    Treat model-generated programs as prototypes to verify, not as trusted production code.

    Before release, review network requests, dynamic execution, user-input handling, and resource use. Running generated code in a restricted environment reduces risk from unreviewed behavior. If external resources are allowed, check origin and license.

    Split scene configuration, rendering, animation updates, and interaction; centralize parameters; clean unused objects; and give understandable messages on init failure. On weaker devices, reduce particle count, shadow quality, and distant detail, while keeping core functions.

    Most important, build verification for later changes. For cycling, check pedal constraints, path motion, and pause. For volcano, check particle recycling, intensity control, and long-run stability. Only when those behaviors can be retested does the output become a basis for ongoing iteration.

    Conclusion

    Intelligent coding is connecting natural language more directly to 3D content, interaction, and visuals. It does not remove basic software-engineering requirements.

    Character cycling tests structure and motion consistency. Volcanic eruption tests effect layering and resource management. A reliable path is to define verifiable requirements, then close the loop with code execution, visual inspection, and performance measurement. Attractive frames are a starting point. Reproducible results, maintainable implementations, and clearly stated limits are what turn model capability into application value.