Create a Cinematic Historical One-Take Video with Code
Build a cinematic, continuous historical video by turning researched event highlights into worlds generated entirely with code. The event, duration, and output format can be adjusted while preserving the prompt’s detailed production and review requirements
Example media
These files may include inputs, references, or generated results
AI-generated video of a cinematic, continuous journey through the Goryeo–Khitan War, with historical scenes transforming as code is entered, dramatic camera movement, shifting palettes, and a final point of light.
Download video result 1AI-generated video of a cinematic, continuous journey through the Goryeo–Khitan War, with historical scenes transforming as code is entered, dramatic camera movement, shifting palettes, and a final point of light.
Download video result 2Prompt template
- Format
- Markdown Parameterized
- Inputs
- Historical_event (text) · Optional · Default: Goryeo–Khitan War Duration (text) · Optional · Default: 55 seconds Aspect_ratio (text) · Optional · Default: 16:9 1920×1080 event (text) · Optional · Default: Goryeo–Khitan War
- Outputs
- Rendered_video (video) Project_and_review_files (code, document, image, audio, video)
**Topic: ${event:Goryeo–Khitan War}**
Create a cinematic video highlighting ${event:Goryeo–Khitan War}, lasting exactly ${duration:55 seconds}. Make it spectacular enough to stop a passerby in the first second, keep them watching to the end, and make them think, “This is all code?” Keep the pacing fast, and make each scene grow in scale.
## 1. First: research the event and design the beats
1. Research ${event:Goryeo–Khitan War} and select 6–8 chronological highlights. For each scene, specify the date, location, and iconic image—what fills the screen.
2. Keep the historical facts accurate. Dates and place names in captions must be correct. If uncertain, use only the year.
3. Choose one short line of code for each scene that actually executes. That line creates the next world.
- Examples: `war.begin(1939)`, `temp = -30` (determines blizzard density), `E = m * c**2` (determines the scale of an explosion), `peace = true`.
- Show the result of each execution on screen, as in a REPL. Example: `← 1.05e+14 J ≈ 25 kt`.
- The executed value must actually change the image. It must not be decorative.
4. Write the scene plan in `TREATMENT.md` first. Include timing, code to be entered, transformation method, camera, lighting and color, and sound.
## 2. Video format (the original creates-everything technique)
- Make one uninterrupted continuous take. Do not change scenes with cuts, crossfades, or whiteouts. The previous world must transform into the next—for example, the sea freezes, a city rises from the coast, or lights are drawn into a single point.
- **Opening:** Start on a black screen with a blinking cursor. When the first code is entered and Enter is pressed, ignite the cursor into the sun or the first scene’s light source.
- **Progression:** Use 120 BPM. Align every Enter keypress to the beat, in 0.5-second increments. As each line is entered, type the code along the bottom of the screen; when Enter is pressed, transform the world.
- **Ending:** Make everything swirl and converge into a single point. Hold complete silence (digital zero) for exactly 0.9 seconds. Turn the point back into a cursor, type two final lines of text, and let them blink for a few seconds. Write the text to fit the event; for example, `1939 — 1945` / `Never again.`
- **Captions:** Put small captions in the upper left, showing only the location and date. Use a size and contrast that remain readable on a phone.
- Render at 1920×1080, 60 fps, for exactly ${duration:55 seconds} and in ${aspect-ratio:16:9 1920×1080} format.
## 3. How to make it
- Create everything with code: images, terrain, models, textures, text, music, and sound effects. Do not use image, video, audio, or 3D model files; image- or music-generation AI; or TTS.
- Use a Three.js (WebGL2) renderer with custom GLSL shaders. Include sky, sea and terrain, volumetric clouds and smoke (ray marching), particles, and color grading.
- Make the video deterministic: generate it as a pure function of time `t`. Seed all randomness. Expose `window.renderAt(t)` and `window.DURATION`.
- Put scene layout (camera path, explosion timing, and sound-effect timing) in one pure JavaScript module. Have the visuals and audio read their timing from the same module.
- **Rendering:** Launch headless Chrome with `--use-angle=metal --enable-gpu` to use the Mac GPU. Export a PNG for every frame and combine them with ffmpeg. Render each frame four times and average the results for motion blur.
- **Music:** Synthesize the music in Python using numpy only. Use 120 BPM and a key suited to the event’s mood. Use braams, sub hits, taiko, ostinatos, pads, and choir-like formants; add scene-specific sound effects such as engines, artillery, explosions, and wind. Generate key-click sounds from the characters being typed. Include **no vocals or lyrics**. Master to −14 LUFS, with true peak no higher than −1 dBTP.
## 4. Direction standards
- Every paused frame should look like a shot from a major motion picture, with focus, depth, atmosphere, and realistic light: backlighting, reflections, haze, and light sources illuminating their surroundings.
- Change the palette, time of day, and lighting from scene to scene, such as sunset → morning → blizzard gray → fire at night → dawn.
- Move the camera like a stunt pilot: make close passes, steep dives, banks, and passes between objects. Every movement must have a destination.
- Avoid flat graphics, neon grids, meaningless clouds of particles, and scenes where the whole screen is blown out to white.
- Limit flashing to at most 3 times per second for photosensitivity safety.
## 5. Historical representation principles
- Do not recreate the faces or portraits of real people. Represent them with crowds or silhouettes.
- Do not show victims directly or depict them graphically. Convey scale and destruction through landscapes, light, and smoke.
- Do not glorify events such as massacres or mass civilian casualties. Handle them with restrained symbols such as lights, empty spaces, and silence.
- Use national or group symbols such as flags and insignia only when essential, and present them neutrally.
## 6. Review and quality checks
Since you cannot directly view the video, compensate as follows:
1. First create 3–4 highlights at final quality. Export a sheet of stills and use it to make revisions.
2. Render a 30 fps draft of the full video and make a 2 fps contact sheet to review its flow. Critique it from the perspective of a “bored X user” at least three times, then revise it.
3. Find every point where average frame brightness changes sharply, and determine whether it is intentional or a bug, such as a camera jump, empty buffer, or light switching off.
4. Measure loudness, true peak, and silent sections (confirm whether they are exactly zero). Be honest that you cannot directly hear the sound.
Common pitfalls:
- The camera may descend below the terrain and end up filming underground. Automatically check the difference between camera height and terrain height.
- Three.js `AdditiveBlending` multiplies by source alpha. If a shader outputs alpha 0, use `CustomBlending One/One`.
- If the ground mesh has the wrong winding order, it will not be visible from above.
- Multiply glow sprites by a radial window function to avoid visible square edges.
- Thousands of overlapping additive fire particles can make the screen look foggy. Reduce their number and intensity.
## 7. Deliverables
- `index.html`: real-time preview with `renderAt` and `DURATION` exposed
- `<title>.mp4`: H.264 High, yuv420p, crf 16, AAC 320k at 48 kHz, `+faststart`, and the exact frame count
- `<title>_x.mp4`: version for X uploads, no larger than 60 MB
- `soundtrack.wav`, `contact_sheet.png` (2 fps), and `thumbnail.png`
- `NOTES.md`: scene plan, code entered and its timing, how each world was implemented, check measurements, honest limitations, and render time
When rendering is complete, open the finished video directly in a playback window
Replace the ${…} placeholders with your values
before using this prompt. See parameters
and defaults below
Parameters
Replace each placeholder with your own value, or use its default when one is provided
${event:Goryeo–Khitan War}
event
Default: Goryeo–Khitan War
${duration:55 seconds}
duration
Default: 55 seconds
${aspect-ratio:16:9 1920×1080}
aspect-ratio
Default: 16:9 1920×1080
What you'll create
This prompt asks for a historically researched, code-generated one-take video about the Goryeo–Khitan War, with successive scenes transforming in response to executed code. It specifies the visual language, synthesized soundtrack, render pipeline, deliverable files, and quality checks
Usage instructions
Frequently asked questions
How should the historical event be represented?
Research 6–8 chronological highlights, use accurate dates and places, and represent real people as crowds or silhouettes rather than recreating their faces
What should happen during transitions?
Keep the video as one uninterrupted take: each world transforms into the next, with no cuts, crossfades, or whiteouts
What restrictions apply to the soundtrack and imagery?
Create all visuals and audio with code; do not use image, video, or audio assets, generative media tools, or TTS. Include no vocals or lyrics, and treat mass casualties with restraint
Comments
Tried this prompt? Share what you made, compare results, or ask a question