Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

River Era: Valley Years

Scrub an authored river settlement timeline from camp and farms to town, workshops and speculative towers. Actual seeded geometry changes reversibly; boats and vehicles follow the same river and bank equations. This is an illustrative sequence rather than predictive history.

範例

River Era interactive settlement timeline
在新分頁開啟

River Era interactive settlement timeline

此範例會在沙箱框架中執行,無法存取此頁面。

線上執行

在 SandBase sandbox 中執行,並在 Lab 中查看結果。

在 Lab 中開啟 ↗

您可獲得什麼

Bring a valley, six illustrative eras and optional palette. The Skill returns a downloadable Skill, interactive demos and example videos.

運作方式

  1. 01

    Describe the valley and its eras

    River Era starts from prompt slots for the valley, its eras and palette. The sample command node scripts/fill-prompt.mjs --slots assets/prompts/examples/valley-years.json --out prompt.md renders the prompt for Valley Years, an authored six-era diorama that runs from an early camp and first farms through a river town, steam workshops and a modern center to a speculative harbor.

  2. 02

    Edit validated valley data offline

    new-project generates the project, and npm ci installs pinned public build dependencies under Node 22.14.0. Edit src/valley.json for bilingual names of up to 40 characters, an integer seed from 1 to 999999, a duration of 15 to 30 seconds, three river layouts and three palettes. Each layout's bend runs from 1 to 2.8 and phase from -1 to 1. Invalid JSON returns a valley_ validation code.

  3. 03

    Scrub time and verify the geometry

    npm run build:single writes dist-single/index.html, which runs offline with no external assets or storage, and npm run shoot verifies it. Check that dragging the timeline backward removes buildings exactly, that boats follow the river and vehicles the bank roads, and that Space, R, V and the arrow keys respond. Deliver the editable source, the HTML and the actual verification report.

常見問題

What does River Era show?

River Era shows a 3D river settlement that grows through authored eras as you scrub a timeline. Building groups, heights, roofs, towers and routes come from the timeline position, while boats travel the winding river and vehicles drive the bank roads. You can orbit, zoom, pick an era, change the valley or palette and toggle synthesized tones.

Is River Era a history or economy simulation?

No. River Era is an illustrative visual sequence, not a predictive history or economy model. The six eras and building schedule are authored by hand, and the roads, bridges, farms and towers are visual geometry. It calculates no population, construction cost, historical accuracy or economic outcome, and traffic does no collision planning.

Does River Era cost anything to run?

River Era has no key and makes no runtime model call. Your agent edits the generated project offline, and npm ci only installs pinned public build dependencies, so the scene and its rebuilds carry no SandBase charge. The built page needs no network and keeps all state in memory.

Can River Era run time backward?

Yes. River Era derives the scene from timeline progress rather than accumulating construction actions, so dragging backward removes buildings and routes exactly as they appeared. Reset clears the timeline, and changing the valley keeps the chosen palette. With reduced motion the scene starts still and decorative travel stops, while explicit play stays available.

Where can I embed River Era?

River Era's single HTML file works offline or inside a sandbox that allows only scripts, carrying its dependency notices. Compact touch controls sit outside the stage and were verified under browser touch emulation, which does not prove performance on physical devices.

What can I change in River Era without new geometry?

River Era lets you change bilingual names, the seed, the duration and three bounded river layouts and palettes in valley.json. Heights, plot count and map dimensions are authored in city.mjs and world.ts, so changing them means updating geometry and tests together. The Skill asks you to validate an alternate bounded configuration too.