Inspirations

The Dragon's Keep

An in-engine trailer for an original fantasy game: a huge dragon circles a sea-cliff fortress at stormy sunset, its wing membranes glowing in the backlight, lands on the keep, roars and breathes fire into the rain, then launches again.

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 Dragon's Keep": a real-time in-engine trailer for an original fantasy game, in which a huge dragon circles a sea-cliff fortress at stormy sunset, lands on its highest tower and breathes fire into the rain. It must look like high-budget game footage: grounded epic realism in one consistent look, every element equally finished, nothing cartoonish or toy-like, nothing borrowed from an existing game or film, no people anywhere. Single self-contained HTML file; Three.js and its addons from a CDN via an import map are fine; build everything procedurally (generated textures are fine), no external models or image files.

The world (metres, y up; the open sea and the setting sun lie towards −z):
- A fortress of dark wet stone on an island crag whose cliffs drop about 45 m into the sea: crenellated curtain walls about 13 m high, round flanking towers with steep slate cone roofs, a gatehouse, a great hall with a slate roof, and the keep, a round tower about 14 m across rising 34 m above the plateau on the seaward edge, with machicolations under an open crenellated top. Masonry in the shader: ashlar courses, per-block tone, recessed joints, wet specular streaks, moss and grime low down. Arrow slits glow with flickering torchlight. Long pennants with an abstract pattern (no heraldry) whip from the tower roofs.
- The crag: layered dark rock with ledges, a glistening algae band at the waterline, sea stacks offshore and a distant coast fading into the rain.
- A storm sea of Gerstner waves with wind-streaked whitecaps and surf bursting white against the cliff foot in sets.
- The sky: a low storm deck lit orange and red from below by a sun in a clear slot on the horizon, faster ragged scud beneath it, distant rain curtains and crepuscular rays through the gaps. Sheets of rain slant through the whole scene, catching the light.

The dragon (original design, about 30 m long with a 38 m wingspan; wyvern anatomy, the wings are its forelimbs):
- A horned head with a heavy jaw, brow ridges, teeth and swept-back horns; a thick neck, broad chest and shoulders and stocky hind legs with curved talons, so it reads heavy, not serpentine; overlapping scale rows (small on the neck), bevelled armour plates along the spine, warmer plates on the belly, a row of dorsal blades and a long tail ending in a spade. A charcoal-bronze hide, wet sheen, strong rim light; scales must read at medium distance without moiré.
- Membranous wings on a real skeleton: upper arm, forearm, a clawed wrist and four long finger bones, the membrane stretched between them and scalloped between the finger tips. Dark leather, thicker by the bones and body, glowing red-orange only where thin and backlit, with thin branching veins, fine fibres, a scar and a small tear. Folded, the fingers lie tight along the forearm.
- Believable flight: slow heavy downstrokes in which the body rises and the rain is pushed down, the wings partly folding on the upstroke, long glides with the wing tips flexing, and banked turns where the bank follows the turn. Use a skinned skeleton, and two-bone IK so the feet and wrists land exactly on the stone.

The trailer, a seamless 56-second loop:
1. 0–9 s, establishing: a sweeping aerial move around the fortress; the dragon circles it and banks across the frame. The frame at 8 s is the hero shot: the dragon in flight, large and sharp, against the fortress and the burning sky.
2. 9–17 s: a tracking shot along the wing, rain streaking past, the fortress and the sea below.
3. 17–25 s: a low hero angle on the keep as the dragon flares, wings spread against the sunset, and lands: talons grip the parapet, stones crack, dust and grit fall, the wings fold.
4. 25–39 s: a slow push-in. It raises its head and roars, then breathes a jet of fire into the rain, the climax: a white-hot core at the jaws, ragged licking flames, heat shimmer, smoke only where it cools. It lights the jaw and neck from below, the walls and the clouds; steam bursts from the stone, embers swirl away.
5. 39–56 s: it launches with heavy wingbeats and circles away as the camera pulls back to the wide shot, matching the first frame exactly.
Lightning flashes several times, lighting the clouds from inside to show their structure. A small, elegant game-style title, THE DRAGON'S KEEP, fades in over the wide shot near the end and never appears in the first 10 seconds. No other UI.

The look: ACES tone mapping with correct sRGB output; a warm key from the low sun and a cool storm fill; rim light on the dragon; wet specular stone and scales; volumetric god rays through the cloud gaps; bloom on the fire, the sun and the slits; a subtle anamorphic flare, film grain and vignette. Dramatic but readable, never muddy or washed out. A widescreen composition that still fills the frame on a phone: no black bars, reframe instead. The first frame is already a finished shot: no loader, fade-in or title card. It moves on its own from the first frame and loops forever.

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. 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.
- Drive everything from performance.now() as a pure function of loop time, never a capped frame delta. Warm up the shaders with compileAsync before the first frame, cap the pixel ratio, instance the particles, merge static geometry and allocate nothing per frame.
- It runs in a sandboxed iframe: no storage, no dialogs, no 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,400 to 2,000 lines, compact and well structured.