Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Procedural Terrain Flythrough

One declarative sheet generates a whole 3D world — regions blend into a single height field, vertex-coloured terrain carries rocks, forests and landmarks, and a keyframed camera flies low through it.

Przykłady · 2

Uruchom online

Darmowe

Uruchom przykład Procedural Terrain Flythrough w sandboxie SandBase i zobacz wynik tutaj.

Jak to działa

  1. 01

    Write the sheet

    Write one sheet.json describing a world: size, seed, water level and atmosphere, semantic regions each with a landform, colour and scatter recipe, parametric landmarks such as an arch, tower, ruin, crystal, settlement, ring or beacon, and a keyframed camera path with captions. Two examples ship: a volcanic rift valley at dawn in English and flooded rice terraces at dusk in Chinese.

  2. 02

    Build and check stills

    Run npm install, then node scripts/build.mjs sheet.json --out build. Regions blend into each other through a gaussian weight field, so borders are terrain, not texture, and rocks, crystals and trees are scattered per region with slope rejection. node scripts/stills.mjs --build build --at 2,10,18 writes a contact sheet without a full render.

  3. 03

    Render the film

    node scripts/render.mjs --build build --out film.mp4 renders a verified H.264 film offline, with no network calls, external models or asset packs. The engine keeps the camera a minimum height above ground, so low passes never tunnel into a hill. The film is silent, and the two bundled examples run 42.8 seconds each.

FAQ

What does Procedural Terrain Flythrough make?

Procedural Terrain Flythrough makes a film of a camera flying low through a world generated in code from one sheet: blended semantic regions drive one height field, vertex-coloured terrain carries instanced rocks, crystals and trees, and parametric landmarks anchor the route. It renders through HyperFrames.

Does Procedural Terrain Flythrough use any models or assets?

No. Procedural Terrain Flythrough grows its world from a seed in local code, so it needs no API key and makes no model calls. Procedural Terrain Flythrough generates every landform, rock, tree and landmark from the sheet and a seed, with no network calls, external models or asset packs, so the same sheet always builds the same world.

Which landmarks can Procedural Terrain Flythrough place?

Procedural Terrain Flythrough has seven parametric landmark kinds: arch, tower, ruin, crystal, settlement, ring and beacon. Each sits on the sampled terrain height at its position. Regions choose a landform operator, a colour and a scatter recipe, and neighbouring regions blend smoothly.

Can the Procedural Terrain Flythrough camera clip into hills?

No. Procedural Terrain Flythrough follows a smooth time-keyed camera path and the engine keeps it a minimum height above the ground, so low passes never tunnel into a hill. Iterate on stills at a few times before rendering the full film.

Which sizes and languages does Procedural Terrain Flythrough support?

Procedural Terrain Flythrough renders even sizes from 320 to 3840 pixels, 1920×1080 by default, at 12 to 60 fps, 30 by default. The lang field picks en or zh-CN for the caption font. The film is silent; add a score in an editor if needed.