drag to orbit
Prop · 1 moving part
Treasure Chest
A domed treasure chest with a hinged lid, metal bands and a hoard of coins and gems inside. Open it with a knob or animate the lid part.
- Size
- 0.86 × 0.69 × 0.56 m
- Triangles
- 320
Tune it
5 knobs: Wood, Trim, Open, Size, Hoard.
Specs
- Size
- 0.86 × 0.69 × 0.56 m width × height × depth
- Triangles
- 320 of 6,000
- Draw calls
- 1 one vertex-colour material
- Moving parts
- 1 lid · rotate
- Knobs
- 5 2 presets
- Night lights
- 0 none
Passed the validator: real scale, rests on y = 0, front faces +Z, deterministic.
Use it
Code for the specimen as it is set up above; it follows your knobs.
import { createAsset } from 'https://gaitkit.com/cdn/treasure-chest.mjs';
const treasureChest = createAsset();
scene.add(treasureChest); // rests on y = 0, front faces +Z
// 'lid' pivots on its hinge: -110° to 0° around x
treasureChest.getObjectByName('lid').rotation.x = THREE.MathUtils.degToRad(-110);import { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/treasure-chest.mjs';
export function TreasureChest() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import treasure-chest.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
$TreasureChest/lid.rotation_degrees.x = -110// Import treasure-chest.glb with glTFast (com.unity.cloud.gltfast).
transform.Find("lid").localEulerAngles = new Vector3(/* x: */ -110, 0, 0);Use the gaitkit MCP server: get_variant({ "id": "treasure-chest", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
wood | choice | oak ebony driftwood crimson | oak | oak (warm brown), ebony (near black, boss loot), driftwood (bleached grey, shipwreck), crimson (painted red). |
trim | choice | gold iron copper | gold | Metal of the bands, corners and lock: gold, iron or copper. |
open | range | 0 to 1, step 0.05 | 0 | How far the lid is open. 0 closed, 1 fully open showing the treasure. |
size | range | 0.5 to 2, step 0.1 | 1 | Uniform scale. 1 is 80 cm wide. |
hoard | toggle | on / off | true | Coins and gems inside. Off gives an empty chest. |
Presets: shipwreck loot {"wood":"driftwood","trim":"copper","open":0.6} · boss chest {"wood":"ebony","trim":"gold","size":1.5,"open":1}
Files
| File | What |
|---|---|
| treasure-chest.glb | GLB, default look · 44 KB |
| treasure-chest.mjs | ES module, every knob live |
| treasure-chest.obj | OBJ, static, no colour |
| treasure-chest-params.json | knob schema, presets, night zones |
Licence
Use it in games, apps, renders and client work, commercially and without credit. Do not resell it as an asset or train a 3D generator on it. The full licence.