The Great Wave, Breaking
Hokusai's Great Wave off Kanagawa comes alive in 3D. A Prussian-blue wave swells, curls its clawed foam over three boats and frames distant Mount Fuji, matching the woodblock print for one moment before it breaks and the cycle begins again.
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 "The Great Wave, Breaking": Katsushika Hokusai's woodblock print "Under the Wave off Kanagawa" (Kanagawa-oki nami ura, c. 1831, from the series Thirty-six Views of Mount Fuji), brought to life as a live 3D scene. It is rendered like a moving ukiyo-e print, not a photoreal ocean. A great wave rises, curls its clawed crest over three fishing boats and frames tiny, snow-capped Mount Fuji. For one held moment the camera lines up exactly with the print's composition. Then the wave collapses into spray, and the sea gathers the next one. Single self-contained HTML file. Three.js and its addons from a CDN via an import map are fine. Build everything procedurally (canvas textures are fine), with no external models or image files.
The scene (metres, y up, sea level at y = 0):
- The great wave: a CPU-updated parametric surface of about 180 × 70 vertices. A crest line runs roughly 60 m across the view, and a cross-section profile is morphed by a phase value p from 0 to 1:
- a rounded swell;
- a steep face;
- an overhanging lip that curls forward and down, about 10–12 m high at its peak and tallest on the left of the composition, with the crest leaning into the frame as in the print;
- a collapse.
The profile varies along the crest so the wave peels, and the far end stays lower. Recompute normals every frame and guard them against NaN.
- The claws: Hokusai's famous foam fingers along the lip. Make them instanced, tapered, curved white tendrils that branch fractally (2–3 levels of smaller fingers) and point down and forward like grasping talons. They grow out of the lip as it curls, and wither into spray as it breaks.
- Spray: a few thousand round white point sprites thrown from the claws. Some drift down slowly and read as the snow-like flecks the print scatters above the sea.
- Secondary wave: a smaller wave in the foreground echoing the shape of Fuji, with its own small claws, as in the print.
- The sea: a large plane with stylised swell. Its surface carries the print's fine parallel contour lines, rendered in the shader as thin dark bands that follow the wave slope, plus white foam lace patches.
- Three oshiokuri-bune: slender fast boats, about 12–14 m long, with low hulls and a raised prow. Each boat carries eight oarsmen bent low over their oars, represented as simple hunched rounded forms in indigo, plus a few crouching passengers. The boats ride the swell, pitching and heaving with the surface height and slope sampled at their bow and stern. One sits deep in the trough beneath the lip.
- Mount Fuji: 3,776 m high and far in the distance, appearing small and low on the horizon. It has a white snow cap with jagged lower edges over a grey-blue base, slightly faded by distance.
- Sky: a pale cream-to-grey gradient with the darker bokashi band across the top, as in the print, and a few long, softly outlined clouds.
The look (a woodblock print in motion):
- Limited palette: Prussian blue (the then-new Berlin blue pigment), deep indigo, a pale blue, off-white foam, buff-yellow boats and a cream sky.
- Flat cel shading: two or three quantised tones per material from a custom ShaderMaterial, with no specular gloss.
- Black or dark-indigo ink outlines: use an inverted-hull outline on the wave, boats and Fuji, plus a screen-space edge darkening on the foam.
- Washi paper over everything: a fine fibre texture as a multiplied overlay with gentle grain and a faint uneven ink registration.
- No bloom, no fog haze and no realistic reflections. Keep it crisp, graphic and readable. Tone mapping off or neutral so the colours stay true.
- During the held moment, a thin printed border fades in, together with the title cartouche at the top left: a pale rectangle holding vertical text using a Google Font such as "Shippori Mincho", reading 神奈川沖浪裏 with the artist name 北斎. The border and cartouche then fade out.
Timeline (one loop of about 34 s, repeating forever):
1. 0–8 s: the swell builds. The boats climb and drop, the camera drifts low over the water beside the boats.
2. 8–15 s: the face steepens, the first claws sprout and spray begins. The camera swings around to look up at the face.
3. 15–21 s: the lip curls overhead. The camera glides into the exact print composition, a long-lens view from slightly above sea level with Fuji framed inside the curl. Time slows almost to a stop for about 2.5 s, and the border and cartouche appear.
4. 21–28 s: the lip throws forward and collapses, the claws dissolve into a burst of spray, white water rolls over the trough and the boats pitch hard but stay afloat.
5. 28–34 s: the foam spreads and fades, the sea flattens, and a new swell rises behind. The loop is seamless.
The scene is visibly moving from the very first frame, with no interaction needed.
Interface:
- A small, elegant caption at the bottom left in a serif font. It shows the title, the line "Hokusai · c. 1831 · woodblock print, 25.7 × 37.9 cm", and one short fact that changes with the phase, crossfading. Facts include:
- Prussian blue was a newly imported pigment;
- the wave is often estimated at about 10 m;
- the boats are oshiokuri-bune carrying fish to market;
- the small foreground wave mirrors Fuji;
- the print is read right to left, as Japanese text is.
- A tiny "Print view" toggle that locks the camera to the print composition.
- A play/pause control.
- Drag to orbit and scroll or pinch to zoom. The camera never goes below the water, and it eases back to its path about 4 s after the last input.
- A hint that fades after a few seconds.
- It works in a ~1150×700 frame and on a phone (390×844, touch). In portrait, widen the field of view so that the wave and Fuji both stay in frame.
Engineering rules (the page must work on the first load, with no fixes):
- Use only this 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 is fetched.
- 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, especially the wave profile, normals and the boat attitudes.
- It runs in a sandboxed iframe without same-origin: no localStorage, sessionStorage, cookies, alert, window.top or fetches. Cap the pixel ratio at 2.
- Use instancing for the claws, spray and oarsmen to stay near 60 fps on a laptop. No console errors.
- 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 800 to 1,200 lines, compact and well structured. No black, untextured or placeholder objects anywhere.