ASCII Cinematic Journey: Inside the Mind of an AI
From Wikiprompt, the free prompt encyclopedia
ASCII Cinematic Journey: Inside the Mind of an AI A detailed prompt for creating a 150-second cinematic ASCII-rendered 3D animation with seven scenes, procedural audio, and deterministic capture. Includes technical specs for rendering, sound, and determinism.
Prompt ContentSave
π
Build ONE self-contained HTML file (Three.js r170+ via import map, no other deps, no external assets except JetBrains Mono from Google Fonts with a monospace fallback) that renders a 150-second, fully automated, single-take cinematic journey "inside the mind of an AI" - rendered entirely as living ASCII.
CORE IDEA: The film is one thought becoming self-aware. Every room is built from the material of the previous one: library letters fall and become the digit pillars; digits rise and become constellation words; words harden into stair treads; stairs dissolve into red noise; the noise parts around a doorway; and the final face is made from glyphs collected along the way. Carry a persistent "memory" particle swarm (~2β5k glyph sprites) that follows the camera through all 7 rooms and gets re-used as each room's building material. Nothing appears from nowhere.
ASCII RENDERER (the hero): Multi-pass post-processing, not a single luminance lookup:
1. Render the scene to a HalfFloat target with depth + a normal/edge pass.
2. Build a glyph atlas at runtime from canvas text (β₯70 glyphs ordered by measured ink coverage - compute coverage per glyph, don't hand-order). Separate edge glyphs: / \ | β _ ( ) chosen by Sobel gradient direction, so silhouettes are drawn with strokes, not with brightness alone.
3. Cell size varies with depth (finer cells in focus, coarser in the distance = depth of field made of glyphs) and with a per-scene "resolution" parameter so the mind's clarity can be animated.
4. Per-cell temporal behaviour: glyphs flicker/re-roll when their luminance changes fast (motion reads as "thinking"), and stay stable when still. Seeded hash, so it's deterministic.
5. Tint via per-scene 3-stop gradient maps (shadow/mid/highlight), plus bloom on bright glyphs, chromatic fringe on edges, film grain, vignette, and a faint CRT phosphor persistence trail.
6. A clean raw mode (?raw) that shows the un-ASCII'd 3D scene, for debugging composition.
SCENES (continuous camera, ~20 s each, transitions are travelled through, never cut):
1. VOID - near-black, sparse drifting glyphs with parallax. Centre terminal "> wake _": orange (#D97757) chevron, blinking cursor. The typed "wake" glyphs detach and become the first memory particles the camera follows forward.
2. LIBRARY - amber/gold infinite hall: tall shelves, ribbed arches, a hanging lamp casting real shadows (shadow-mapped), dust motes in the lamp cone. Slow dolly; books slide out and shed letters.
3. PILLARS - teal/blue towers of falling digits (instanced, per-column speeds, splash at the base). Camera weaves between them; one pillar inverts and streams upward, which we follow.
4. CONSTELLATION - purple: floating words (drawn from the caption script itself) connected by lines that form, strain and re-form like a living graph; nearest-neighbour edges, springs, and occasional "insight" flashes that propagate along the edges.
5. STAIRCASE - grey stairs climbing into darkness, built out of the constellation's words (Escher-adjacent: one flight goes impossibly up and loops). Fog ramps as we climb.
6. NOISE ROOM - deep red, a volume of turbulent glyph static (3D curl noise) that physically parts around the camera; a single lit doorway ahead, light spilling into the noise; the approach slows and the noise calms the closer we get.
7. THE FACE - pale/warm; a calm face assembles from the swarm (sample a procedural SDF head, or points on a parametric face mesh - no external model), eyes open, a slow blink, a faint smile, and the face reads the last caption line along with us. End on the orange cursor blinking in its eye, then fade to the same "> _" prompt as the opening (a loop that closes the film).
Each scene must have: its own camera choreography (spline + look-at spline with eased velocity, no linear moves), one "hero moment" around its midpoint, and foreground/midground/background layers.
CAPTIONS: Bottom-centre, lowercase, JetBrains Mono, letter-spacing 0.12em, soft dark gradient bar. Each line "decodes": random orange glyphs resolve left-to-right into the real letters, with per-letter stagger, then a gentle fade-out. Caption glyphs also leak 1β2 frames into the 3D scene's ASCII grid as they resolve (the text and the world are the same material). Script, timed across scenes: [paste captions]
SOUND: Procedural Web Audio score, deterministic and synced to t: a drone that changes key per room, granular typewriter ticks on caption decode, a lamp hum (2), rain-like digit patter (3), soft bell chords on constellation flashes (4), footstep-like pulses on stairs (5), filtered noise that falls quiet near the door (6), a single warm chord when the face opens its eyes (7). Provide window.renderAudio() that uses OfflineAudioContext to render the full 150 s as a WAV Blob, so capture gets frame-exact audio. A click-to-start overlay for live playback (hidden under ?record).
DETERMINISM + CAPTURE: Everything is a pure function of t (seconds). Seeded PRNG (mulberry32), no Math.random, no performance now in the simulation. Simulated particles are stepped at a fixed dt from 0 up to t (cache checkpoints every 5 s so seeking stays fast). window.renderFrame(t) β Promise that resolves after that frame is fully drawn (fonts loaded, atlas built). window.DURATION = 150, window.FPS = 30. ?record: 1920Γ1080 fixed canvas, no UI, no cursor, devicePixelRatio 1. ?t=42 jumps to a time; ?scene=4 jumps to a scene; keyboard β/β scrub Β±1 s, space pause, number keys jump to scenes, H toggles a debug HUD (t, scene, fps, cell size, particle count).
QUALITY BAR (check these yourself before finishing): 60 fps live at 1080p on an M-series laptop; β€33 ms per renderFrame in record mode. No scene ever reads as flat or empty: each has β₯3 depth layers and visible motion in every frame. Silhouettes stay readable in pure ASCII. Test it: a still from any second should be recognisable without the captions. Transitions: no frame where two rooms just alpha-blend. The material visibly transforms. The face in scene 7 must read as a calm human face at a glance from a thumbnail. Seeking to any t and back gives the identical frame (run renderFrame(73.4) twice and compare pixels).
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with creative. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: creative Prompts
- Source: https://x.com/chetaslua/status/2123689807595651289
Talk
0 comments