Evaluating LLM Code and Aesthetic Capabilities: From Animation to 3D Rendering

    This article explores how to evaluate the programming and aesthetic capabilities of Large Language Models (LLMs) through animation generation and 3D rendering tasks. It outlines a four-tier evaluation framework covering program correctness, functional completeness, physical and spatial rationality, and visual expression quality. By analyzing specific use cases—such as cycling animations and interior light and shadow scenes—the article provides a structured methodology to assess LLM outputs, from basic motion coordination to complex rendering pipelines, ultimately guiding developers in making informed decisions for integrating LLMs into real-world development workflows.

    1. Why Runnable Code Doesn’t Always Look Good

    Using natural language to generate animations and 3D scenes is becoming an intuitive way to test the programming capabilities of Large Language Models (LLMs). Compared to simply outputting algorithmic answers, these tasks require the model to simultaneously handle requirement comprehension, program organization, spatial relationships, temporal changes, and visual expression, exposing more issues found in real-world development.

    However, there is a clear gap between “the screen renders successfully” and “the screen meets professional standards.” A program might be free of syntax errors and interactive buttons might respond, but a generated bicycle could still lack a reasonable transmission mechanism, and an interior scene might look like a hastily assembled stage set.

    Therefore, evaluations should distinguish at least four levels:

    1. Program correctness: Can the code execute? Are there missing resources, abnormal exits, or obvious logic errors?
    2. Functional completeness: Does the output cover the main subjects, actions, interactions, and export requirements specified in the prompt?
    3. Physical and spatial rationality: Do objects have credible proportions, contact relationships, motion relationships, and lighting relationships?
    4. Visual expression quality: Is the composition clear? Are materials distinguishable? Are light and shadow layers natural? Do details serve the overall atmosphere?

    These four levels are interconnected but cannot replace one another. Rich functionality indicates that the model has a certain ability to decompose tasks, but it does not directly mean its aesthetics are mature; a beautiful visual does not prove that the underlying code is easy to maintain.

    2. Using a Cycling Animation to Test Basic Code Generation Skills

    2.1 Breaking Down Open-Ended Prompts into Checkable Tasks

    “Generate an animation of a pelican riding a bicycle” seems simple, but it actually contains several independent problems:

    • Can the bird’s shape be recognized? Are features like the beak, torso, and wings clear?
    • Is the positional relationship between the bird and the bicycle frame, seat, and handlebars valid?
    • Can the feet follow the pedal movement, instead of floating near the wheels?
    • Can the wheels, crank, and body movements form a coordinated rhythm?
    • Do interactions like pause and speed adjustment act on the same timeline?
    • Does the exported file retain animation capabilities?

    Before testing, separate mandatory items from bonus items. Accurate subject, continuous motion, and independently openable files are basic requirements; day-night switching, decorative backgrounds, and additional interactions can be extension items. Otherwise, the model might use extensive decoration to mask core motion defects.

    2.2 Coordinated Movement is More Important Than “Everything is Moving”

    A common issue in cycling animations is not that parts are static, but that different parts move independently without unified constraints.

    For a simplified non-slip rolling model, the wheel’s angular velocity and the vehicle’s forward speed satisfy:

    v = ωr

    Where v represents linear velocity, ω represents the wheel’s angular velocity, and r is the wheel radius. If the background scrolling speed is noticeably inconsistent with the wheel rotation speed, viewers will perceive a slipping effect.

    Pedal movement can be described by a circular parametric equation:

    x = cx + a·cosθ
    y = cy + a·sinθ

    Here, cx, cy are the crank center coordinates, a is the crank length, and θ changes over time. The feet’s positions should be derived from the pedal positions, rather than establishing a separate, unassociated swinging animation.

    For stylized works, a complete simulation of a real bicycle mechanism is unnecessary, but key motions should at least maintain causal consistency visually.

    2.3 Checking State Consistency for Pause and Speed Control

    The difficulty of interactive functions usually lies in state management.

    If the wheel uses one timeline, the body’s ups and downs use another, and the background updates through an independent timer, pausing might result in “wheels stop, background keeps moving.” Resuming playback might also cause action jumps.

    A more robust approach is to maintain a unified logical time:

    1. If not currently paused:
    2. Logical time = Logical time + actual time increment × speed multiplier
    3. Wheel angle = Calculated based on logical time
    4. Pedal position = Calculated based on logical time
    5. Body起伏 (up and down) = Calculated based on logical time
    6. Background displacement = Calculated based on logical time

    This design also allows speed adjustments to affect the entire animation system, rather than just changing a single local element.

    2.4 Independent Delivery Requires Separate Verification

    Running normally in a preview environment does not mean the delivered file is usable. The file might depend on external fonts, remote images, page scripts, or resources provided by the host environment.

    You should place the exported result in a clean environment to reopen and check:

    • Are the subject and background intact after disconnecting from the network?
    • Can the animation still play?
    • Does the interaction depend on execution logic not delivered with the file?
    • Is the aspect ratio correct after resizing the window?
    • Is there a noticeable increase in resource usage after running for a long time?

    “Independently playable” and “retaining all interactions” should also be described separately, as different display environments may support scripts and interactions differently.

    3. Using Interior Light and Shadow Scenes to Test 3D and Visual Capabilities

    Compared to 2D animation, “using code to represent the tranquil light and shadows in an afternoon room” is a more complex task. It requires not only generating objects but also establishing connections between space, materials, lighting, and composition.

    3.1 Define Scene Goals Before Choosing a Rendering Route

    Such tasks can typically use either real-time rendering or offline rendering.

    Real-time rendering emphasizes interaction and fast feedback, suitable for browsing scenes, modifying perspectives, and instantly adjusting parameters. Offline rendering can allocate more computing power to handle complex light propagation, suitable for generating high-quality static images.

    Neither route is absolutely superior. If you only compare the final images while ignoring rendering time, resolution, hardware, and post-processing, you might mistake a difference in compute budget for a difference in model capability.

    Therefore, the test must predetermine: Is the goal an interactive scene or a static image? How long is allowed? Are multiple rounds of revision allowed? Are external assets allowed?

    3.2 Realism Starts with Correct Spatial Relationships

    The room, windows, chairs, and floor existing separately does not mean the scene is established.

    Common defects include unbalanced furniture proportions, insufficient window sill thickness, gaps at wall intersections, and a lack of credible contact between objects and the floor. These give the image a “model display stand” feel.

    A more effective workflow is:

    1. Use simple geometry to build the room and furniture.
    2. Determine the camera position, field of view, and main composition.
    3. Check scales, occlusion, and object contact relationships.
    4. Add materials, lighting, and decorations.

    If the basic spatial relationships are wrong, adding more textures usually only increases complexity without eliminating the sense of incongruity.

    3.3 Afternoon Ambiance Relies on Direct and Indirect Light

    Window grid projections are the most striking elements in an interior light and shadow scene, but realism does not come solely from a few bright light bands.

    After sunlight enters the room, it illuminates the floor and furniture, and then affects surrounding areas through surface reflection. Walls not directly exposed to sunlight also receive indirect lighting from the environment. It is these soft brightness and color changes that make the space appear cohesive.

    If only strong directional light is set without reasonable ambient fill light or indirect lighting approximations, shadow areas can easily become too dark. Conversely, if overly strong uniform fill light is used to fill shadows, the scene loses its depth.

    When improving, first adjust the main light direction, opening positions, and light-to-dark ratio, then consider increasing samples, optimizing shadows, or refining indirect lighting. Simply increasing brightness usually does not solve lighting structure problems.

    3.4 Diagnose Dark Lines in Corners Instead of Generic Beautification

    Hard black lines at corners or furniture edges can stem from various technical issues:

    • Contact shadows are too strong or cover too large an area.
    • Precision errors in shadow calculation.
    • Depth conflicts caused by overlapping surfaces.
    • Incorrect surface orientation or geometric connections.
    • Lack of reasonable ambient lighting in dark areas.

    These causes correspond to different fixes. Treating all black lines as aesthetic issues, or uniformly increasing ambient brightness, may only mask the symptoms.

    Developers can use isolation checks: temporarily disable contact shadows, replace with a unified material, display surface normals, and verify item by item whether the issue comes from geometry, shadows, or lighting.

    3.5 Material Credibility Comes from Constrained Variation

    Wood flooring is not just a brown plane, and walls are not just light-colored rectangles. Material representation requires considering base color, roughness, reflection characteristics, and detail scale.

    But adding random noise does not equal adding realism. Wood grain direction should align with the plank layout, seam sizes should match the scene scale, and surface variations should not overpower the main light and shadow.

    A more reasonable principle is: first give different materials distinguishable reflection and roughness differences, then add a small amount of structurally consistent details.

    4. Establishing a Reproducible Evaluation Workflow

    4.1 Fix Requirements and Execution Conditions

    The same task should use the same core description, clearly defining the output format, resource dependencies, compute budget, and revision rounds. Initial generation results and multi-round revision results must be recorded separately.

    Prompts, generated code, execution logs, screenshots, and revision notes should also be retained. Otherwise, even if a result is excellent, it is difficult to judge its stability and reproducibility.

    4.2 Separate Functional and Visual Checks

    Functional checks can revolve around startup, interaction, export, exception handling, and resource usage. Visual checks focus on subject recognizability, motion coordination, spatial relationships, lighting, materials, and composition.

    Do not replace functional correctness with “many buttons,” nor replace engineering completeness with “pretty screenshots.”

    For visual evaluation, multiple reviewers can be organized to make independent judgments under the same display conditions, recording specific defects rather than just giving a general “good” or “bad” assessment.

    4.3 Observe Both Initial Generation and Iterative Repair Capabilities

    Real-world development rarely relies on a single generation. More valuable tests should observe whether the model can understand feedback, for example:

    • Fixing the issue of feet detaching from pedals;
    • Reducing unnatural dark edges in corners;
    • Adjusting only materials while keeping the composition unchanged;
    • Improving shadow quality while controlling runtime overhead.

    If fixing one issue breaks other functions, it indicates the model may lack a stable understanding of the program’s overall structure. The accuracy of local modifications and regression checking capabilities are equally important engineering metrics.

    5. Translating Evaluation Results into Development Decisions

    For prototype demos, priorities are usually fast generation, interactivity, and ease of modification. For static visual assets, more emphasis should be placed on composition, lighting, materials, and output consistency. For formal delivery, dependency management, resource licensing, performance, and maintenance costs must also be included.

    Therefore, a single visual task cannot be used to label a model with comprehensive capabilities. Good performance in animation tasks suggests a possible aptitude for structured graphics and state organization; poor performance in interior rendering needs further differentiation to determine whether the issue lies in scene planning, rendering implementation, compute budget, or visual judgment.

    A more reliable practice is to let the model handle initial schemes, base code, and local repairs, while developers control the architecture, acceptance constraints, and key visual parameters. For critical visuals, retaining human review remains necessary.

    Conclusion

    From cycling animations to interior light and shadows, the real focus is not whether the generated result is sufficiently “stunning,” but whether the model can translate natural language requirements into programs that are structurally clear, run stably, are visually reasonable, and can be iterated further.

    Code capabilities, 3D capabilities, and aesthetic capabilities are related but have their own boundaries. Only by evaluating execution correctness, functional completeness, physical rationality, and visual quality separately, combined with compute budget and revision costs, can we draw conclusions that are truly useful for development decisions.