Garden Fence & Gate
A tileable garden fence run along X built from 2 m bays, with a gate bay in the middle whose leaf or pair of leaves swing open on their hinges (gate_L, gate_R): white picket, horizontal slats or black iron railings. A run of n bays is exactly 2n m between its end posts.
- Size
- 6.1 × 1.3 × 0.19 m
- Triangles
- 984
Tune it
5 knobs: Bays, Style, Gate, Finish, Gate open.
Specs
- Size
- 6.1 × 1.3 × 0.19 m width × height × depth
- Triangles
- 984 of 6,000
- Draw calls
- 1 one vertex-colour material
- Moving parts
- 1 gate_L · rotate
- Knobs
- 5 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/garden-fence-gate.mjs';
const gardenFenceGate = createAsset();
scene.add(gardenFenceGate); // rests on y = 0, front faces +Z
// 'gate_L' pivots on its hinge: 0° to 100° around y
gardenFenceGate.getObjectByName('gate_L').rotation.y = THREE.MathUtils.degToRad(0);import { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/garden-fence-gate.mjs';
export function GardenFenceGate() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import garden-fence-gate.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
$GardenFenceGate/gate_L.rotation_degrees.y = 0// Import garden-fence-gate.glb with glTFast (com.unity.cloud.gltfast).
transform.Find("gate_L").localEulerAngles = new Vector3(/* y: */ 0, 0, 0);Use the gaitkit MCP server: get_variant({ "id": "garden-fence-gate", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
bays | range | 1 to 7, step 1 | 3 | Number of 2 m bays including the gate bay, 1 to 7. The run is 2 × bays metres between end posts, centred on the origin along X; the gate sits in the middle bay. |
style | choice | picket slat iron | picket | picket (1 m pointed boards, cottage front garden), slat (1.5 m horizontal boards, modern backyard privacy fence), iron (1.2 m black railings with spear tops between brick piers). |
gate | choice | single double none | single | single (a 1 m pedestrian gate in the middle of its bay, short fence either side), double (two leaves filling the whole 2 m bay, a driveway or wide garden gate), none (plain fence, every bay the same). |
finish | choice | white cream sage blue natural | white | Paint: white, cream, sage (green), blue, or natural (bare wood; on iron it means classic black). |
open | range | 0 to 90, step 5 | 0 | How far the gate stands open, degrees (0 shut, 90 wide open). Leaves swing into the garden (toward -Z). |
Presets: cottage front gate {"style":"picket","gate":"single","finish":"white","bays":3} · backyard privacy {"style":"slat","gate":"single","finish":"natural","bays":4} · manor railings {"style":"iron","gate":"double","finish":"natural","bays":5,"open":30}
Files
| File | What |
|---|---|
| garden-fence-gate.glb | GLB, default look · 152 KB |
| garden-fence-gate.mjs | ES module, every knob live |
| garden-fence-gate.obj | OBJ, static, no colour |
| garden-fence-gate-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.