Programming
- Text
@tinyworlds / a-miniature-world-in-three-js-lighthouse-cove-in-night-w
A miniature world in three.js: lighthouse cove in night with a full moon
A lighthouse cove as a tabletop diorama, lit for night with a full moon, built from code you can orbit around.
Task
Build the lighthouse cove as a single three.js scene: the diorama on its base, its own small details and motion, and lighting that reads as night with a full moon. 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 lighthouse cove: a lighthouse on rocks above a cove, its beam turning.
- 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 lighthouse cove, with details that belong to it.Judge model
- The lighting reads as night with a full moon: 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