Drone Light Show
2,000 real-scale drones over a mountain lake at blue hour: a breaching whale, an opening lotus, a hummingbird, a turning globe, a rising sun and a willow finale, planned with speed limits and collision-free paths, mirrored in the water.
Made in Claude Code (Claude subscription) with claude-opus-5.5. 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 "Drone Light Show": a real-time 3D film of a night drone show over a calm mountain lake. It must look like real footage shot from the shore, not a particle demo or a toy. 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, textures or images, and no brand names or logos. The place (metres, y up, water at y = 0): an alpine lake at the end of blue hour, turning to night. - About 400 m across the water, a flat meadow on the far shore is the launch site; behind it a dark conifer forest, then mountain ridges up to about 1,700 m on both sides of the valley, faint snow on the highest peaks, and a lower gap in the middle where the last twilight glows. - A few warm lights of a small village further along the shore; stars; a thin crescent moon low in the west, its lit side towards the set sun, with faint earthshine; light mist drifting over the water. - No people anywhere: no audience, no boats. The drones (2,000 quadcopters, instanced): - Real objects: a body about 40 cm across with four arms, motors, four spinning propellers (blurred discs) and an RGB LED dome underneath that tints the arms and props with its own colour. From far away each drone is a sharp point with bloom; up close the body and props become visible. - Real show planning. Each drone has a top speed of about 4 m/s horizontally and 3 m/s vertically, and limited acceleration. Points within a formation are at least 2 m apart. Drones not needed for an image wait dark nearby, clear of it. - The show flies just above the far shore, the front of each image over the water. - Each transition assigns drones to the next image's points by minimising the summed squared distance: a quick spatial start, then pairwise swaps until no swap helps, so no two paths cross. All drones fly straight lines on one shared smooth time profile. The move lasts as long as the longest path needs at those limits. Check the closest approach of every transition and show it in the caption. - Slight wind wobble and centimetre GPS jitter. LED colours fade, never jump. Fast motion such as wing beats is light animation (pre-placed drones blinking in sequence), as in real shows. The show, a seamless loop of about two minutes, starting with the first image already glowing: 1. A breaching humpback whale, about 90 m long and fully 3D: long white pectoral fins, white throat pleats, sea lines below and arcs of spray where the tail left the water. Its flukes sweep slowly. 2. A lotus opening petal by petal: three rings of cupped pink petals around a yellow-green seed pod, with two round leaves. 3. A hummingbird hovering at a trumpet flower: emerald back, ruby throat, its wings a blurred fan of blinking positions. 4. A slowly turning globe with recognisable continents, tilted 23.4°. The drones hold still while the continents move across them in colour. 5. A sun rising over a line of sea, its long rays pulsing outward. 6. Finale: a willow-firework cascade. Streams of gold light burst and fall while the drones sink slowly. 7. The finale's drones regroup straight into the whale for the next loop, within the same speed limits (no landing between loops). Camera, cut like a real film, with long lenses so each image fills about half the frame height and its reflection stays in shot: - A low telephoto shot from the near shore for the whale and the loop point, with the moon and the village lights in frame. - A boat-level shot for the lotus, then a slow crane up from the shore for the hummingbird. - One short pass at the globe. It is seen whole, continents readable, for most of the shot. Then the camera skims along its surface past a single drone, close enough to see its body, arms and props, and pulls back out to the whole globe. - Shots with the moon for the sun and the finale, low over the water. The look: - The lake mirrors everything; gentle ripples break each light into a short vertical streak. The show's colour lights the mist and the shore beneath it. Distant ridges fade into blue haze. - ACES tone mapping and sRGB output, with bloom tuned so the points stay sharp. Never muddy, never washed out. - The frame at 8 seconds must already be a finished hero shot. Interface: one small caption in a corner with the formation name, the number of drones lit and one real fact per moment (RTK GPS precision, minimum separation, flight time per battery, why shows fly pre-planned trajectories), plus a thin progress line. Everything moves on its own from the first frame, driven by wall-clock time, and loops forever. 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. Never block the main thread for long: compute the assignments in small slices across frames, 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 1,000 to 1,400 lines, compact and well structured.