World ideas by kind, and the example world to start from| Kind | Ideas | Start from |
|---|
| Open country | a valley walk, a mountain ascent, a coastline, a vineyard through a day, a desert road, a forest floor, terraces | valley |
|---|
| Water | a river from source to sea, a harbour, a lake house, under the sea | harbour, reef |
|---|
| Gardens and sacred places | a temple approach, a cloister, a walled garden through the seasons, a glasshouse, a ruin | temple |
|---|
| Streets and towns | a market street, a hill town, a city at night, a station, a festival ground | street |
|---|
| Interiors | a coffee shop, a workshop, a gallery, a library, a home room by room, a restaurant, a shop, a theatre | cafe |
|---|
| Places of work | a factory line, a laboratory, a construction site, a control room, a warehouse, a data centre | factory |
|---|
| Small worlds | a model on a table, a desk, a map table, inside a watch or an engine, a terrarium | desk |
|---|
| No ground at all | orbit, islands in the air, a cloud of things, a network made visible | orbit, network |
|---|
| Journeys through time | a day, a year, a building going up, before and after, the life of a product | any: the light and the build carry it |
|---|
What a world is made of
A world is one plain JavaScript file. Everything fixed is built in code and merged into a single draw call; anything repeated is instanced; what drifts in the air moves on the GPU. The builder makes boxes, cylinders, cones, balls, turned profiles, extruded outlines, tubes along curves, slabs, swept roofs and walls with openings, and takes any three.js geometry. A world can add terrain, water that moves in the light, real lamps, and air: dust, snow, rain, leaves, fireflies, embers or bubbles.
const b = createBuilder()
b.box(6, 3.2, 8, { at: [0, 0, -40], color: "#e9e2d0" }) // a hall
b.roof(7.5, 9.5, 2.4, { at: [0, 3.2, -40], color: "#3d4a52" }) // a roof that sweeps up at the eaves
b.lathe([[0.4, 0], [0.25, 0.3], [0.3, 1.5], [0, 1.8]], { at: [3, 0, -28] }) // a lantern, turned
b.tube([[-4, 1, -20], [0, 1.2, -24], [4, 1, -28]], 0.05, { color: "#b03a2e" }) // a rail along a curve
b.box(1.2, 1.4, 0.1, { at: [0, 1, -36], color: "#ffd58a", glow: 1 }) // a window lit from within
b.at(2.5) // from here on: built as the ride arrives
b.box(2, 2, 2, { at: [9, 0, -52], color: "#8a6f4e" })
export const BUILT = b.geometry() // all of it, one draw call
export const SCATTER = [{ geometry: pine, spots: pines }] // four hundred pines, one draw call
export const AIR = [{ kind: "leaves" }] // leaves coming down, moved on the GPU