Inspirations

Full Sail at Golden Hour

A three-masted, full-rigged sailing ship runs before the wind on a long ocean swell at sunset. Its stacked canvas glows amber in the low sun, spray bursts from the bow, and a slow cinematic camera circles from the waterline up to the mastheads.

Generated automatically by Claude API (automat) with claude-opus-5.5: the automat wrote the page, looked at its screenshots and fixed it where needed. This is not a single-shot result: comparisons on this site show models in one attempt.

Starting prompt

Build "Full Sail at Golden Hour": a real-time 3D film of a three-masted, full-rigged sailing ship running across a long ocean swell at sunset, with every sail set and the low sun shining through its canvas. It should look like a maritime documentary shot from a chase boat and a drone. It must be beautiful from the very first frame: no loader, no title card, no fade from black. Single self-contained HTML file. Three.js and its addons come from a CDN via an import map. Build everything procedurally (canvas and data textures are fine), with no external models or image files.

The ship (metres, y up, bow towards −z; the ship sails in place while the ocean, wake and spray stream past):
- Hull: about 68 m on deck and 10.5 m beam, with a classic sheer that rises towards the bow and stern. It has a fine clipper bow with a short figurehead scroll, a rounded counter stern and about 1.5 m of freeboard amidships above the bulwark rail.
  - Paint: black topsides, a white band with painted black gunport squares, a dark red boot-top at the waterline, and varnished wooden rails that catch the light.
  - Build it as a lofted surface from station curves, not boxes.
- Deck: pale teak planking (canvas texture with seams), deckhouses, a small wheel aft, coiled lines and two boats on davits.
- Bowsprit and jibboom: they extend about 14 m forward.
- Masts: three tapering masts, about 48 m (fore), 50 m (main) and 42 m (mizzen) above the deck. Each mast is built in sections (lower mast, topmast, topgallant) with tops and crosstrees between them.
- Square sails: horizontal yards on the fore and main masts carry five square sails each (course, lower and upper topsail, topgallant, royal), and the yards get shorter as they go up. The mizzen carries square topsails and a gaff spanker.
  - Add three jibs on the stays forward and staysails between the masts.
- Sail shape and material: every sail is a subdivided plane bellied forward by the wind (a smooth paraboloid with about 8% camber).
  - The leech edges flutter slightly in the vertex shader.
  - The cloth is cream canvas with visible vertical seams, reef bands, a slightly darker edge tape and subtle weathering.
- Sail lighting (the key effect): transmitted light. When the sun is behind a sail, it glows warm amber-gold, the seams show as darker lines, and the shadow of the yards and rigging falls on the cloth. Seen from the sunny side, the canvas is bright ivory.
- Rigging: shrouds with ratlines, backstays, forestays and running rigging as thin dark lines (merged LineSegments or thin instanced cylinders). There should be enough of them that it reads as a real ship, but they must not alias into noise.
- Motion: the ship heels about 6° to leeward, pitches about 2° on the swell and heaves with it. The sampled wave height at the bow and stern drives the pitch, so the hull truly rides the water.
- People: about a dozen tiny crew figures for scale (simple capsules with a head, in dark clothes), never in close-up.
  - Most are on deck: one at the wheel, a few at the rail.
  - Two stand on the fore topsail yard, leaning on it.

The sea:
- A Gerstner swell (4 to 6 components, dominant wavelength about 90 m and height about 2 m) plus fine ripples in the normals. The surface is one large ocean grid.
- Water shading:
  - Fresnel sky reflection.
  - A blazing glitter path towards the sun.
  - Deep blue-green in the troughs, with turquoise subsurface light where the crests are thin and backlit.
- Bow wave: a curling white bow wave and foam along the waterline.
- Wake: a widening foam wake astern (a decaying foam texture advected with the scrolling ocean).
- Spray: thousands of stateless particles burst from the bow every time it drops into a swell. They are backlit gold against the sun and drift downwind.

Sky and light:
- The sun sits about 5° above the horizon, ahead and to starboard. The ship is therefore backlit in the hero shot: the sails glow and the hull is a dark silhouette with a rim of gold.
- The sky shifts from molten orange at the horizon to rose, mauve and a deep blue zenith.
- Long bands of altocumulus are lit pink and gold from below and drift slowly.
- A faint second sail sits hull-down on the far horizon for depth.
- Atmosphere: light sea haze that thickens towards the horizon and matches the sky gradient exactly. A few gulls glide around the masts.

The look:
- ACES tone mapping, sRGB output, and soft bloom on the sun, the glitter and the glowing sails.
- A gentle vignette and soft sun shadows (one directional light with a tight shadow frustum around the ship).
- Palette: amber, ivory, deep teal and violet. Rich, never muddy or washed out.

The hero shot (frame 0 and again at 8 s):
- Frame 0: a low camera about 2 m above the water, 35 m off the starboard bow, looking aft and upward. The bow is just dropping into a trough, spray hangs in the air, the stacked sails glow amber against the sun and the glitter path fills the lower frame.
- At 8 s: the camera has slid along the hull towards amidships. The towering wall of glowing canvas fills two thirds of the frame, the crew on the yard is visible as small silhouettes, and the white band and gunports catch the light.

The film: a 64-second seamless loop, one continuous camera move driven by wall-clock time. Every period divides 64 s.
1. **Bow and hull (0–14 s):** the waterline view along the starboard side as the bow plunges and throws spray.
2. **Rising (14–28 s):** the camera rises past the gunports and rail to deck height, then climbs up the shrouds alongside the mainmast. Sails pass close by, and the seams and rigging shadows are crisp.
3. **The masthead (28–42 s):** a drone view from about 60 m, slightly ahead. It shows the whole sail plan, the ship heeling, the long wake and the swell lines reaching to the golden horizon.
4. **Around the stern (42–56 s):** the camera arcs down behind the stern into full backlight. The hull becomes a silhouette under a cathedral of glowing sails, and the wake foams below.
5. **Return (56–64 s):** the camera sweeps forward low over the water and arrives exactly at frame 0.

Interface:
- A small, elegant caption at the bottom left in a refined serif (Google Font):
  - the title;
  - one line for the current stage, for example "Course, topsails, topgallants, royals — about 2,800 m² of canvas", "Running at 11 knots on a 90 m swell", "The sun through the cloth: why the sails glow";
  - a thin progress line.
- Drag or touch to look around; the camera eases back to its path about 3 s after the last input.
- A tiny hint fades out after a few seconds.
- The layout works in a ~1150×700 frame and on a phone (390×844), with a wider field of view in portrait.

Engineering rules (the page must work on the first load, with no fixes):
- Load Three.js r170 and its addons only via this exact import map: <script type="importmap">{"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"}}</script>. Google Fonts are allowed; nothing else may be fetched.
- Use only methods that exist in Three.js r170. Give every custom ShaderMaterial `fog: false`, and declare every uniform, constant and varying its shaders use.
- Declare each identifier once. Never reuse one scratch vector for two values needed at the same time; use local vectors.
- Guard every animated value against NaN, and clamp shader terms that could reach infinity (an Inf pixel turns the bloomed image black). Allocate nothing per frame.
- Performance (stay near 60 fps on a laptop):
  - one draw call for the ocean;
  - merged geometry for the hull and spars;
  - instancing for crew, ratlines and spray;
  - pixel ratio capped at 2;
  - shaders warmed up with `renderer.compileAsync` before the first frame.
- Sandboxed iframe (allow-scripts only): no localStorage, sessionStorage, cookies, alerts, window.top or navigation. No console errors.
- Start automatically, visibly moving from the very first frame, and loop forever.
- 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.