The Glacier Calves
A tidewater glacier under the midnight sun, live in 3D: a 60 m tower of ice leans, topples and crashes into the fjord, throwing up a 40 m splash and a ring wave that rocks the brash ice, past a rolled blue berg, kittiwakes and a ship at anchor.
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 Glacier Calves": a real-time 3D film of a tidewater glacier in an Arctic fjord under the low midnight sun, in which a tower of ice cracks, leans and collapses into the sea. It should look like a nature documentary filmed from a small boat and be beautiful from the first frame: no loader, no title card, no fade-in. Single self-contained HTML file; Three.js and its addons from a CDN via an import map are fine; build everything procedurally (data textures are fine), no external models or images. No people anywhere. The scene (metres, y up; the glacier flows towards +z and ends in a cliff near z = 0; the sun stands about 8° up over the fjord's outlet, low from the right of the face): - The ice cliff: a front 1.1 km wide and 60 m high between rock walls, bowing seawards. Real geometry: one grid that climbs the face and runs back over the seracs. Vertical columns about 10 m wide stand forward or back by metres, with fractures, leaning overhangs, a melt notch at the waterline and a jagged skyline; behind, a field of seracs and crevasses parallel to the front. - Ice shading: weathered faces white, sunlit facets cream-gold, shade blue-grey; the deeper a crack or recess (concavity baked per vertex), the deeper its blue: dense ice absorbs red light. Fresh fracture faces glassy, vivid blue. Grey moraine bands, dirty ice at the waterline, a medial-moraine stripe, wet meltwater streaks running down, three meltwater spouts. - The tower: 22 × 16 × 62 m, a little proud of the face, built as six blocks (three tiers split down the middle) with rough fracture surfaces. It leans from the first frame like an inverted pendulum while ice dust trickles from the crack, then the base slumps, the blocks part, roll and fall up to 50 m out, shedding tumbling chunks. A wall of fresh blue ice is left; four blocks resurface as bergs. - The splash: about 45,000 stateless particles: jets of water and ice thrown 40 m up, a rolling white surge, gold on the sun side and blue-grey in shade, then a drifting veil of mist and a field of crushed ice. - The ring wave: a dispersive wave train (crests at about 8 m/s run through a group moving at half that), decaying with distance; it lifts and tilts every floe and bends the reflections. - Floating ice: about 1,700 small angular brash chunks (convex, cut by random planes), growlers and bergy bits that bob on the waves; brash as texture further out. A rolled iceberg 38 m long: smooth, scalloped, blue former underside, a strip of old white crust, rocking slowly, its submerged bulk glowing turquoise through the water. - The fjord: dark green water, milky jade where meltwater wells up at the front; a planar reflection of everything bent by the waves and drifting cat's-paw ripples; sun glitter; foam along the ice. - The land: rock walls up to 1 km with buttresses, couloirs holding snow streaks, cliff bands, soft strata and stains; thin waterfalls; tundra on the lower slopes (moss, grass, autumn-yellow dwarf willow, rust patches, lichen, boulders) and gravel beaches; a low tundra plain along the outlet; distant ranges in haze; low cloud on the peaks (soft sprites that fade where they meet the terrain). - Life and scale: kittiwakes (white, grey back, black wingtips, flapping and gliding) circling over the meltwater plume; a red-and-white 90 m expedition ship at anchor 850 m away, swinging slowly. The look: ACES tone mapping, sRGB output; mountain shadows from a sun-aligned shadow-height map baked from the terrain, plus a shadow map for the ice; aerial perspective; subtle bloom on the sun and spray; a soft vignette. Glacier blue, cream-gold light, dark green water and slate rock. Dramatic but readable, never muddy or washed out. The film: a 60-second loop, one continuous camera move, driven by wall-clock time. 1. The tower (0–13 s): the camera floats 7 m above the water about 250 m off the cliff, which recedes towards the sunlit wall. The tower leans, topples at 3–5 s, and the splash stands highest at about 8 s. 2. The wave (13–24 s): the camera rises to 20 m and looks down as the ring wave spreads through the ice. 3. The berg (24–38 s): it glides past the rolled iceberg, about 100 m away. 4. The fjord mouth (38–50 s): it turns into the low sun: glitter, the ship, cloud on the peaks. Out of sight, the next tower stands ready. 5. Back (50–60 s): it swings back to exactly where the film began. The loop is seamless. Interface: a small, elegant caption in the lower left corner with the title, one line of physics for the moment (why glacier ice is blue, a flow of about 3 m a day, why a falling tower makes waves and how fast they run, why 90 % of a berg floats below water, why kittiwakes feed at the front), a line of numbers and a thin progress line. Drag to look around; the view eases back after a few seconds. Everything moves from the first frame. Works on a phone, with a wider 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 its classes. Give every custom ShaderMaterial `fog: false` and declare every uniform, constant and varying it uses. - Declare each identifier once. Never reuse a shared scratch vector for two values still needed. - Guard animated values against NaN. Drive motion from `performance.now()`, make every period divide 60 s, allocate nothing per frame. - Keep it smooth on a laptop: instancing, terrain split into sectors for culling, lighter copies of the ice and terrain for the reflection, shadow map refreshed only while ice moves, pixel ratio capped and stepped down if frames run long, `renderer.compileAsync` before the first frame. - It 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.