Asteroid
A seeded space rock with bowl craters, raised rims and mineral veins: stone (grey-brown with rust veins), iron (dark metallic with silver ore), ice (pale blue comet ice) or crystal (dark rock with magenta crystal clusters). Veins and crystals can glow at night. It rests on y = 0 like a fallen meteorite.
- Size
- 2.9 × 1.9 × 2.4 m
- Triangles
- 1,280
- Kit
- Space Colony
Tune it
4 knobs: Size, Type, Seed, Glowing veins.
Specs
- Size
- 2.9 × 1.9 × 2.4 m width × height × depth
- Triangles
- 1,280 of 6,000
- Draw calls
- 1 one vertex-colour material
- Knobs
- 4 3 presets
- Night lights
- 1 vein
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/asteroid.mjs';
const asteroid = createAsset();
scene.add(asteroid); // rests on y = 0, front faces +Zimport { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/asteroid.mjs';
export function Asteroid() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import asteroid.glb (download below). It is a static mesh, one material per colour.
add_child(preload("res://asteroid.glb").instantiate())// Import asteroid.glb with glTFast (com.unity.cloud.gltfast).
// Drop it in the scene: 1 unit = 1 metre, +Z is its front.Use the gaitkit MCP server: get_variant({ "id": "asteroid", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
size | range | 0.5 to 6, step 0.25 | 2 | Rough diameter in metres. 0.5 is a fist-to-football meteorite, 2 a car-sized rock, 6 a small hill. |
type | choice | stone iron ice crystal | stone | stone (grey-brown rock, rusty veins), iron (dark metallic body, silver ore veins), ice (pale blue comet chunk, cyan veins), crystal (dark rock with spikes of magenta crystal). |
seed | range | 1 to 50, step 1 | 7 | Changes the shape, the crater layout and where the veins run. Scatter several with different seeds. |
glow | toggle | on / off | true | Mineral veins and crystals glow after dark (ore you can mine). Off keeps them plain. |
Presets: iron ore {"type":"iron","size":3,"seed":12} · comet chunk {"type":"ice","size":2.5,"seed":21} · crystal geode {"type":"crystal","size":2,"seed":33}
Files
| File | What |
|---|---|
| asteroid.glb | GLB, default look · 150 KB |
| asteroid.mjs | ES module, every knob live |
| asteroid.obj | OBJ, static, no colour |
| asteroid-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.