Inspirations

Supercell over the Prairie

A storm chaser's view of a rotating supercell at sunset across a ripe wheat field: a raymarched striated mothership with a flat base, wall cloud, anvil and mammatus, a turquoise hail core and lightning, while gusts run through the wheat towards the storm.

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 "Supercell over the Prairie": a real-time 3D storm chaser's view of a rotating supercell over the Great Plains at sunset, seen across a ripe wheat field. It should look like storm photography brought to life and be beautiful from the first frame: no loader, no title card, no fade-in, 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 (data and canvas textures are fine), no external models or image files.

The scene (metres, y up; the camera stands 2 m above a wheat field beside a gravel road, looking north along −z; the sun is 1.4° high, 80° to the left, out of frame):
- The supercell, 24 km away, a little left of centre: a hard, flat rain-free base at 1.45 km, 10 km across. Above it the striated mesocyclone ("mothership"): smooth stacked plates with sunlit lips and shadowed grooves that spiral slightly upwards and slowly rotate, tapering into a lobed cauliflower tower that leans downwind. At the tropopause the tower spreads into a flat, lens-shaped anvil (9–13 km) with fibrous ice streaks, streaming 40 km to the right and backsheared a few km upwind. A field of mammatus pouches hangs under its near part.
- A lowered wall cloud under the front of the base, down to about 500 m, rotating faster, with a ragged edge and a short tail cloud towards the core.
- The forward flank on the right: a dark cloud mass over curtains of rain and a hail shaft that reach the horizon, turquoise in the reddened light, with falling streaks. A flanking line of growing towers on a shared base steps down to the left.
- Lightning: in-cloud flashes that light the cloud from inside, cloud-to-ground strikes under the base and in the core, and an anvil crawler. Each bolt is a jagged, branching 3D channel (midpoint displacement, thinning branches), white core and violet halo: leader, return stroke, restrikes, fading continuing current. The horizon hides bolt ends; flashes briefly light the field.
- The prairie: hard red winter wheat about 0.9 m tall, drilled in rows 19 cm apart with tractor tramlines, made of individual instanced stalks: thin stems, dry leaves near the camera, bearded ears (two rows of spikelets, long awns) that nod. Gusts of the inflow wind run through the field as waves towards the storm and every stalk sways. Side-lit by the low sun: gold on the sunward side of each ear, dark depths between them.
- A straight, crowned gravel road towards the storm with tyre ruts, sunlit stones and dry grass and foxtail in the ditches. Weathered wooden telegraph poles with two crossarms, glass insulators and sagging wires shrink into the distance; each casts a long, soft shadow across the road and the wheat.
- A steel farm windmill on a 10 m lattice tower beside a stock tank, its multi-bladed wheel turning; a white farmhouse with one warmly lit window, two grain bins and a shelterbelt of broadleaf trees and cedars 400 m away; irregular tree lines and groves on the horizon. No people and no vehicles.
- Sky: deep blue zenith, gold towards the sun, lilac opposite. Earth's curvature hides the ground beyond about 5 km, so the rain reaches down to the horizon.

The light: the storm is a half-resolution volumetric raymarch through tileable 3D noise, clipped by the scene depth, accumulated over frames (checkerboard updates are fine). Light is marched towards the sun with a multiple-scattering approximation: sunward faces glow orange, the anvil catches the last light, the base is dark slate with a warm bounce from the fields, distance adds haze. ACES filmic tone mapping, correct sRGB output, bloom on lightning and the lit window, a soft vignette. Dramatic but readable: never muddy, never washed out.

The film: a 60-second seamless loop driven by wall-clock time, one slow camera move with a little parallax:
1. The mothership (0–12 s): the wide hero view; a cloud-to-ground strike lands at about 8 s.
2. A flat base (12–24 s): a push in on the base and the wall cloud.
3. The anvil (24–36 s): a tilt up to the anvil, the mammatus and an anvil crawler.
4. The hail core (36–48 s): a pan right to the turquoise core behind the windmill, with strikes.
5. The wall cloud (48–60 s): a swing left past the flanking line and the poles into the sunset glow, back to the start.

Interface: a small, elegant caption in the lower-left corner with the title, the phase and one sentence of physics: wind shear makes the updraft rotate; the base is flat because rising air condenses at the same height everywhere; the anvil forms where the updraft meets the tropopause; the core looks turquoise because water absorbs red light; the wall cloud forms where moist, rain-cooled air is drawn into the updraft. Drag to look; the view returns to the path a few seconds after the last input. The layout works on a phone, with a taller field of view in portrait.

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. Never reuse a shared scratch vector for two values still needed; use local vectors.
- Guard animated values against NaN. Drive the film by performance.now, make every period divide the 60 s loop, at most three bright flashes per second, allocate nothing per frame.
- Keep it near 60 fps: instanced wheat, merged static geometry, pixel ratio capped at 1.5 (step down if frames run long), shaders compiled with `renderer.compileAsync` before the first frame.
- The page runs in a sandboxed iframe: no storage, alerts or navigation.
- 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,100 to 1,400 lines, compact and well structured.