### Evaluating Code Generation and 3D Rendering: Moving from Visual Results to Verifiable Capabilities
As large language models increasingly handle complex tasks like generating animations or rendering indoor scenes, evaluating their true capability requires more than judging a final screenshot. This article introduces a three-layer framework—functional, representational, and engineering—to assess code generation and 3D rendering skills systematically. Using two case studies (a vector animation of an animal riding a bicycle and an indoor scene with afternoon lighting), it explains how to control experimental conditions, structure verification checks, distinguish rendering pipelines, and design effective prompts. The goal is to shift evaluation from "what was generated" to "what has been verified," offering a practical methodology for developers and researchers.
From “What Was Generated” to “What Has Been Verified”
Asking a model to generate an animation or draw a room with afternoon lighting may appear to be a creative exercise. In practice, it simultaneously tests multiple capabilities: requirement comprehension, program construction, spatial reasoning, physical approximation, and visual expression.
The challenge is that these capabilities do not improve at the same pace. A model may quickly assemble a scene with buttons and sliders but fail to handle natural light transitions. Another may produce a stunning static image, yet the code is expensive to run, poorly structured, and breaks with minor modifications.
Therefore, evaluating code generation ability should not rely solely on whether the screenshot looks attractive or whether the program starts successfully. A more reasonable approach breaks results into three layers:
- Functional layer: Can the program execute and satisfy the explicit requirements?
- Representational layer: Are motion, space, material, and lighting believable?
- Engineering layer: Is the output reproducible, modifiable, deployable, and maintainable?
The following case studies—a vector animation of an animal riding a bicycle and an indoor scene with afternoon light—illustrate how to establish a more reliable evaluation methodology. The tasks and parameters described are for experimental design purposes only and do not represent test results from any specific model.
Controlling Experimental Conditions Before Comparing Capabilities
The Same Prompt Does Not Guarantee a Fair Comparison
“Use code to draw an indoor scene with a tranquil afternoon atmosphere” is an open-ended request. A model may choose 2D drawing, real-time 3D rendering, or an offline rendering program. These approaches differ significantly in computational cost, implementation difficulty, and visual ceiling.
If one result is interactive within seconds while another takes hours of computation to produce a single static image, comparing final screenshots directly only shows that the two workflows produce different visual outcomes—it does not prove which model has stronger coding ability.
A fair evaluation should record at least the following conditions:
| Evaluation Condition | What Should Be Recorded |
|---|---|
| Task type | Static image, looping animation, or interactive scene |
| Runtime environment | Available compute resources, display dimensions, dependency constraints |
| Time budget | Allowed time for generation, repair, and rendering |
| Output requirements | Source code, asset files, launch instructions, and final results |
| Human intervention | Whether supplemental prompts, code edits, or parameter adjustments are allowed |
| External resources | Whether loading images, fonts, 3D models, or materials is permitted |
The external resource restriction is particularly important. A photorealistic result achieved by loading an existing image tests a different capability than constructing a scene from geometry, materials, and lighting.
Replace Single Demonstrations with Repeated Trials
A single generation is susceptible to randomness. A more robust method is to repeat the same task under identical conditions and record:
- The proportion of first-attempt runs that execute successfully
- The number of repair iterations needed to meet acceptance criteria
- Whether key requirements were missed
- Time consumed for generation and execution
- Memory and compute resource usage
- Variance in results across runs
Do not cherry-pick the best result. In real development work, consistently producing acceptable code is generally more valuable than occasionally generating an impressive artifact.
Vector Animation: Relationships Matter More Than Element Count
Decompose the Scene Description into Verifiable Constraints
“Animal riding a bicycle” involves at least four categories of relationships: contact between the rider and the seat, connection between feet and pedals, linkage between wheels and frame, and coordination of movement speeds.
An animation may feature rotating wheels, a fluttering scarf, and changing backgrounds while still having obvious problems: feet not on pedals, wheels rotating around incorrect centers, or the animal’s body intersecting with the bicycle geometry.
Evaluation should therefore check structural relationships first, then assess decorative richness. A practical acceptance sequence:
- In a static frame, are the proportions of the rider and vehicle reasonable?
- During animation, do key connection points remain consistent?
- Does the loop close seamlessly without jumps?
- After speed changes, do all moving parts stay synchronized?
- Do pause, resume, and export functions maintain expected state?
Drive Animation from a Unified Clock
A common engineering flaw in animations is that different parts maintain separate timers. Wheels, pedals, and legs each track their own state—initially in sync, but gradually drifting apart over time.
A more robust approach derives all component phases from a single animation clock. The following pseudocode illustrates the idea:
animation_time = animation_time + frame_delta × play_speedpedal_angle = initial_angle + pedal_angular_velocity × animation_timeleft_pedal_position = compute_circular_position(pedal_angle)right_pedal_position = compute_circular_position(pedal_angle + half_rotation)wheel_angle = derive_from_pedal_angle_with_drive_ratio(pedal_angle)foot_position = corresponding_pedal_position
Complex dynamics simulation is not required, but violations of basic kinematic logic should be avoided. For the legs, a simplified inverse kinematics approach can keep the feet attached to the pedals while constraining knee bend direction.
If the bicycle has visible ground displacement, the relationship between wheel angular velocity and forward speed should be checked. Under ideal pure rolling conditions, linear velocity equals angular velocity multiplied by wheel radius. If the rider stays centered and movement is suggested by a scrolling background, the background speed must remain visually consistent with wheel rotation.
Treat “Exportability” as an Independent Test
Playability in an editor does not guarantee playability in an exported file. Export failures can stem from missing scripts, unavailable external resources, unserialized state, or unsupported behaviors in the target viewing environment.
Export testing should therefore run in an isolated environment and cover at least:
- Whether the file opens after closing the original editing page
- Whether resources are missing when offline
- Whether playback speed and theme state are preserved as specified
- Whether different canvas sizes cause cropping
- Whether the target viewing environment supports the animation mechanisms used
Self-containment reduces dependency risk but does not guarantee compatibility with every viewing environment. Delivery standards need to specify the target environment rather than promise universal availability.
Indoor Rendering: Correct Code Is Not the Same as Visual Realism
Distinguish Three Implementation Approaches
Generating indoor scenes with code generally falls into three categories.
2D procedural drawing uses paths, gradients, transparency, and textures to simulate space. It is lightweight but requires manual construction of perspective, occlusion, and lighting.
Real-time 3D rendering organizes scenes with geometry, cameras, materials, and lights, making it suitable for interactive displays. To meet real-time constraints, it typically employs approximations for shadows and indirect illumination.
Offline ray tracing or path tracing simulates light propagation through sampling, better capturing complex reflections and indirect lighting, but quality depends on sample count, scene complexity, and compute budget.
No single approach automatically implies stronger coding ability. The correct criterion is whether the chosen approach fits the task objective and meets requirements within the given budget.
Why Some Rooms Look Like “Just-Arranged Sets”
Having windows, chairs, plants, and flooring in a scene does not make it look natural. The “set” feeling typically results from multiple compounding factors:
- All object edges are equally sharp
- Wall corners are rendered as heavy black lines
- Floor texture scale does not match room proportions
- Plants are overly regular, lacking natural variation
- Furniture lacks plausible contact shadows with the ground
- Materials differ only in color, without roughness or response variation
- Every part of the frame is equally sharp and prominent, lacking visual hierarchy
Solving these issues is not about adding more objects—it is about calibrating the relationships among geometry, materials, lighting, and composition. For example, adding modest bevels to furniture edges produces more natural highlight transitions on silhouettes. Adjusting wood grain direction and scale often improves realism more than increasing texture detail.
Afternoon Atmosphere Depends on the Organization of Direct and Indirect Light
Window-frame projections only prove the presence of directional lighting—they do not alone demonstrate rendering realism.
Natural indoor lighting typically includes ambient illumination from the sky and indirect light bounced from floors and walls. There should be believable brightness and color transitions between directly lit and shadowed areas.
Three phenomena need to be distinguished:
- Shadows: Determined by light direction, occluders, and receiving surfaces
- Contact shadows: Help express the tight relationship between objects and their supports
- Indirect illumination: Light reflected from one surface contributing to the illumination of other areas
Darkening corners uniformly cannot substitute for these three effects. Otherwise, problems emerge such as overly dark corners, objects appearing to float, or contradictory shadow directions.
Shadow softness also does not improve realism monotonically. The softness–hardness balance depends on the angular size of the light source and the distance to the occluder, and should be judged per scene.
Aesthetic Ability Requires Separate Evaluation
Even when physical relationships are largely correct, an image may still lack expressive power. Aesthetic evaluation should examine:
- Is there a clear subject?
- Does the light–dark distribution serve the visual focal point?
- Is the color palette coherent?
- Do object arrangements create rhythm?
- Does the camera position support spatial expression?
- Do details reinforce the theme rather than compete for attention?
For “afternoon tranquility,” for instance, filling every corner is unnecessary. Restraint, controlled color, and a clear lighting path may be more effective than complex decoration.
Aesthetics, however, are subjective. Evaluation should separate objective issues—geometry intersections, wrong shadow directions—from subjective preferences such as color temperature.
Designing More Effective Prompts
Open-ended prompts are useful for observing autonomous planning but are not suitable for measuring instruction-following ability. A two-phase approach is recommended.
Phase 1: Open Generation
Specify only the subject, deliverable format, and basic constraints. Observe how the model chooses a technical path, organizes code, and allocates effort.
This phase focuses on autonomous decision-making. Do not retroactively add conditions to dismiss a result.
Phase 2: Constrained Generation
Write acceptance criteria in advance. For example:
Create an indoor scene with afternoon lighting, including a window, seating, and wooden flooring. Window-frame shadows should span at least two surfaces facing different directions. Use only procedurally generated geometry and materials—do not load external images. Deliver complete source code, run instructions, and a centralized configuration entry for light, camera, and material parameters. Explain the rendering method used and its limitations.
This type of prompt converts “make it as good as possible” into checkable constraints and helps localize failure causes.
Also require the model to clearly distinguish implemented features from planned features. Code not actually executed should not be described as “verified.” If the runtime environment is inaccessible, provide verification steps rather than fabricating results.
Building Layered Acceptance to Prevent Pretty Screenshots from Masking Engineering Flaws
Real projects benefit from a “gate check plus scored extras” approach.
Set non-negotiable gates first: code starts, key interactions work, no unauthorized external dependencies, and deliverable files are complete. If a gate fails, the deliverable cannot be accepted even with an attractive screenshot.
After gates pass, score each dimension:
| Dimension | Core Question |
|---|---|
| Requirement adherence | Are explicit requirements fulfilled without omissions or unauthorized changes? |
| Code quality | Is the structure clear, are parameters centralized, and is modification straightforward? |
| Motion and space | Are connections, perspective, occlusion, and motion relationships consistent? |
| Visual expression | Do lighting, materials, and composition support the intended atmosphere? |
| Resource efficiency | Is there obvious redundant computation or unnecessarily expensive approaches? |
| Deliverable reliability | Can the result be reproduced? Are anomalies and dependencies documented? |
Weights should depend on use case. Interactive prototypes prioritize responsiveness and modifiability; static visual work prioritizes image quality; production systems require consideration of long-term maintenance and operational cost.
Conclusion: Capability Improvement Requires a Verifiable Workflow
Code generation, 3D construction, and visual aesthetics are interrelated but not interchangeable capabilities. More features do not necessarily indicate more accurate spatial reasoning. Slower rendering does not necessarily mean a more advanced algorithm. A prettier single image does not prove more reliable engineering delivery.
For developers, the most effective evaluation is not a general “which is better” ranking. It is clarifying task objectives, controlling resource budgets, decomposing acceptance criteria, and observing stability through repeated trials.
When evaluation shifts from “is the first impression striking” to “has every critical requirement been verified,” model-generated animations and 3D scenes can progress from showcase pieces to trustworthy development artifacts.
