Inspirations

The Coast Road

A motorcycle sweeps along a cliff-top coast road under giant mossy trees, in a hand-painted animated-film style: true lean and counter-steer physics, dappled sun flecks and light shafts, in a seamless loop of chase, side, drone and low front 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 Coast Road": a real-time 3D scene that looks like a shot from a hand-painted animated film: a motorcycle ride along a cliff-top coastal road through a row of giant ancient trees on a bright summer day. 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), no external models or image files. One rider and no other people anywhere; no brand names or logos.

The scene (metres, y up):
- A narrow two-lane road, 7 m wide, with white edge lines and a dashed centre line, runs as an endless loop of about 1.2 km round the rim of a high island plateau 60 m above the sea. It sweeps in long right-hand curves joined by short left bends, rises and falls gently and has a few patched seams.
- On the left the land drops away: a grassy verge with wildflowers, then a cliff of layered rock to a bright sea with turquoise shallows and foam at its foot, and hazy headlands far away.
- On the right a mossy embankment and a row of enormous ancient trees: trunks 2-4 m thick, gnarled and mossy, buttress roots gripping the bank, broad canopies built from layered leaf clusters. Their long, heavy limbs reach right across the road, so it runs through a tunnel of leaves; a few giants on the seaward verge lean in to close the arch. More giants fill the island. Under them mixed undergrowth: ferns, shrubs, flower clumps and grass, darker in shade, warmer in sun.
- The motorcycle: a classic roadster (2.1 m long, 1.42 m wheelbase), red teardrop tank, round headlamp, telescopic fork, twin shocks, finned twin engine, chrome exhaust, six-spoke wheels. The rider in full gear, no skin anywhere: a full-face helmet with a dark visor, a dark leather jacket and sleeves with cream stripes, shoulder and elbow armour, black gauntlet gloves, riding trousers and boots; the face never visible.
- Gulls far below over the sea; painted flat-based cumulus in a deep blue sky.

The ride works for real:
- Speed 60-100 km/h from a profile that limits lateral acceleration: braking before tight curves, accelerating out.
- Lean follows tan(lean) = v^2 / (r g), with r the radius of the bike's own path; the rider hangs in a few degrees more, keeps his head more level and looks into the turn.
- Counter-steer: as each lean builds, the bars briefly turn the opposite way.
- The wheels turn at v / r_wheel, with a rotational motion blur that matches the rate.
- The suspension compresses with the load g / cos(lean) in curves, dives under braking and takes small bumps front wheel first, then rear.
- The jacket flutters, a faint heat shimmer trails the exhaust, leaves and petals swirl up in the wake.

The look, one coherent art direction applied to everything, the bike and rider included:
- Hand-painted animated-film style: a soft two-step toon light ramp broken up by painted brush grain, warm sunlit tones, cool blue-green shadows and a warm rim light. No toy-like primitives, no mix of realistic and cartoon.
- The trees are the heroes: every canopy is many layered clusters of camera-facing cards with painted leaf shapes, lit as soft round masses (normals from the cluster centres), with painted highlights on top, deep cool shade beneath and inside, and a glow where light comes through. Clusters sway and leaves flutter in the wind. Never lollipops or blobs.
- Bark with painted ridges and moss on upward faces; blue-grey asphalt with painted wear; pale layered cliffs.
- A high summer sun ahead and to the right. Render the trees once from the sun into a depth map blurred into a coverage map; sample it in every material for round, shimmering sun flecks on the road, bike and rider, and march it along each view ray for soft light shafts. The bike casts its own shadow.
- Sea: deep blue to turquoise by the cliffs, painted wave streaks, glitter, foam.
- Tone mapping and correct sRGB output, a light paper grain and vignette. Vivid but never muddy or washed out.

The film, one lap = one seamless loop of about 50 seconds, driven by wall-clock time, with hard cuts:
1. 0-13 s, chase: a low camera 4 m behind and slightly above the bike, rolling partly with it. At 8 s the bike leans into a long right-hand curve under the leaf tunnel: foliage across the top of the frame, sky and sea open at the left, sun flickering through (the thumbnail).
2. 13-21 s, a close side tracking shot with a long lens from behind the trunks: bike and rider fill a third of the frame as giants slide past in front.
3. 21-31 s, a drone over the sea following the bike along the cliff top.
4. 31-36 s, a low front shot from the seaward road edge: the bike comes down the avenue of giants and sweeps by.
5. 36 s to the end, chase again, flowing straight into the start.

Interface: a small, elegant corner caption with the title and a live readout of speed and lean angle. Everything moves from the first frame, with no loader, title card or fade-in. On a phone in portrait the cameras reframe so the bike stays the subject.

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.
- In <head>, the import map comes before any module script or modulepreload.
- Declare each identifier once; never reuse one scratch vector for two values still needed.
- Guard every animated value against NaN.
- Keep it smooth: instance foliage, grass and particles, render the sun maps once, warm up shaders with compileAsync, cap the pixel ratio and lower it under load, allocate nothing per frame, take time from performance.now.
- It runs in a sandboxed iframe without same-origin access: no localStorage, sessionStorage or cookies.
- 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: roughly 1,400 to 1,700 lines, compact and clear.