feat(viewer): the treasure chest, the rain cloud and the house rebuilt #49

Merged
dawid merged 2 commits from better-models into main 2026-11-18 08:35:04 +00:00
Owner

The three models the owner named, rebuilt with more detail, better looks, animation and interaction. The documentation's pictures now light the models as the viewer does.

Treasure chest (js/island-models.js)

  • A hollow chest of planks with iron corners, bands, rivets, a lock with a keyhole, and handles. Inside, a heap of 110 coins, gems and a goblet.
  • It stands on an island: sand, the sea lapping with foam, a swaying palm tree, shells and a starfish.
  • The lid knocks, swings open past its stop and settles; coins fly out onto the sand, lie there and sink in. Closing ends with a thump and a puff of sand.
  • While closed, it rattles now and then with light from the seam.
  • Tap: open or close. Shake (new): a rattle.

Rain cloud (js/weather-models.js)

  • Puffs light on top and grey beneath, breathing.
  • 90 drops that splash as rings, a puddle that grows and dries, grass, and flowers that close in the rain.
  • Then the cloud whitens and drifts aside, the sun comes out with turning rays, and the rainbow draws itself left to right.
  • Each strike is a new jagged, branched bolt. One comes by itself in each shower.
  • Tap: lightning. Shake (new): a downpour, starting a shower at once.

House (js/house-models.js)

  • A shingled gable roof with an attic window, framed windows with crosses, sills and shutters, a door with panels, knob, step, canopy and lamp, and a chimney with fuller smoke.
  • The garden: flower beds, stepping stones, a mailbox whose flag goes up, a picket fence, a tree with a swing, and a bird circling it.
  • After dark, the rooms light one after another (also on a tap) and fireflies come out. The tap now says "Lights on" or "Lights off".

Pictures: render-models.mjs put the viewer's lights in a z-up world with the camera on the other side, so the sun came from behind and every face toward the camera was dark. The viewer's scene is the camera's own space. Lights now come from where the viewer has them, and all 50 pictures are re-rendered; they're brighter and true to the viewer.

Hints, the help dialog, the user guide's gesture table, docs/dev/interaction.md, the model catalog and the tests are updated. All 72 tests pass in Playwright's image, and ESLint is clean.

The three models the owner named, rebuilt with more detail, better looks, animation and interaction. The documentation's pictures now light the models as the viewer does. **Treasure chest** (`js/island-models.js`) - A hollow chest of planks with iron corners, bands, rivets, a lock with a keyhole, and handles. Inside, a heap of 110 coins, gems and a goblet. - It stands on an island: sand, the sea lapping with foam, a swaying palm tree, shells and a starfish. - The lid knocks, swings open past its stop and settles; coins fly out onto the sand, lie there and sink in. Closing ends with a thump and a puff of sand. - While closed, it rattles now and then with light from the seam. - Tap: open or close. **Shake (new):** a rattle. **Rain cloud** (`js/weather-models.js`) - Puffs light on top and grey beneath, breathing. - 90 drops that splash as rings, a puddle that grows and dries, grass, and flowers that close in the rain. - Then the cloud whitens and drifts aside, the sun comes out with turning rays, and the rainbow draws itself left to right. - Each strike is a new jagged, branched bolt. One comes by itself in each shower. - Tap: lightning. **Shake (new):** a downpour, starting a shower at once. **House** (`js/house-models.js`) - A shingled gable roof with an attic window, framed windows with crosses, sills and shutters, a door with panels, knob, step, canopy and lamp, and a chimney with fuller smoke. - The garden: flower beds, stepping stones, a mailbox whose flag goes up, a picket fence, a tree with a swing, and a bird circling it. - After dark, the rooms light one after another (also on a tap) and fireflies come out. The tap now says "Lights on" or "Lights off". **Pictures:** `render-models.mjs` put the viewer's lights in a z-up world with the camera on the other side, so the sun came from behind and every face toward the camera was dark. The viewer's scene is the camera's own space. Lights now come from where the viewer has them, and all 50 pictures are re-rendered; they're brighter and true to the viewer. Hints, the help dialog, the user guide's gesture table, `docs/dev/interaction.md`, the model catalog and the tests are updated. All 72 tests pass in Playwright's image, and ESLint is clean.
Treasure chest (island-models.js): a hollow chest of planks with iron corners, bands, rivets,
lock and handles, a heap of coins with gems and a goblet, on an island with a palm tree,
shells, a starfish and the sea lapping; the lid knocks, swings open past its stop, coins fly
out onto the sand; closed, it rattles now and then; a shake rattles it.

Rain cloud (weather-models.js): puffs light on top and grey beneath, breathing; drops that
splash as rings, a puddle that grows and dries, grass and flowers that close in the rain;
then the cloud drifts aside, the sun comes out and the rainbow draws itself; each strike a
new branched bolt; a shake brings a downpour.

House (house-models.js): a shingled gable roof with an attic window, framed windows with
shutters and sills, a door with canopy and lamp, chimney smoke, flower beds, stepping stones,
a mailbox, a picket fence, a tree with a swing and a bird; after dark the rooms light one
after another and fireflies come out.
docs(viewer): the models' pictures lit as the viewer lights them
All checks were successful
CI / checks (pull_request) Successful in 20s
CI / relay (pull_request) Successful in 49s
CI / image (pull_request) Successful in 56s
CI / e2e (pull_request) Successful in 3m50s
CI / watch (pull_request) Successful in 2m49s
CI / android (pull_request) Successful in 2m4s
164b484e68
render-models.mjs added the viewer's lights to a z-up world with the camera on the far side,
so the sun came from behind and every face turned to the camera was dark: the pictures showed
the models darker than the viewer does, whose scene is the camera's own space. The sky now
points to the image's top and the sun shines from above and behind the camera, as there; all
50 pictures rendered again.
dawid merged commit b35d12d960 into main 2026-11-18 08:35:04 +00:00
dawid deleted branch better-models 2026-11-18 08:35:05 +00:00
Sign in to join this conversation.
No description provided.