Sky Garden
A voxel island with four seasons and four times of day
About this scene
A floating voxel island over a sea of clouds: a five-tier pagoda with glowing windows, a torii gate, stone lanterns along a path, a koi pond and cherry, maple and pine trees. Switch the season and the trees, grass, snow and falling petals change; switch the time and the sky, sun, fog and lantern light follow. Every block is generated by code.
How it is built
- 01
Build the island as data
Terrain, pagoda, gate, pond and trees are written into a voxel map first. Only blocks with at least one open face become instances, which keeps tens of thousands of blocks to a single draw call.
- 02
Seasons are a palette
Each voxel remembers what it is (grass, blossom, roof…). Changing the season only rewrites instance colours, adds snow on exposed roofs and swaps the falling particles from petals to leaves, snow or fireflies.
- 03
Controls the page can use
The scene announces its controls with postMessage. In the ThreeJS.net workspace they appear as buttons under the preview; opened on its own, the scene draws the same bar itself.
Questions
- How many blocks are there?
- Around twenty thousand are stored; only the visible ones are drawn, as one instanced mesh with shadows. It runs smoothly on integrated laptop GPUs.
- Can my generated scenes get controls like these?
- Yes. Scenes generated on ThreeJS.net can post a THREEJS_CONTROLS message, and the preview turns it into buttons and sliders. Ask the generator for the parameters you want to switch.
ThreeJS.net

