Three.js scene · photo-scanned · free
Lantern River Brass oil lamps drifting on a night river
Scanned brass lamps with live flames float on black water among marigold petals. Click to release a new lamp.
What it looks like
A slow, black river at night, seen from low on the left bank. Close to the camera a scanned brass diya lantern stands on a folded banana-leaf boat heaped with marigold heads, and it turns slowly in a quiet eddy. Beyond it a loose procession of nearly forty lamps drifts away downstream on the current, mostly brass diya lanterns with the odd wooden lantern holding a wax candle. The procession continues as tiny flickering points far into the haze, under a deep indigo sky full of stars. A low tree line on the far bank stands sharp against the brighter horizon, with thin mist lying on the water in front of it. Every lamp carries a live shader flame: a teardrop with a blue root, white core and orange licks that flickers, stretches and leans with the wind and the boat's own motion. The flames light their own dark, glossy banana-leaf boats with a steep falloff, from warm near the lamp to near-black at the leaf tips, and add a specular sheen on the veins. The three nearest use real point lights, the next sixteen a cheap analytic light loop inside every lit material, and the rest only their emissive flame, a halo and their reflection. The water is near-black. Each of the 24 nearest flames lays a long, vertical glitter path on it toward the camera: a slope-distribution envelope on the half vector, broken into bright ripple fragments wherever the rippled normal lines up. Under that sit a half-resolution planar reflection of the lamps and tree line, three flowing layers of a tileable normal map, a small warm pool round each lamp, and fresnel. Marigold petals drift on the current and thin smoke curls up from the nearest wicks. A half-float HDR pipeline does the rest: soft-knee bloom, depth-of-field gather focused on the hero lamp, an ACES-style curve, deep blacks, grain and vignette. Click or tap the water and a new lamp drops from your hand. It lands with a crown of splash droplets and three expanding ripple rings that catch the flame light, its flame catches with a flare, and it joins the drift. Lamps are capped at 48, and the oldest one furthest downstream gutters out, lets out a last puff of smoke and sinks. About every 10 s a breath of wind crosses the river as a travelling front. It bends every flame in turn, roughens the water and lifts a handful of petals into the air. Sound is all synthesised and starts on the first gesture: brown-noise water lapping with filtered laps and small bubble plinks, a soft wick crackle that gets denser near the flames, a low root-and-fifth drone with a slowly moving filter, and a whoosh for each breath. The scene opens with a 10 s pull-back from a macro of the hero flame, seen through a glass pane of the brass diya with its own exposure so the flame core and brass stay readable, out to the full procession.
Interaction
- Opening: a 10 s eased pull-back from 12 cm in front of the hero flame (fov 30) to the resting view. Focus stays on the hero flame. Double-click or double-tap replays it. With prefers-reduced-motion the intro is skipped and the current, lamp turning and wind are slowed.
- Cursor parallax moves the camera by a few centimetres on a critically damped spring, and a slow ±0.1 rad orbit about the hero lamp keeps the view alive.
- Click or tap the water: after a short wait (to allow for a double-click) a lamp drops from 38 cm, splashes in with a crown of droplets and three expanding ripple rings, bobs on a damped spring, and its flame catches 0.35 s later with a flare. Beyond 48 lamps the lamp furthest downstream is extinguished and sinks.
- Every ~10 s a breath of wind crosses the river from left to right, bending each flame as it arrives, roughening the water and lifting up to 14 petals.
- Ambient spawning keeps about 38 lamps on the river. Lamps follow a parabolic current profile along the meander, push apart when they get close, and yaw slowly. Lamps that pass the end of the simulated stretch fade out, and the point-sprite procession carries on beyond it.
- Everything pauses while the tab is hidden.
?capture=1&w=&h=&rs=&intro=disables real-time stepping and exposeswindow.__step(dt),window.__dropAt(x,z)andwindow.__breath()for deterministic video renders.
Assets and licences
ASSET_DIR + 'brass_diya_lantern.glb': brass diya lantern with glass panes (the chain is removed, and the built-in flame mesh is hidden in code), 1k webp textures. CC0, Poly Haven: Brass Diya Lantern.ASSET_DIR + 'wooden_lantern_01.glb': wooden lantern (handle removed), 512 px webp textures. CC0, Poly Haven: Wooden Lantern 01.ASSET_DIR + 'rock_moss_set_01.glb': four scanned mossy rocks, cloned 26 times and half-sunk along both banks; their diffuse and normal maps are also tiled over the displaced bank strips. CC0, Poly Haven: Rock Moss Set 01.ASSET_DIR + 'sky.webp': 2048×1024 tone-compressed equirect of a starry night, used only as the PMREM environment for the brass and glass (the visible sky is procedural). CC0, Poly Haven: Dikhololo Night (HDRI).ASSET_DIR + 'water_normal.webp': 512² tileable spectral-noise water normal map. Generated for copytheprompt.design.ASSET_DIR + 'leaf_albedo.webp',ASSET_DIR + 'leaf_normal.webp': banana-leaf albedo (midrib, swept parallel veins, browned edges) and its normal map. Generated for copytheprompt.design.ASSET_DIR + 'petal_atlas.webp': 2×2 atlas of ruffled marigold petals with alpha. Generated for copytheprompt.design.ASSET_DIR + 'poster.webp': 1920×1080 still for the no-WebGL fallback. Generated for copytheprompt.design.
Make it yours
- Palette: change
flameMid/flameEdge/lampLightto a cool white-blue (e.g.#cfe4ff,#6aa8ff,#9cc8ff) for an electric-lantern river, and setblackTintto#140a1a. - Light direction: move the moon fill to
azimuth: 40, elevation: 8, power: 0.25and setskyHorizonto#3a3f6efor a moonrise glow behind the tree line. - Hero object: replace the hero diya with the wooden lantern at
scale 0.9, and move it tohero: { x: 0.1, z: 1.3 }so it sits nearer the middle of the frame. - Signature interaction: make a click release three lamps in a small fan (±0.4 m), each landing 0.15 s after the last.
- Idle event: turn the breath into a slow swell:
breathEvery: 14,breathDuration: 6,breathStrength: 0.9, with the gust front crossing at 1.5 m/s. - Sound: retune the drone to 49/73.4/98 Hz and double
crackle, so the lamps sound closer and the bed sounds deeper. - Camera framing: lower the camera to
pos: [-0.7, 0.2, 2.4]withfov: 30andaperture: 0.016for a waterline view with heavy bokeh on the procession. - Water: set
glintSlope: 0.12andglintSharp: 900for longer, more broken flame streaks on a choppier river.
"Build exactly as specified, but with these changes: …"
How to use it
- Copy the prompt and paste it into Claude, Claude Code or ChatGPT, or download the zip and serve the folder over http.
- The prompt holds every setting in one
CONFIGblock plus the complete program, so the AI rebuilds this exact scene. - Add your edits from “Make it yours” and drop the canvas behind your hero section.
Guides: with Claude Code · with Claude · with ChatGPT