Build one self-contained HTML file with Three.js: Lanternwood, a living, interactive voxel diorama of a surreal late-autumn fairy-tale valley. Procedural geometry only: no models, no textures, no external assets.
TECH
- World voxels are 0.35 m. Characters are sculpted much finer, at 1/8 of that (about 4 cm), so stripes, whiskers, beards, feathers and frayed capes read up close. Background figures are 1/4 voxel.
- Greedy-meshed voxel grids with instancing. Lambert for solids, glowing voxels for windows, stars and mushrooms, and pixel water.
- Soft shadows, neutral tone mapping, subtle bloom, a gradient sky with fog. Film grade: violet shadows, peach highlights, light vignette and grain.
- OrbitControls with damping, slow auto-rotate, no pan.
THE STAGE
A square cut-out block of land on a dark wooden plinth, like a museum diorama, 128 m on each side. The cut sides show the earth: dark loam, ochre clay, grey-violet rock bands, roots. A river leaves through the front edge and pours down the plinth as a dithered pixel waterfall into a little foam pool.
LAYOUT (front = +z)
- Back corners: two sheer, weathered cliffs with fissures, ledges and mossy tops. Between them, a pale crescent moon in the blue day sky.
- Back centre: a gothic castle with many needle spires on a forested conical hill dotted with red and amber trees. A village of red-roofed houses with smoking chimneys sits on the slope below.
- Middle: giant redwoods (55 to 65 m, fibrous red bark, foliage only at the top). The front pair frames the castle like a gate.
- Right: a huge pale trunk with orange parasol mushrooms stacked up it, the biggest near the top, and small shelf mushrooms spiralling around it.
- Front right: an ancient gnarled tree over a giant crimson fly agaric covered in glowing gold specks, in a meadow of peach, pink and orange flowers.
- Front left: a grassy slope with grey rocks. A river winds down the left side of the valley.
- A stone path of mossy stepping stones climbs from the front edge to the village.
- Autumn accents: amber and red trees and drifting leaves. No snow.
CHARACTERS (each one is its own model, checked from 3 angles before it goes into the world)
- Two tigers climbing the mushroom trunk, each hugging a glowing star. Golden tan bodies with bold black wedge stripes, thick at the spine and tapering to points. Half-closed eyes with lashes and long ringed tails. One climbs head-down with an 8-point star; the other climbs up clutching a spiky 12-point star.
- A scruffy orange cat crouched by the path, with grainy speckled fur and a grumpy half-lidded stare, whittling a stick with a small knife. Wood chips fall.
- A gnome with a tall crooked red hat, a big fluffy white beard, a blue tunic and a leather backpack with a rolled blanket, standing on a red-and-white fly agaric.
- A white goose with long layered wings, with an original green frog with round golden eyes riding on its back. Together they fly a smooth loop around the whole world.
- A small black fold-eared cat knight standing upright on a rock, with big round eyes, a ragged red cape blowing in the wind and a long steel sword raised high.
- Small background figures: two witches in wide pointed hats walking the path, three robed monks under the mushroom trunk, and a cloaked rider on a white horse looking at the castle.
LIFE
Always running: glowing spores and fireflies as square pixels, drifting leaves, the flowing river and waterfall, puffy cube clouds, chimney smoke, grass and capes swaying, birds over the cliffs. The tigers breathe and swish their tails and their stars pulse. The cat whittles, the gnome looks around, the witches walk.
STARFALL (press E, 16 s, repeatable)
1. A goose honk. The frog and goose leave their loop, dive through the redwood gate and sweep past the mushroom trunk.
2. At 5.2 s both tigers throw their stars. Precomputed arcs, v0 = (target − p0 − ½gT²)/T with T = 2.6 s, land them on the castle's two tallest spires.
3. At 7.8 s: a glow burst and square sparks with a chime, and the stars stay on the spires as lanterns.
4. A ripple of light spreads out from the castle: windows, village, path lanterns, the fly agaric's glowing specks, the fireflies. The knight cat raises his sword and the blade glints.
5. New stars fade back into the tigers' paws.
DAY → NIGHT
Golden late afternoon, then a peach and violet sunset, then a moonlit navy night with stars. Time only moves forward. At night the world stays readable: cool moonlight, warm windows, glowing mushrooms.
CONTROLS
Drag to orbit, scroll to zoom. N day/night (3 s blend), E Starfall, F follow the goose, Space pause rotation, M sound, a volume slider and a music toggle. Click a character and it reacts: the tiger's star flares, the cat flicks chips, the gnome tips his hat, the knight raises his sword, the goose honks and banks. Click the fly agaric for a puff of spores. A small "Lanternwood" title, an event chip, and a hint that fades after the first touch.
SOUND (Web Audio, all synthesized, original melodies)
Autumn folk-fantasy in D dorian. By day: harp, recorder, cello and frame drum, with wind and the river. At night: celesta and a wordless choir. A goose honk on the event, and a chime and sparkle when the stars land.
Look: a painted storybook rebuilt in fine voxels. The redwoods frame the castle, the cliffs frame the moon, the glowing fly agaric warms the front, and the six characters are the most detailed things in the scene. One visual language everywhere: square particles, cube clouds, pixel water. Use accents, not floods of effects.