Engineering Guide to Procedural Short Video Production

    This guide outlines a practical approach to engineering procedural short videos without using external assets. It covers defining a visual concept, utilizing signed distance fields (SDFs) for complex geometry, designing particle curl fields, implementing robust post-processing and procedural audio, and delivering reproducible projects with performance budgets and degradation strategies. Readers will gain a comprehensive framework for evaluating and building high-quality procedural animations.

    Procedural short video production is not merely “running a demo script.” It involves using mathematics, shading, and timelines to achieve composition, rhythm, and final output with zero external assets. Evaluating such work should rely on five criteria: whether the visuals are entirely program-generated, whether the project can be reproduced in a clean environment, whether the visual narrative has a clear arc (introduction, development, climax, and resolution), whether the technology is genuinely complex, and whether performance and stability are acceptable. The following sections outline a practical methodology in the order of project delivery.

    1. Define the Visual Concept Before Choosing Algorithms

    Effects without a concept simply become a parameter exhibition. It is recommended to divide a 30 to 60-second video into four segments: introduction, development, climax, and resolution. Each segment should serve a single spatial metaphor, such as “an observer approaches a self-rotating luminous structure, light is bent by mass, particles are drawn into a curl field, and finally, the color returns from cold white to a dark field.”

    Keep the concept description under two hundred words, clearly stating three things:

    • Main geometry: fractal solids, thin disks, volumetric fog, or a nested combination of these.
    • Camera movement: pushing in, orbiting, flying through, or locking on before a sudden pull-out.
    • Color narrative: low saturation at the opening, increased contrast in the middle, and darkened tones at the end while retaining a single highlight trail.

    Technical selection must serve the camera, not the other way around. Wide shots are suitable for low-iteration distance fields and sparse particles; close-ups require increased surface detail, bloom, and tone mapping intensity. This ensures the audience perceives rhythm rather than frame rate jitter.

    2. Organize Complex Shapes Using Signed Distance Fields

    Signed Distance Fields (SDFs) are ideal for writing various geometries as composable functions. Each point in space returns the distance to the surface—positive outside and negative inside. Unions, differences, and smooth blends can all be achieved using minimal min, max, and blending functions, requiring no external models or textures.

    Blended fractals can be understood as follows: the base solid provides a readable silhouette, while the fractal folds provide edge complexity. The number of folds must have an upper limit. Distant fractals should have fewer iterations, increasing iterations only when close to the surface; otherwise, the fill rate will collapse before the aesthetics do.

    The schematic structure is as follows:

    1. d = smooth_union(base_shape(p), fractal_shell(p, iterations(distance)))
    2. normal = normalize(gradient(d))
    3. color = shade(normal, view, material)

    The key difficulty lies not in the formulas themselves, but in scale. If fractal coordinates are not periodically wrapped or amplitude-limited, values will rapidly amplify, normal differencing will produce noise, and bloom will amplify that noise into flickering. You should fix world units, camera near/far clipping planes, and the maximum number of ray-marching steps, explicitly documenting these budgets in comments.

    General relativity-style gravitational lenses do not require solving the complete field equations. Visually, an approximation of “light bending near mass” is commonly used: bend the ray direction based on the distance to the center, then sample the background starfield or accretion structure. Its value is making spatial relationships readable—audiences can feel the mass bending light rather than seeing an unrelated distortion filter. Doppler-style accretion disks can also be procedural: use angle, radius, and time to generate bright bands, increasing frequency and brightness near the inner side, while darkening and slowing down away from the center. This is shading and motion design, not a substitute for scientific simulation; the documentation should clearly state the approximation limits.

    3. Particle Curl Fields Should Serve Volume, Not Just Quantity

    Tens of thousands of instanced particles only make sense if the motion field is interpretable. Curl fields allow velocity to flow along closed or spiral directions, making them suitable for representing suction, ejection, and circulation. Implementation can pre-compute low-resolution vector textures or calculate velocity on the fly using a few sine wave superpositions; particles only integrate their positions, avoiding heavy neighborhood searches every frame.

    Engineering recommendations:

    • Use instanced drawing to avoid submitting a separate draw call for each particle.
    • Lifespan, seeds, and initial phases should be entirely determined by index and time, ensuring the same random seed produces the same image.
    • Merge distant particles into low-precision points or reduce their update frequency based on distance.
    • Set a maximum instance count and provide a one-click degradation option: halve the count, disable volumetric shadows, and shorten trails.

    Particles should not carry the narrative alone. They should orbit around the SDF main body, increase in density during the climax, and be clipped to the dark areas during the resolution. This way, quantity changes themselves become cinematic language.

    4. Post-Processing Determines “Cinematic Feel” and Most Easily Ruins Stability

    The core of anti-flicker bloom is: extract only the brightness above a threshold, blur it on progressively down-sampled images, and blend it back with stable weights. Flickering usually comes from sub-pixel highlights jumping in and out of the threshold between frames. This can be mitigated by using neighborhood brightness weighting, limiting single-pixel contributions, and applying slight temporal smoothing to the threshold. Do not use uncapped addition, or highlights will clip to dead white.

    Tone mapping compresses linear high dynamic range to display range. Lighting, bloom, and compositing should be completed in linear space first, followed by contrast, color temperature, and vignette adjustments. Blurring in a non-linear color space will cause dirty colors at the edges. Cinematic feel comes from controllable highlight roll-off and shadow separation, not from blindly increasing saturation.

    The post-processing chain should be fixed as: linear compositing, brightness extraction, multi-level blur, bloom blending, tone mapping, slight grain, and output encoding. Each step should be independently toggleable to help locate flickering and color banding.

    5. Procedural Audio Must Share the Timeline with Visuals

    Without external audio, oscillators, envelopes, and filters can be used to generate the soundtrack. A common sampling rate of 48 kHz is sufficient, but it must be locked to the video timeline: the same master clock drives camera keyframes and note envelopes. Bass corresponds to structural proximity, high-frequency grains correspond to particle density, and segment transitions use filter cutoff frequencies rather than sudden muting.

    The audio module should output a repeatable sample sequence, which is then packaged with the image frames. Do not rely on one-time interactive performances. Document the sampling rate, duration, master volume, and peak limits to avoid clipping during export.

    6. Deliverables Matter More Than Effect Descriptions

    A complete project must include at least: an entry file, shading or simulation modules, timeline configuration, rendering scripts, dependency instructions, run commands, and export commands. If running offline in a browser, provide a single-page entry with shaders embedded or distributed in the directory, allowing reproduction upon refresh. If rendering frame-by-frame in a script environment, provide complete commands for creating the environment, installing dependencies, rendering frames, and packaging the video, without relying on local absolute paths.

    Output conventions must be unambiguous, for example, frame files incrementing as frame_00001.png, final output as build/out.mp4, resolution 1920×1080, and frame rate 30. Commands must specify the encoder, pixel format, and constant frame rate. Pasting only “effect demos” or pseudocode does not count as a delivery.

    When space is limited, prioritize runnable core visuals: one distance field, one particle update, one post-processing chain, and one export script. Decorative parameters can be added later.

    7. Performance Budget and Degradation

    Define the budget on the target machine before adding effects. For example, at 1080p and 30 fps, ray marching steps, fractal iterations, particle counts, and bloom levels should all have upper limits. The scene should use quality tiers rather than scattered hardcoded magic numbers:

    • High: full iterations, all particles, four-level bloom.
    • Medium: reduced fractal iterations and particle update frequency.
    • Low: disable volumetric light and bloom, retain the main silhouette and camera movement.

    Each tier must still clearly convey the narrative. Additionally, record the warmed-up frame time, peak memory, and total export time. “Real-time” without measurement is meaningless. Stability also includes: fixing seeds, disabling non-deterministic parallel reductions, or sorting their results to avoid inconsistent visuals between two exports.

    8. How to Self-Evaluate

    A five-point scale can be used, but each item requires evidence:

    • Pure Code: No external images, videos, or audio; no generative media interfaces.
    • Reproducible: Running the documented commands in a new environment produces the identically named final video.
    • Visuals: The four-segment rhythm is clear, and the subject, light bending, and particle movement are easily understood.
    • Technology: At least one of distance fields, instanced particles, bloom, or procedural audio is adjustable, toggleable, and measurable.
    • Engineering: Module boundaries are clear, and budgets and degradation are written into the configuration rather than hidden in test code.

    Advanced vocabulary itself is not a measure of quality. Blending distance fields, ray bending, particle curl, anti-flicker bloom, tone mapping, and procedural soundtracks only constitute a qualified procedural short film practice if they simultaneously meet concept unity, numerical stability, runnable commands, and graceful performance degradation.