I'll build a breathtaking voxel-art Japan experience with Three.js — a floating island with Mount Fuji, a pagoda, a floating torii gate, sakura trees with drifting petals, animated water, and a full dawn→day→dusk→night lighting engine. Let me set things up.
Three.js is installed. Now I'll create the HTML shell with elegant typography (Noto Serif JP + Cormorant Garamond).
Now the global stylesheet with Japanese-inspired design tokens, film grain, and reveal animations.
Now the core of the experience — the Three.js voxel world engine with procedural island generation, Mount Fuji, pagoda, torii gate, sakura trees, animated water, falling petals, and a four-mood lighting system with smooth transitions and bloom.
Quick type fix for the cloud data structure.
Type fixed. Now the React shell — cinematic intro veil, Japanese-inspired HUD, mood selector, and overlays.
Now let me build to verify everything compiles.
The build passes. Let me polish the sphere voxelizer (snap canopies to the grid for cleaner silhouettes) and remove a stray line.
Final build to confirm everything is clean.
Voxel Japan — 日本のボクセル is complete. A living, breathing diorama of Japan rendered entirely in procedural voxels.
The Scene (10,000+ voxels, 1 instanced draw call)
- Mount Fuji — a stepped cone climbing 15 blocks with a noise-scattered snowline, rising behind the island
- Five-tier pagoda — cream walls, vermilion corner posts, upturned slate eaves, glowing paper windows, and a golden finial on a stone platform with steps
- Floating torii gate — standing in the sea like Itsukushima, reached by half-submerged stepping stones
- Sakura groves — six pink-blossomed voxel trees (including a grand sakura) with cute asymmetrical canopies
- Stone lanterns & paths — a winding stone path lined with glowing tōrō lanterns
- Satellite islets — three smaller islands with their own trees and lanterns for parallax depth
- 430 falling sakura petals — drifting, spinning, and swaying on sine-wave currents
The Light Engine
Four moods seamlessly cross-fade every light, fog, water, and sky parameter:
- 夜明け Dawn — lavender-pink mist with a warm rising sun
- 真昼 Midday — crisp blue skies and sparkling turquoise water
- 黄昏 Dusk — burning orange horizon, lanterns flickering to life
- 月夜 Moonlit — deep indigo night, 650 stars, a bloomed moon, and lanterns glowing through UnrealBloom
Craft Details
- Custom GLSL water (animated waves, shoreline shallows, sparkles) and gradient sky dome
- Drifting voxel clouds, film grain, vignette, and ACES tone mapping
- Cinematic intro veil with 日本 typography in Noto Serif JP, vertical poem text (桜吹雪・富士の嶺), and a vermilion hanko seal
- Butter-smooth orbit controls with auto-rotation that politely pauses while you explore — keys 1–4 shift the light
Files built: index.html, src/index.css, src/three/world.ts, src/App.tsx