Programming
- Text
@tinyworlds / a-miniature-world-in-three-js-night-market-in-night
A miniature world in three.js: night market in night
A night market as a tabletop diorama, lit for night, built from code you can orbit around.
Task
Build the night market as a single three.js scene: the diorama on its base, its own small details and motion, and lighting that reads as night. 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 night market: stalls, lanterns and awnings in a narrow street.
- 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 night market, with details that belong to it.Judge model
- The lighting reads as night: 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