Barracks
A long quonset-style army hut: a ribbed corrugated half-cylinder shell about 6 m wide with bolted rib hoops on a chamfered concrete slab, boarded end walls with framed, recessed windows and louvred vents, a gabled entry porch with a panelled hinged door (part door), kick plate, step, caged lamp and a blank notice board on the +Z side, and rows of framed awning windows down both flanks that glow at night. Length is a real-metre knob; the shell is painted in woodland, desert, arctic or grey camouflage, with an optional stove pipe and sandbag blast walls.
- Size
- 12.8 × 5.2 × 8.4 m
- Triangles
- 3,084
Tune it
4 knobs: Length, Camo, Stove pipe, Sandbags.
Specs
- Size
- 12.8 × 5.2 × 8.4 m width × height × depth
- Triangles
- 3,084 of 6,000
- Draw calls
- 1 one vertex-colour material
- Moving parts
- 1 door · rotate
- Knobs
- 4 3 presets
- Night lights
- 2 window, lamp
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/barracks.mjs';
const barracks = createAsset();
scene.add(barracks); // rests on y = 0, front faces +Z
// 'door' pivots on its hinge: -100° to 0° around y
barracks.getObjectByName('door').rotation.y = THREE.MathUtils.degToRad(-100);import { useGLTF } from '@react-three/drei';
// barracks.glb from the Download button (it carries the knobs you set), saved in /public
export function Barracks() {
const { scene } = useGLTF('/barracks.glb');
scene.getObjectByName('door').rotation.y = -1.745; // -100°, on its hinge
return <primitive object={scene} />;
}
// Live knobs or terrain-following feet: copy barracks.mjs and runtime/ into your project and use the three.js tab.# Import barracks.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
$Barracks/door.rotation_degrees.y = -100// Import barracks.glb with glTFast (com.unity.cloud.gltfast).
transform.Find("door").localEulerAngles = new Vector3(/* y: */ -100, 0, 0);Use the gaitkit MCP server: get_variant({ "id": "barracks", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
length | range | 8 to 18, step 1 | 12 | Length of the hut in metres. 8 is a small office hut, 12 sleeps a platoon, 18 is a mess hall or store. |
camo | choice | woodland desert arctic grey | woodland | Paint on the corrugated shell: woodland (olive, brown and black blotches), desert (sand and tan), arctic (white and pale grey), grey (plain urban grey). |
chimney | toggle | on / off | true | A stove chimney pipe with a rain cap and roof collar poking out of the roof near the back. |
sandbags | toggle | on / off | false | A low blast wall of sandbags (three courses) along the front on both sides of the porch. |
Presets: desert mess hall {"camo":"desert","length":18,"chimney":true} · arctic hut {"camo":"arctic","length":9} · frontline quarters {"camo":"woodland","sandbags":true,"length":14}
Files
| File | What |
|---|---|
| barracks.glb Pro | GLB, default look · 397 KB |
| barracks.mjs Pro | ES module, every knob live |
| barracks.obj Pro | OBJ, static; colours in the .mtl |
| barracks.mtl | OBJ colours; keep it next to the .obj |
| barracks-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.