Programming
- Text
@tinyworlds / a-miniature-world-in-three-js-coral-reef-lagoon-in-midda
A miniature world in three.js: coral reef lagoon in midday sun
A coral reef lagoon as a tabletop diorama, lit for midday sun, built from code you can orbit around.
Task
Build the coral reef lagoon as a single three.js scene: the diorama on its base, its own small details and motion, and lighting that reads as midday sun. The viewer can orbit with a drag and pause the motion.
Task brief
- Setting
A series of eight miniature worlds, each a small diorama on a plinth, lit for one time of day. This one is a coral reef lagoon: a shallow lagoon with coral, fish and light through the water.
- Inputs
- Text
- Deliverable
index.html that opens offline, with its scene script beside it; no external requests.
How it’s checked
- The scene reads at a glance as a coral reef lagoon, with details that belong to it.Judge model
- The lighting reads as midday sun: colour, shadow direction and contrast agree.Judge model
- Something in the scene moves on its own, and Pause stops all of it.Judge model
- Dragging orbits the diorama smoothly without clipping into the base or showing its underside.Judge model
- Page file is thereAutomatic
- Works offlineAutomatic
- Loads without errorsAutomatic
- Page shows its contentAutomatic