All Opus 5.5 videos › 3D scenes

Interactive Japanese shrine diorama in WebGL with a torii, pagoda, water, and procedural terrain

by Vib3Coded (@vib3coded) · Oct 13, 2026

Prompt

The author shared part of the prompt.

Build a single-file interactive WebGL diorama (one index.html, no build step) with Three.js r160 loaded via an import map from https://t.co/lj8MfmK18g, plus OrbitControls and BufferGeometryUtils (mergeVertices, mergeGeometries) from three/examples/jsm. Everything is procedural — no external models or textures.

CONCEPT
"Torii at High Tide": a miniature Japanese shrine island inspired by Itsukushima, inside a 10×10 block of clear water with rounded edges (vertical corner radius ~0.6, top edge radius ~0.26), on a thin sand-colored base slab, on a warm washi-paper background with a soft floor shadow that fades out with distance (so long dusk shadows never streak across the page).

TERRAIN (heightfield ~400×400, clipped to the rounded block, with a boundary "skirt" so the cross-section shows through the water)
- Work in a local frame facing the camera (u = across, v = toward the viewer).
- A forested dome-shaped hill at the back (~2.4 high), a low sandy shrine terrace at its foot, then a wide, gently sloping tidal flat in front (from ~-0.06 down to ~-0.46), dropping to ~-1.0 at the front and sides.
- Two rocky granite headlands framing the bay, each with 1–2 leaning bonsai-style pines (segmented trunks + flattened canopy pads).
- A flattened clearing on the hill flank for the pagoda.
- Terrain shader: granite rock on steep slopes (speckled, darker wet band just above the waterline, algae-dark below it), sand with a wet line, darker wet intertidal sand below the high-tide mark, moss/grass on the hill and in patches on the terrace, snow on upward-facing surfaces in winter, procedural animated caustics under water. CPU-baked horizon AO per vertex plus canopy-cover darkening.

ARCHITECTURE (merge everything into one vertex-colored mesh + one emissive "glow" mesh; write a small Builder that adds boxes/cylinders/spheres/custom geometry with a color and a transform, then mergeGeometries)
- Ryōbu-style torii standing in the bay on the axis of the shrine (~1.9 tall): vermilion tapered main pillars with black base sheaths, four supporting sode-bashira legs with black caps and two connecting beams each, nuki tie beam, central strut with a dark plaque, shimaki, and a curved kasagi (extruded shape with upturned ends) with a black top layer. Pillars must end inside the shimaki, not poke through the kasagi.
- Shrine on stilts over the tidal flat: plank deck (with plank-gap strips and dark edge beams) on a grid of wooden stilts reaching the seabed; a main hall and a smaller front hall (white w
Prompt by @vib3coded, from their reply
Category
3D scenes
Stack
Three.js, WebGL
Made with
Three.js, OrbitControls, BufferGeometryUtils
From the author
One prompt each, no follow-up changes.
On X
208 likes · 9K views · 116 saves

More 3D scenes

3D scenesPart of prompt1:00

Interactive feudal Japan riverboat scene with weather and day-night cycle

@MengTo♥ 6.6K
Three.jsPhysicsAI image
3D scenesPrompt0:14

Walkable three.js 3D house built from a floor plan

@everestchris6♥ 4.3K
Three.js
3D scenesPrompt0:54

Ultra-detailed ancient Greek world built entirely with code

@LexnLin♥ 3.4K
Three.js
3D scenesPrompt0:18

Interactive 3D watermelon jelly slice with soft-body wobble

@vib3coded♥ 2.1K
3D scenesPart of prompt0:18

3D gym builder with hundreds of modeled equipment pieces

@wesbos♥ 2K
Three.js
3D scenesPrompt0:17

Interactive 3D gummy orange slice with drag deformation

@vib3coded♥ 1.8K
WebGPU
3D scenesPrompt0:18

Interactive voxel ship in a bottle with ocean, dolphins, lighthouse, and physics

@vib3coded♥ 1.6K
PhysicsWebGL
3D scenesPrompt0:18

Interactive 3D plush octopus toy in browser

@vib3coded♥ 1.4K
PhysicsWebGPU