Dew at Dawn
A macro film of a dew-covered spider web at sunrise: thousands of beads strung on silk, each a ball lens showing the meadow, farmhouse and a passing cyclist upside down. A drop slides, merges, falls and splashes while captions explain the physics.
Made in Claude Code (Claude subscription) with claude-fable-5.2. The agent wrote code, looked at the preview and fixed it over several iterations. This is not a single-shot result: comparisons on this site show models in one attempt.
Starting prompt
Build "Dew at Dawn": a real-time 3D macro film of a dew-covered orb spider web in a meadow at sunrise, showing the physics of water and light. It should look like a nature-documentary macro shot, beautiful from the first frame, with real scale and nothing toy-like. Single self-contained HTML file; Three.js and its addons from a CDN via an import map are fine; build everything procedurally, no external models or image files. The subject (centimetres; the web hangs in the x-y plane, the camera looks through it towards the rising sun): - An orb web about 30 cm across, strung between five tall grass stems with seed heads: an irregular five-sided frame, 28 radial threads, a small hub spiral, a free zone, then a sticky capture spiral of about 30 turns, 4 mm apart, each chord sagging slightly under the weight of water. Silk is hair-thin and glows where it is backlit, with a faint rainbow sheen. - Thousands of dewdrops strung like beads along the silk: drops 0.6 to 1 mm across, evenly spaced about 1.5 mm apart, with a tiny satellite drop between each pair (the Plateau-Rayleigh pattern), larger drops at every junction, and one 2 mm hero drop. - Every drop is a ball lens. Render the drops as camera-facing sphere impostors: refract the view ray into the sphere and out again (n = 1.333) and look up the meadow behind, so each drop shows the sunrise upside down and mirrored; split red, green and blue slightly for rainbow fringes; add Fresnel reflection of the cool sky, a sun glint on the rim and the thread running through the drop. - A garden orb-weaver, about 1.5 cm long, resting head-down at the hub: a patterned brown abdomen with a pale cross, banded spiny legs that glow amber against the light, its front legs plucking a thread now and then, a few dewdrops on its back. - A broad grass blade arching under the web, with dew on it. - The meadow behind, painted every frame into one HDR panorama that serves both as the background and as the world seen inside the drops: a sky from peach to deep blue with thin cirrus, the low sun, two misty ridges with a tree line, a farmhouse with a hipped roof, a chimney with smoke and one lit window, a barn and two oaks, a country lane with a cyclist in a red jacket riding slowly past (bike lamp on, legs pedalling), a wooden post-and-rail fence, drifting ground mist, dew sparkling on the grass, and three layers of swaying grass stalks with backlit seed heads. The look: - A macro lens with a shallow depth of field: only the plane of focus is sharp. The meadow is never sharp on screen: blur the panorama with a disc kernel so the sun, the lit window, the bike lamp and the dew sparkles become soft bokeh circles, while farmhouse, fence and cyclist stay just recognisable. Drops and threads away from the focal plane swell into translucent bokeh discs with a brighter rim; a few of them glint in spectral colours. - Blurred grass blades close to the lens, floating motes that catch the sun, mist that thickens and clears. - The palette moves from rose and amber to gold as the sun climbs. ACES tone mapping, gentle bloom, a soft vignette, a trace of grain. Rich and luminous, never muddy, never washed out. Keep it smooth on a laptop: instance the drops and the threads. The film, a 48-second loop, one continuous camera take with five moments; a one-line caption explains each: 1. The web (0 s): the spider at the hub, strings of beads all around, the sun glowing behind. "Spider silk stretches instead of snapping, and its wet fibres bunch into tiny knots that pin every drop in place." 2. Beads on a string (10 s): the camera glides in along the threads. "A film of water on a thread is unstable: surface tension pinches it into evenly spaced beads (Plateau-Rayleigh)." 3. A thousand lenses (19 s): extreme close-up of the hero drop; inside it the farmhouse, the fence, the sun and the passing cyclist hang upside down. "Surface tension pulls each drop into a sphere, a ball lens that turns the sunrise upside down." 4. Letting go (29 s): on one steep thread the beads swell; the top one lets go, slides down, swallows bead after bead and wobbles at each merger, hangs from the last junction, stretches, falls in slow motion, and splashes on the grass blade: a crown of droplets, a rebounding bead, the blade dipping and springing back. "Beads swell and merge until weight beats the grip of the silk: the drop slides, falls and splashes." 5. First light (41 s): a pull back to the whole web as a bank of mist drifts through. "Dew forms where the night-cooled web chills the air beside it below its dew point." The web trembles in the breeze the whole time and the focus follows the subject. The sun climbs through the loop and returns to its start hidden inside the mist, so the loop is seamless, with no fade. Interface: only a small, elegant caption in the lower left corner (title, the name of the moment, its one-line explanation) and a hairline of loop progress. Drag to look around; the view eases back to the path a few seconds after the last input. Everything starts automatically and is visibly moving from the first frame, without any interaction: no loader, no title card, no fade-in. Drive the film by wall-clock time. The layout works on a phone. Engineering rules (the page must work on the first load, with no fixes): - Use Three.js r170 and only methods that exist on each of its classes. Give every custom ShaderMaterial `fog: false`, and declare every uniform, constant and varying its shaders use. - Declare each identifier once. Inside one calculation, never reuse a shared scratch vector for two values that are both still needed; use local vectors. - Guard every animated value against NaN. Compile the shaders before the clock starts, cap the pixel ratio, and allocate nothing per frame. - Answer with the complete file exactly once, in a single ```html code block: no drafts, partial snippets or notes. Keep planning brief and write the code. Aim for roughly 700 to 1,000 lines, compact and well structured.