Butterfly
A butterfly at real size (1 = a 9.5 cm wingspan monarch-like butterfly; the size knob scales it up to a fantasy giant): four broad wings built like stained glass, with dark veins, a patterned border with rows of pale dots and a paler underside, a fuzzy thorax, a ringed abdomen, big eyes, clubbed antennae and a coiled tongue. Four wing patterns: monarch-like orange, blue morpho-like, cabbage white and tailed yellow swallowtail-like. Flies by distance with a slow, deep flutter, the body bobbing up on every downstroke.
- Size
- 0.09 × 0.02 × 0.06 m
- Triangles
- 2,696
- Kit
- Garden Bugs
Tune it
4 knobs: Pattern, Border dots, Seed, Size.
Specs
- Size
- 0.09 × 0.02 × 0.06 m width × height × depth
- Triangles
- 2,696 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 0.05 m of travel per cycle
- Altitude
- 0.3 m above the ground
- Moving parts
- 4 wing_L · rotate, wing_R · rotate, abdomen · rotate, body · slide
- Knobs
- 4 3 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/butterfly.mjs';
const butterfly = createAsset();
scene.add(butterfly); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
butterfly.position.set(0, groundY + butterfly.userData.altitude, dist);
butterfly.userData.tick(dist); // wings beat with the distance
renderer.render(scene, camera);
});import { useMemo, useRef } from 'react';
import { useFrame } from '@react-three/fiber';
import { createAsset } from 'https://gaitkit.com/cdn/butterfly.mjs';
export function Butterfly({ speed = 1 }) {
const model = useMemo(() => createAsset(), []);
const dist = useRef(0);
useFrame((_, dt) => {
dist.current += speed * dt;
model.position.set(0, groundY + model.userData.altitude, dist.current);
model.userData.tick(dist.current); // wings beat with the distance
});
return <primitive object={model} />;
}# Import butterfly.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $Butterfly/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 0.05 # one Loop = 0.05 m of travel// Import butterfly.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 0.05 // one Loop = 0.05 m of travelUse the gaitkit MCP server: get_variant({ "id": "butterfly", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
species | choice | monarch morpho white swallowtail | monarch | Wing pattern: monarch (orange with black veins and a dotted black border, 9.5 cm), morpho (bright blue with a black border and a brown underside, 13 cm), white (cabbage-white cream with grey tips and black spots, 5.5 cm), swallowtail (yellow with black tiger bars, a blue-and-orange hind band and tailed hindwings, 10 cm). |
spots | toggle | on / off | true | Rows of pale dots (dark spots on the white) in the wing border. Off gives clean, plain borders. |
seed | range | 1 to 99, step 1 | 1 | Varies the wing outline a little and the tone of each wing cell, so a swarm of the same pattern does not look cloned. |
size | range | 1 to 30, step 0.5 | 1 | Uniform scale. 1 is real size (9.5 cm wingspan for the monarch pattern); 10 is a 1 m fairy-garden butterfly; 30 is a rideable fantasy giant. |
Presets: monarch {"species":"monarch"} · blue morpho {"species":"morpho","spots":true} · tiger swallowtail {"species":"swallowtail","seed":7}
Files
| File | What |
|---|---|
| butterfly.glb Pro | GLB, default look · 370 KB |
| butterfly.mjs Pro | ES module, every knob live |
| butterfly.obj Pro | OBJ, static; colours in the .mtl |
| butterfly.mtl | OBJ colours; keep it next to the .obj |
| butterfly-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.