Evaluating Pure-Code Short Films with Large Language Models

    A practical evaluation of whether large language models can deliver a complete, exportable short film using only code: no external assets, no generative media APIs, and a reproducible project under fixed duration, resolution, and frame-rate constraints. The article covers acceptance checklists, a four-act visual structure, render-pipeline modules, engineering delivery, scoring criteria, and how teams can operationalize the same prompt-to-render loop.

    Why “pure-code film” is a harder test

    Treating a large language model as a chat assistant often yields polished-sounding prose. Treating it as a creative technical director and graphics programmer—and requiring a complete, runnable, exportable project in a fixed time—is a different test. It checks three capabilities at once: faithful execution of constraints (no external assets, no generative media APIs); turning abstract visual ideas into compilable, renderable implementation; and engineering completeness (dependencies, run commands, export paths, fallbacks). For developers and content teams, that is closer to real delivery than a lively conversation.

    The original brief can be abstracted as: in roughly 30–60 seconds, full HD, at a fixed frame rate, produce a short film with a beginning, development, climax, and resolution using only math, procedural textures, particle/fluid approximations, shaders, and procedural audio—and ship a reproducible project. Scoring should ask: is it truly code-only, can it be reproduced, does the picture form a narrative, does technical complexity land in running code, and are engineering and performance stable.

    Write the brief as an acceptance checklist

    “Wow” without acceptance criteria becomes non-running pseudocode. Split constraints into checkable items:

    • Asset boundary: no external images, video, or audio files; no text-to-image, text-to-video, or generative-audio APIs. Picture and sound must be generated at runtime.
    • Technical path: signed distance fields, fractal iteration, instanced particles, procedural materials, and post-processing are allowed. Browser solutions need a single-page entry and offline-run notes; local render solutions need environment and commands.
    • Deliverables: source and file layout, dependency notes, run and export commands, output path or frame-sequence naming.
    • Narrative: a stated visual concept, with rhythm in camera, color, and composition—not a themeless tech demo.
    • Performance: a budget (resolution, particle scale, shader cost) and a downgrade path (fewer instances, disable expensive post, lower sampling).

    These items are the evaluation script. If the model stacks jargon without a runnable core, it fails.

    How audiovisual narrative maps to a four-act structure

    The common failure of pure-code shorts is a full technical stack and an empty story. A better approach is to lock a motif and beats first, then map them to graphics modules. For example, motif “from chaos to order, from micro to macro,” four acts on a fixed beat:

    1. Setup: low contrast, small scale. Fractals or noise fields as a “nucleus” and waking veins; close camera, cool palette, small motion.
    2. Development: space opens. Procedural architecture, volumetric-light approximation, and diagonal composition build a sense of place; tempo rises but stays restrained.
    3. Turn: climax. Heavier optical approximations (gravitational-lens-style warp, high-speed particle vorticity, hard highlights); unconventional camera angles and acceleration.
    4. Resolution: energy converges after impact. Shockwave, condensation, crystal, or starfield mirrors pull energy into a stable form; slow pull-out.

    The motif does not need paper-grade physics, but it must be internally consistent: each act change should have explainable parameter motives (noise frequency, particle density, color temperature, focal length). If audio is also procedural, it should share the same timeline and beats as the picture—not an unreproducible track added later.

    Technical approach: from buzzwords to implementable modules

    Term-stacking (hybrid fractal distance fields, relativistic-style lenses, accretion-disk color shift, massive instanced particles, anti-flicker bloom, cinematic grade, high-sample-rate synth audio) is not extra credit. Credit comes when each term maps to runnable logic, clear I/O, and a bind to the timeline.

    Split by render pipeline:

    • Geometry and fields: SDFs for implicit forms; fractal iteration for detail; time-driven deformation so frames do not feel like static maps.
    • Optical approximation: screen-space warp for lenses; radial velocity mapped to hue for a Doppler-like look; volumetric light via ray marching or attenuation integrals, with an eye on step count and cost.
    • Particles: instanced vorticity or orbital particles. Scale should be configurable from low to high; do not hard-code “tens of thousands” that cannot run on the target machine.
    • Post: threshold highlights, blur, composite; anti-flicker needs temporal stability (history frames or a stabler threshold) or a 30 fps export will jitter.
    • Grade: standard tone-mapping to control highlights and midtones so the four acts share a color language.
    • Audio: oscillators, envelopes, noise, and filters triggered by bars; export on the same clock as video to avoid drift.

    The hard part is usually not “can you write a shader,” but numerical stability over long shots, bandwidth when particles and post stack, resource limits of a single-page offline browser run, and disk/encode time for a full-HD sequence. The model should offer downgrades unprompted: fewer particles, fewer steps, one bloom layer off, some noise pre-baked.

    Engineering delivery: no reproduction, no experience

    “How did it actually feel” should first answer: can someone else get it running from the docs in on the order of two hours. A complete handoff at least includes:

    • File structure: entry page or main program, shader/compute modules, audio module, export script, README.
    • Run: local static server or interpreter start; where resolution and frame-rate parameters are read.
    • Export: per-frame offscreen draw or offline render; zero-padded frame names; then a generic encode/mux flow. Do not lock a vendor brand; state container, bitrate, and color range in generic terms.
    • Self-score: visual impact, technical difficulty, code quality, reproducibility, performance—each with evidence, not empty numbers.

    If the output is tens of seconds, thousands of frames, and hundreds of megabytes, document encode settings and whether a smaller preview exists. Size is not quality; a stable, reproducible mid-complexity piece is often more valuable than a heavy scene that happened to run once.

    How to score models objectively

    Use five dimensions, each with a veto:

    • Constraint compliance: any external asset or generative-media API call fails.
    • Reproducibility: missing deps, missing commands, or core visuals as pseudocode fails.
    • Visual narrative: only noise and particles, no camera or color design, score is capped.
    • Technical landing: terms map one-to-one to code; complexity with a downgrade path.
    • Engineering and performance: a budget, previewable on a typical developer machine, complete export path.

    For models billed as “strongest,” watch whether they protect a runnable core under length limits instead of a glossy concept with a blank implementation. When using them, put the acceptance list first in the prompt and require a minimal running version before stacking fractals, lenses, particles, and post.

    Practice notes and cloud-side support

    Teams that want this in daily production need not bind to one chat product. Pipeline “prompt—code—render—storage—review.” Drafts and frame sequences can sit in object storage; long renders can use elastic compute on a container platform; logs and alerts catch shader compile failures, memory peaks, and export interrupts. General object storage, containers, and log monitoring on Baidu AI Cloud are enough for an internal eval yard: fixed prompts, fixed machine spec, fixed timeout, compare first-pass rate and human rework across models.

    For an individual, the smallest loop is: single-page shader preview → run the four-act timeline at lower resolution → then full-HD export. Skipping preview and rendering at full resolution wastes eval time on waiting.

    Closing

    The core of a pure-code short-film eval is not whether a model can recite optics and graphics vocabulary. It is whether it can, under hard constraints, ship a runnable, exportable, narrative project. Checklist the constraints, modularize the audiovisual structure, and treat reproduction as the first experience—so “first use of a strong model” becomes a repeatable technical judgment. For teams that need stable throughput, locking the eval with object storage and containerized rendering is worth more than a one-off spectacular demo.