提示词作者 DANJI (@DanjiTosaka) · X
Create a single-file, self-contained Three.js (ES module via importmap) AAA-style 3D interactive web experience titled "天狗 TENGU'S SANCTUARY" in a single `index.html` with zero external assets (all textures, geometry, shaders, and audio generated procedurally).
1. WORLD, TERRAIN & ARCHITECTURE
- Build a dramatic Zhangjiajie-style karst valley & canyon basin with layered granite/sandstone mountain spires, natural stone arches at the canyon entrance, terraced cliff plateaus, waterfalls with animated plunge-pool splash rings/mist, and a solid dark-teal lakebed floor beneath the water so no empty void is ever visible.
- Populate the valley with traditional East-Asian architecture merged via a custom GeometryBatcher: a central multi-tiered pagoda, a Stone Arch Bridge, a grand Torii gate, a Fortress Gate, Lantern Town stilt/machiya/inn houses, harbor piers, stone stairways, stone lanterns, and a rotating watermill.
- Add lush procedural vegetation: gnarled Sakura cherry blossom trees, layered niwaki pines (including a guardian pine at the summit sanctuary), autumn maples, bamboo groves, lotus/lily pads on the water, and ~6,500 instanced wind-animated grass tufts.
2. HERO CHARACTER: GREAT FOREST DAI-TENGU
- Perched solidly on a stepped granite sanctuary plinth with a mossy boulder spur and twin Shimenawa votive pillars at the top central peak (no floating/bouncing).
- Sculpted via SDF marching cubes + Lathe/TubeGeometry: pleated hakama trousers, white kyahan leg wraps, single-tooth Tengu-geta sandals, athletic torso framed by a crossed-lapel forest-green Yamabushi robe with crimson/gold brocade trim, braided Shimenawa rope sash with paper shide charms, Yuigesa pom-poms, and Juzu prayer beads.
- Sculpted SDF Dai-Tengu face with long aquiline nose, dark eye sockets with glowing amber slit hawk eyes, feathered silver-shaded eyebrows, 22 wind-swept silver hair locks, hexagonal black-and-gold Tokin hat, clawed hands holding a 9-lobe jade-and-gold Ha-Uchiwa fan and a gold-ringed Shakujo pilgrim staff, plus 4-tier raven-black feathered wings oriented with quaternions.
3. LIVING VILLAGE, KOI & INTRO BOAT RIDE
- Build visible, grounded stone/wooden pathways and supported stairs connecting the Stone Bridge, harbor piers, Lantern Town, Fortress Gate, and East Falls, plus a unified `getWalkableHeight(x, z)` surface sampler (matching the bridge's parabolic arch).
- Add ~30 living villagers (kimono/yukata, straw kasa hats, monks, lantern-bearers, merchants) walking along those exact paths with smooth walking bob and limb swing, plus stationary monks/guards.
- Add 18 animated Koi fish swimming beneath the clear jade water, flying white cranes, floating sky/water lanterns, and drifting sakura petals/golden forest pollen.
- Add a Chinese wooden sampan boat (`introBoat`) with bamboo canopy, bow lantern, boatman, and V-shaped water wake that glides from outside the canyon arch (`z = 168`) into the village (`z = 74`).
4. CINEMATOGRAPHY, FIRST-PERSON MODE & ANTI-CLIPPING
- Start on a 24-second 3-act cinematic camera sequence: wide high zoom-out framing both the entering sampan and the Dai-Tengu on the summit, gliding down to the Stone Bridge, then rising to a close-up of the Dai-Tengu. Detach immediately on any user mouse drag, wheel, preset click, or First-Person toggle.
- Enforce camera anti-void and anti-rock-clipping clamping every frame (never below water/terrain, never inside hollow cliff plateaus).
- Include a playable "First-Person Walk (WASD)" mode with PointerLock/drag mouse look, Space jump, Shift sprint, and `getWalkableHeight` ground following.
5. AAA RENDERING, MOODS, AUDIO & 60FPS VIDEO EXPORT
- Custom GLSL sky dome with azure daylight gradient and horizon cumulus clouds, planar water reflections, soft PCF shadows, half-res bilateral SSAO, world-space volumetric light shafts, UnrealBloomPass, and ACES Filmic split-tone post-processing.
- Three instant mood presets: "Jade Valley & Sun" (default crisp high-contrast daylight), "Twilight & Lanterns", and "Tengu Eclipse".
- Minimalist English HUD with collapsed-by-default "AAA ENGINE PARAMETERS" drawer, camera preset bar, and a "🎬 Record Video" button using `canvas.captureStream(60)` + `tenguAudio.getAudioStream()` via `MediaRecorder` (`vp9,opus`) to export a 60fps `.webm` video with audio.
- Procedural Web Audio engine (`tenguAudio`) unlocked on user interaction: Karplus-Strong physical-modeled Shamisen/Koto, noise-burst + sub-bass Epic Taiko war drums, breathy Shakuhachi flute, stereo pink-noise pine wind & waterfall ambience dynamically modulated by camera altitude and waterfall proximity.
作者公开分享的长篇 Three.js 提示词,用于其“天狗圣域”场景(Hydrogen 的 swarm 模式)。在 AI Studio 单次对话跑出来的效果可能和作者多智能体运行不同。