Inspirations

The Floatplane Lake

A red-and-cream radial-engine floatplane over a glacial alpine lake on a summer morning: it passes a 330 m waterfall with a rainbow in its spray, banks into a turn, touches down in a burst of spray and wake, then lifts off and climbs out past a granite wall, in seven aerial shots.

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 "The Floatplane Lake": a real-time 3D aerial film of a red-and-cream radial-engine bush floatplane that cruises past a waterfall, lands on a glacial alpine lake and takes off again on a clear summer morning. It must look like real aerial footage, not a toy. No people anywhere (the cabin glass is dark), no real brand names or logos. Single self-contained HTML file; Three.js r170 and its addons from a CDN via an import map are fine; build everything procedurally (canvas and data textures are fine), no external models or image files.

The place (metres, y up, lake surface at y = 0; the low sun is in the east-south-east, about 21° up):
- A glacial lake about 4.5 km by 650 m, running east-west with irregular bays and steep shores dropping to 75 m: pale turquoise shallows, emerald-teal depths, mirror-calm with soft ripples, drifting wind-ruffled patches and true reflections.
- On the north shore a sheer warm-granite wall about 1.6 km long and 350-450 m high, 100-170 m behind a strip of talus and forest: big buttresses and deep gullies notching a jagged rim, horizontal sheeting joints and ledges with dark undercuts, dark water streaks, iron stains, fine grain up close. At both ends it dies out into forested slopes.
- From a notch in the rim a thin waterfall leaves an overhanging lip 427 m up and falls free for about 330 m: a white jet widening into 30 m of streaky, translucent curtains moving at the real accelerating speed, billowing mist at the base, and a rainbow placed physically 42° around the antisolar point (with a faint secondary bow), only in sunlit spray.
- Dense dark conifer forest on shores and slopes: tens of thousands of instanced spruce, fir, pine and larch (a few dead snags), 6-36 m tall with varied silhouettes, never cones in rows; banded by altitude and slope, thinning through meadow and scree to rock above a treeline near 1,600 m; jagged snowy peaks of 2-3 km and a glaciated massif closing the valley head, fading into haze. The valley opens east towards the sun.
- Low morning mist banks drift along the shaded shores; the middle of the lake stays clear.

The floatplane (about 9.2 m long, 14.6 m span), a 1950s-style high-wing bush plane: a lofted fuselage with a big round cowling showing a nine-cylinder radial engine, a three-blade propeller drawn as a motion-blurred disc (blades smeared by rpm × shutter, cream tips forming a faint ring), a high wing on the cabin with lift struts, working flaps and ailerons, a tall fin and a tailplane with elevator, a dark tinted windscreen and cabin windows, and two 7.6 m aluminium floats with V-bottoms and steps on N-struts with spreader bars and water rudders. Livery: red with a cream belly and a cream cheatline, wings red above and cream below, an invented registration such as "HB-KLV" on the aft fuselage.

The flight, one continuous story that the shots cut through:
- Cruise west at 165 m and 52 m/s past the waterfall; a descending left turn of about 180 m radius over the west end, banked (about 45°) by tan(bank) = v² / (r g); a 5° approach east, a flare, floats touching at about 29 m/s; deceleration to a 4.5 m/s taxi; full power: the plane ploughs nose-high, climbs onto the step and lifts off at 31 m/s with water streaming off the floats, then climbs out east past the end of the wall.
- On the water it floats with a real draft and gentle rocking; pitch follows speed (ploughing, on the step, rotation).
- A V-shaped Kelvin wake and two foam tracks spread and fade behind the floats, computed from the plane's past positions; deterministic spray: droplets thrown ballistically with drag, motion-stretched, falling back into the lake, plus a little short-lived mist.

The film, one seamless loop of 55 seconds driven by the clock, hard cuts between eased camera moves:
1. 0-8 s, over the lake: a high chase drone behind and left of the plane, looking down the lake at the wall and the waterfall.
2. 8-15.5 s, waterfall pass: a long lens; the plane crosses the base of the fall with the rainbow in the spray, then the camera cranes into a high follow, the plane an eighth of the frame wide over lake, forest and wall.
3. 15.5-22.5 s, into the turn: a close formation chase, the camera rolling partly with the bank.
4. 22.5-31 s, touchdown: a low camera on the water ahead and to the side, zooming out as the plane flares, touches down in sheets of spray and passes.
5. 31-40 s, takeoff run: a tracking shot at float height from the front quarter as the plane powers up, the wall behind it.
6. 40-47 s, lift-off: a low chase from just above into the warm sun glitter, the plane trailing a fine backlit mist veil.
7. 47-55 s, valley reveal: a drone cranes up beside the climbing plane, keeping it readable, opening onto the valley.

Look: low warm sun with cool blue sky fill and a golden haze towards the sun. Bake one sun shadow map over the valley (terrain, wall, trees) for long morning shadows; give the plane its own small shadow map and an environment map of sky, lake and forest. Planar reflections with Fresnel, glacial turquoise seen from above, sun glitter, aerial perspective, ACES tone mapping, sRGB output, gentle bloom.

Interface: the canvas fills the frame and the first frame is already the film (no loader or fade). Only a small elegant caption with the title and the current shot name. Drag to orbit and scroll to zoom, easing back to the film camera 3 s after the last input. ?t=SECONDS starts at that loop time and &freeze=1 holds that frame. On a phone in portrait the shots reframe with a taller field of view.

Engineering rules (the page must work on the first load, with no fixes):
- Use Three.js r170 and only methods that exist on each class; the import map comes first. Every custom ShaderMaterial has fog: false and declares every uniform and varying it uses.
- Time comes from the rAF timestamp, never from accumulated deltas; guard animated values against NaN.
- Keep 60 fps on a laptop: instanced trees in chunks with three levels of detail, terrain tiles coarser with distance, the shadow map rendered once, a fixed pixel budget chosen at start-up, nothing allocated per frame. Compile every shader and render every shot once while loading, so cuts and the loop wrap never stall.
- It runs in a sandboxed opaque-origin iframe: no storage, cookies, same-origin fetches or navigation.
- Answer with the complete file once, in a single ```html code block: no drafts, partial snippets or notes.

Keep planning brief: roughly 1,500 to 1,900 lines of code.