Inspirations

Moonlit Pagoda

A Japanese pagoda on a small island under a full moon, filmed as a looping 3D night scene: cherry blossoms, glowing lanterns and reflections on still water.

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 "Moonlit Pagoda": a cinematic, real-time 3D night scene of a Japanese pagoda on a small island among cherry blossoms, filmed as a short looping film. 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.

The scene (metres, y up; the opening view looks along −z):
- Sky: a deep navy night gradient with about 1,500 twinkling stars, and a large full moon high in the upper left of the opening view (direction about (−0.34, 0.40, −0.85)), softly glowing, with faint grey maria on its face.
- Water: still, dark water out to the horizon that reflects the lights, with low blue mist drifting over it.
- The island: a rocky island with a stone terrace about 3 m above the water, tufts of grass, and four stone lanterns (tōrō) glowing warm.
- The stairway: a long, straight flight of stone steps (about 34 steps over 28 m) rising from the water to the terrace along the z axis. Railings run along both sides, with a post at every second step topped by a gold ball. The left railing is charcoal and the right one lacquer red.
- The torii: at the top of the stairs, a vermilion torii about 7.5 m tall and 10 m wide.
  - Two slightly tapered pillars on black bases.
  - A black upswept top lintel (kasagi) over a red one, a straight tie beam (nuki) and a central plaque.
  - A sagging straw rope (shimenawa) with white zigzag paper streamers.
- The pagoda: centred behind the torii, a four-storey vermilion pagoda about 29 m tall with its spire.
  - Each storey is narrower than the one below, with red columns, glowing white shoji lattice walls and gold round crests (mon). The upper storeys have balconies with red railings.
  - Each roof is a dark slate-blue tiled hip roof with concave slopes and corners that sweep upward. It has a thick black fascia, exposed red rafters underneath, a golden curled ornament at each corner and a golden bell hanging below it.
  - Red paper lanterns hang under every eave, glowing warm and swaying gently. Strings of tiny warm fairy lights run along every eave line.
  - On top stands a golden spire (sōrin) with nine rings and a jewel finial, with golden chains running down to the roof corners.
- Cherry trees: four or five stylised sakura trees around the pagoda. They have dark, twisting trunks and canopies made of hundreds of puffy low-poly blossom clusters in several soft pinks that glow faintly in the night. Petals drift down continuously.
- Fireflies: a couple of hundred warm orange specks floating slowly in the air.

The look:
- Bluish moonlight with soft shadows, and warm orange light around the pagoda lanterns and the stone lanterns.
- Light fog for depth and ACES tone mapping at a modest exposure.
- Bloom only on the lanterns, fairy lights, windows and moon, plus a soft vignette.
- The night stays dark and moody, in deep blues, and the warm lights glow against it. It must never look washed out or overexposed.

The film: five shots, about 30 seconds in total, then it loops. Cut between shots like a film.
1. The approach (about 7.5 s): fade in from black. The camera starts low at the foot of the stairs and slowly climbs them towards the torii, with the pagoda framed in the gate and the moon in the upper left.
2. Through the blossoms (about 5.5 s): from low on the left, looking past a flowering cherry tree at the pagoda.
3. The moon behind the spire (about 6 s): a slow arc from the right side, so that the moon passes behind the top of the pagoda.
4. The tiers (about 5.5 s): from just inside the torii, at the height of the first roof, looking up at the storeys with their lanterns and lights.
5. The spire (about 5.5 s): tilt up to the spire and its rings against the stars, then fade to black and loop.

Interface:
- The title and the current shot name in a small, elegant caption.
- A play/pause button.
- Drag to orbit and scroll to zoom. The camera returns to the film a few seconds after the last input.
- Everything starts automatically and is visibly moving from the first frame, without any interaction. The layout works on a phone.

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.
- 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,100 lines, compact and well structured.