# 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.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.1.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/tabletop-diorama

## What you get

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.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/tabletop-diorama (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/tabletop-diorama build a walkable miniature world made of <your material or era>, with <what stands on it>, starting from the <patchwork-quilt | neon-circuit> sample
```

## How it works

1. **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. **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. **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.

## FAQ

### 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.

## Examples

- Tabletop Diorama walkable world (scene)
- Neon Circuit (scene)
- Patchwork Quilt (video)
- Neon Circuit (video)
