Code-Only Short Films as a Practical Test of LLM Engineering Delivery
Code-only short films offer a representative way to evaluate whether a large language model can deliver engineering work, not merely produce an impressive answer. This article presents an evaluation framework built around an explicit acceptance contract for assets, output specifications, and execution status; visual narratives that constrain technical choices; project structures that make individual frames independently reproducible; verification of particle systems, procedural materials, lighting, and post-processing; performance budgets based on measurement; and traceable frame-sequence export and reproduction workflows. It also defines hard gates and quality dimensions for judging results by inspectable source code, repeatable processes, and real output files rather than by the confidence of the model's wording.
1. Evaluation Focus: From Impressive Answers to Trustworthy Delivery
Letting a large model create a short film through code is a representative, comprehensive test task. It involves requirement understanding, creative planning, mathematical modeling, graphics programming, project organization, and file export. It is closer to real development work than generating a single function.
First, however, a boundary must be established: the original material provides test intent and prompt requirements, not complete code, actual runtime logs, exported files, or visual results. It is therefore not possible to use that material alone to judge a model’s visual quality, runtime stability, or actual completion level. A more useful approach is to turn this kind of attempt into a general engineering evaluation method.
An answer may contain attractive conceptual descriptions, complex technical terminology, and a tidy file directory while still failing to deliver. For example:
- The animation plays in a preview window but has no frame-by-frame export mechanism.
- The code claims offline operation but depends on remote resources.
- The work claims to include shadows but only draws dark areas.
- The response lists an output file path but does not actually create the file.
A test of this kind should therefore focus on four questions:
- Are the images and sound actually generated by the program?
- Can the project be reproduced in the environment it declares?
- Are the timeline, visual structure, and export pipeline complete?
- Are performance and failure handling reasonably designed?
Only after these questions have been verified is it appropriate to discuss whether the work is impressive.
2. Convert Creative Requirements into an Acceptance Contract
Open-ended prompts tend to push generated results toward conceptual expression. An engineering-oriented test should convert requirements into an explicit delivery contract, so that each promise has a corresponding verification method.
2.1 Define the Asset Boundary
“Pure code generation” does not mean that no dependencies are allowed. General graphics libraries, mathematical modules, and video encoding components can handle infrastructure responsibilities. The real restriction concerns content: the work must not obtain visual, audio, or other content from external images, video, audio, or generative content APIs.
Permitted content sources can include:
- Shapes, colors, and displacements generated by mathematical functions.
- Initial particle states generated from a fixed random seed.
- Textures built from noise, fractals, and distance functions.
- Sound synthesized with oscillators, filters, and envelopes.
- Text, lines, and geometric patterns drawn by the program.
Acceptance checking should inspect not only source code but also asset directories, network access, and dependency installation. A project may appear to have only one entry file while actually downloading textures or fonts after startup. That would still violate strict asset constraints.
2.2 Fix the Output Specification
Resolution, frame rate, and duration must form a consistent calculation. For example, a 45-second short at 30 frames per second should export 1350 frames.
The time of frame (i) can be calculated as:
[
t_i = \frac{i}{30}, \quad i=0,1,\ldots,1349
]
Do not advance export time based on how long the program actually took to run. Otherwise, the same code may produce different shot rhythms and animation states on machines with different speeds.
Complete acceptance should also cover frame dimensions, frame count, playback duration, missing frames, and audio-video synchronization. One point requires particular attention: the sampling time of the final frame is not the same concept as the total playback duration of the video. Each frame still occupies its corresponding display time.
2.3 Distinguish Source Delivery from Execution Delivery
It is useful to divide completion status into three levels:
- Source complete: Directories, dependencies, configuration, and run instructions are all present.
- Runtime validation: The project starts and key frames can be generated normally.
- Export validation: A video or complete frame sequence has been obtained, and basic attributes have been checked.
If the execution environment cannot generate files, the limitation should be clearly stated and a complete export method should be provided. “Can in theory be exported” must not be written as “has been exported successfully.”
3. Use Visual Narrative to Constrain Technical Selection
The most common problem with programmatic short films is not insufficient technical complexity but a lack of organization. Large numbers of particles, neon effects, and rotating cameras appearing at the same time do not necessarily produce an effective work.
A more reliable sequence is: first define the visual proposition, then arrange the temporal structure, and finally select the technology.
For example, an abstract theme could be “moving from disorder to order, then disintegrating and recombining.” It does not depend on external assets, and it suits expression through particle motion, procedural materials, and color changes.
Using 45 seconds as an example, the work can be divided into four stages:
| Stage | Time range | Visual task | Technical focus |
|---|---|---|---|
| Opening | 0–8 s | Sparse points of light appear, establishing space and scale | Particle initialization, fade-in control |
| Development | 8–22 s | The points converge into a ring-like structure | Flow fields, attraction, trajectory design |
| Turn | 22–35 s | The structure becomes unstable; color and motion change | Perturbation, shape transformation, camera push-in |
| Resolution | 35–45 s | Motion converges into a stable pattern | Damping, composition return, fade-out |
These timings belong to the design plan and do not represent actual test results. The key is to define a primary visual focus for each stage and avoid keeping every effect at maximum intensity throughout.
Technical complexity should also be organized around expression. If the theme is spatial convergence, particle flow fields may be the focus. If the theme is material change, procedural textures and lighting may be the focus. There is no need to stack every technique at once merely to demonstrate capability.
4. Core Architecture: Each Frame Should Be Independently Explainable
A reproducible rendering project should at minimum separate configuration, timeline, scene computation, image rendering, and file output.
The following structure is recommended:
project/source/entryconfigurationtimelinescenerendererexporterchecks/frame_countrepeatabilitydependency_auditoutput/frames/video/instructions
These names express module responsibilities only. They do not prescribe a particular development language or tool.
4.1 Centralize Configuration
Resolution, frame rate, total frame count, random seed, quality level, and output directory should be set in an explicit location. Do not let the preview module use one set of parameters while the export module uses another set of defaults.
A configuration snapshot should also be recorded. If visual differences appear later, the first step should be to determine whether they were caused by parameter changes, rather than immediately attributing them to the model or runtime environment.
4.2 Prefer Deterministic Time Control
For purely visual changes, state can be calculated directly from time:
[
S(t)=f(t,\text{seed},\text{parameters})
]
This design allows any frame to be generated independently, making it suitable for keyframe checks, retries, and segmented export.
If particle dynamics or other stateful simulation is used, the project should advance with fixed time steps and ensure consistent initial states. Complex scenes can save checkpoints to avoid recomputing the entire work when retrying a single frame.
Note that a fixed random seed does not automatically guarantee byte-for-byte consistency across different hardware environments. Floating-point calculations, parallel execution order, and graphics driver differences can still affect results. Reproducibility should therefore distinguish between “consistent results in the same environment” and “visual consistency across environments.”
4.3 Separate Generation from Export
Scene computation answers “what state should exist at this moment”; the rendering module generates pixels; the export module handles naming, disk writes, and progress recording.
This separation avoids common errors:
- Animation time slows when file writes become slow.
- The output timeline jumps when the preview window pauses.
- If encoding fails, every frame has to be recomputed.
5. Making Complex Technologies Verifiable
Technical terminology has evaluation value only when it is tied to an actual computation process.
5.1 Particles and Flow Fields
A particle system usually contains attributes such as position, velocity, lifetime, color, and size. Motion can be determined jointly by a base flow field, target attraction, and perturbation:
[
\mathbf{a}
=
\mathbf{F}{flow}
+
\mathbf{F}{target}
+
\mathbf{F}_{noise}
-
\lambda\mathbf{v}
]
The final term applies velocity damping. The strength of each term should vary over the timeline so that particles can move from free drifting toward aggregation.
Particle count is not a direct indicator of quality. If large numbers of particles follow identical motion patterns and lack sufficient layering, they may only form chaotic noise. A smaller number of particles combined with foreground and background distribution, brightness control, and trajectory design can be more expressive.
5.2 Procedural Materials and Lighting
Procedural materials can calculate color from spatial position, surface normal, noise values, and time. Multiscale noise can provide detail, but high-frequency components must be controlled to avoid flicker and aliasing.
Lighting and shadows should also be distinguished. Calculating brightness from the surface normal is a basic lighting method. A shadow involves an occlusion relationship that prevents a region from receiving light. If only brightness gradients have been implemented, the project should not claim to have a complete shadow system.
5.3 Post-Processing
Glow, tone mapping, and subtle vignetting can unify the visual language, but they cannot replace composition.
Glow in particular is easy to overuse. Excessive strength can swallow detail and make different scenes share similar bright outlines. A more reasonable pipeline is first to ensure that the original image has depth, then use post-processing to reinforce focal points.
If motion blur is used, the project should explain whether it is implemented through multiple temporal samples or through another approximation method. Different methods have different computational costs and visual errors.
6. Performance Budgets Must Be Based on Measurement
Thirty frames per second corresponds to a frame-time budget of about 33.3 milliseconds, but this is only a real-time playback target, not a mandatory limit for offline export. Offline rendering can spend more time in exchange for quality as long as total runtime and resource requirements are acceptable.
Performance analysis should cover:
- Scene state calculation
- Pixel rendering
- Post-processing
- Reading back graphics results
- Frame file writes
- Video encoding
For an uncompressed frame buffer at 1920×1080 with four bytes per pixel, one frame occupies about 8.3 megabytes; 1350 frames occupy about 11.2 gigabytes. Actual file size depends on storage format and compression. This shows that an export task must consider disk space and write speed, not only image computation.
A reasonable degradation order can be:
- Lower the internal resolution of post-processing.
- Reduce high-frequency texture sampling and secondary lighting calculations.
- Reduce particle density in distant areas.
- Reduce the number of temporal samples for motion blur.
- Adjust the overall rendering resolution last.
When degrading quality, prioritize protection of the main silhouette, key shots, and narrative rhythm rather than reducing all effects uniformly.
7. Establish a Traceable Export and Reproduction Workflow
A recommended approach is to export a frame sequence first and then package it into a video. This usually requires more storage space, but it helps locate errors, check for missing frames, and recover failed tasks.
Frame files should use fixed-width consecutive numbering, such as:
frame_000000frame_000001...frame_001349
The export workflow should include at least:
- Check dependencies and available disk space.
- Fix configuration and the random seed.
- Generate the first frame and several stage-transition frames.
- Check dimensions, color, and main subject position.
- Render the complete sequence.
- Verify numbering continuity and frame count.
- Encode the video at the specified frame rate.
- Check actual playback duration and key shots.
If the short film includes procedural audio, the sample rate, channel count, and start time should also be fixed. The number of audio samples should match the video duration, and peaks should be checked to prevent clipping.
Run instructions should not merely say “start the project” or “export the video.” They should explain the required environment, how to obtain dependencies, the entry point, how to modify configuration, the output directory, and recovery steps after failure. For offline requirements, distinguish between “can run offline after dependencies are preinstalled” and “can be deployed completely offline from scratch.”
8. Evaluate Results, Not Wording
Evaluation should first set hard gates and then discuss quality.
Hard gates include: no prohibited external assets, complete source code, executable key steps, output specifications that meet requirements, and truthful disclosure of execution status. If any of these fails, a favorable overall impression must not be allowed to conceal the failure.
After the gates are passed, the following dimensions can be observed:
- Visual expression: Is the theme clear? Do composition and color have depth?
- Narrative pacing: Do stage transitions have motivation? Are there long repetitions?
- Technical implementation: Are complex technologies actually implemented? Is the computation logic reasonable?
- Software engineering: Are module responsibilities clear? Are parameters and exceptions easy to manage?
- Reproducibility: Can consistent results be obtained in the declared environment by following the instructions?
- Performance stability: Are runtime, memory, disk usage, and retry mechanisms controllable?
Self-evaluation should also be evidence-based. For example, “good reproducibility” requires showing that repeated execution is consistent; “stable performance” requires an actual environment and measurement scope. When test data is absent, claims should be marked as design expectations rather than factual conclusions.
9. Practical Significance for Developers and Enterprise Users
The value of this kind of task is not in proving that a model can generate a dazzling work in one attempt. It is in observing whether the model can handle cross-module, long-chain, multi-constraint requirements.
Individual developers can use it to test a model’s ability to decompose requirements, locate errors, and revise code. Enterprise users should pay further attention to dependency compliance, runtime isolation, resource quotas, log retention, and artifact tracing. Generated code is unverified input and should not be placed directly into an environment with sensitive permissions without review.
In practice, staged collaboration is usually more reliable than requesting everything at once: first review the plan, then validate a minimal runnable image, then complete the timeline and export modules, and finally perform performance optimization and visual polishing.
Ultimately, the code-only short film is a good touchstone for engineering capability. It connects creativity, algorithms, implementation, and delivery, and it exposes the gap between “can describe a plan” and “can complete a plan.” Credible evaluation should not rest on a model’s claims or the confidence of its prose. It should rest on inspectable source code, reproducible processes, and output files that actually exist.
