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

Tabletop Diorama: A Walkable Miniature World on a Desk

Walk, run and jump a small character across a miniature world laid out on a tabletop, in one offline HTML file. Two finished worlds come with the Skill: a stitched patchwork-quilt countryside on a cutting mat, and a 2150 neon city on a terraced circuit board. three.js renders soft shadows, reflections and a tilt-shift lens; Rapier physics lets the character climb hills and knock props over. Every shape and texture is code.

範例 · 2

Tabletop Diorama walkable world
在新分頁開啟

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

線上執行

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

在 Lab 中開啟 ↗

您可獲得什麼

Bring a material or era for the miniature world (felt, paper, clay, toy bricks, circuit boards, ruins…) and what should stand on it. The Skill returns a downloadable Skill (the three.js and Rapier engine, two theme projects, a single-file build and a play-test) and two playable examples.

運作方式

  1. 01

    Pick a sample and describe the world

    Start from the patchwork-quilt countryside or the neon circuit city, and describe what the miniature world is made of and what stands on it. The agent changes only the theme folder; the engine is shared and stays as it is.

  2. 02

    Write the theme

    A theme sets the light, sky and lens, defines the ground height and draws it, places houses, trees and props, and lists which props the physics can push. Everything is made from three.js shapes and canvas textures: no model, texture or sound files.

  3. 03

    Build and verify

    npm run build:single inlines three.js, the Rapier physics engine and the world into one file of about 3 MB that makes no network requests. npm run shoot plays it headlessly and runs 22 checks, from walking and running to knocking a prop over. Both examples passed 22 of 22.

常見問題

Does Tabletop Diorama call a model or need a key?

No. Nothing in the Skill calls a model or a paid service; your coding agent writes the theme locally, and the world is generated in the browser.

What do I need to run it?

A recent desktop or phone browser with WebGL 2 and WebAssembly. Building a new world needs Node.js and, for the play-test, a local Chrome.

Why does the diorama run inside a frame?

The world is served from an opaque origin with no network, so it cannot read this page or go online — what you walk through is the verified build.

Can I use my own models or textures?

The Skill is built to make everything in code. You can add your own files only if you own them or they are CC0, and list each in the theme’s credits; images or models from games and product sites are not allowed.

How is it different from Felt Tabletop Miniature?

Felt Tabletop Miniature renders a film you watch. Tabletop Diorama is a world you walk through yourself, with physics, in real time.

Can I make a new world on this page?

Not yet. A new theme is written by your own coding agent from the Skill; run it locally, then open the single HTML file it builds.

Lab Skill · Interactive scenes

Resin Diorama

Live 3D resin-block dioramas in your browser: send a little tram across a clear turquoise sea, or ripple the bay of a cliff island. Synthesized sound, and every scene can be tuned.

Lab Skill · Interactive scenes

3D Vehicle Worlds

Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

Lab Skill · Interactive scenes

3D Firefly Terrariums

Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

Lab Skill · Interactive scenes

Jelly Candy: Fruit Bears

Six translucent fruit gummies on a white table. Grab any part and pull, lift a head until the neck stretches thin, press one flat until it springs back, flick one across the pile or pour in more. Fixed-step soft-body physics and a marching-cubes skin in one offline HTML.

Lab Skill · Interactive scenes

WebGPU Soft-Body Gummy Bears

Four translucent gummy bears on an ivory floor, rendered with native WebGPU. A deterministic 36-second choreography stretches, presses, flips and tumbles them before they settle back to the exact rest pose. Drag any bear to stretch, squish or toss it. A fixed-step tetrahedral XPBD solver in one offline HTML.

Lab Skill · Interactive scenes

Stone Stars: 3D Miniature Landmark City

Turn a city into a storybook 3D island around one landmark, with chapters, a daylight-to-starlight slider, street life and a matching scored 24-second film. Sample: a Gaudí-style basilica.