drag to orbit
Prop · Still
Traffic Light
A three-lamp traffic signal on a pole or on an overhanging arm, with an optional pedestrian head. The state knob picks which lamp is lit (red, amber, green or off) and the lit lamp glows after dark.
- Size
- 0.57 × 4.1 × 0.60 m
- Triangles
- 848
- Kit
- City Street
Tune it
4 knobs: State, Mount, Housing, Pedestrian head.
Specs
- Size
- 0.57 × 4.1 × 0.60 m width × height × depth
- Triangles
- 848 of 6,000
- Draw calls
- 1 one vertex-colour material
- Knobs
- 4 3 presets
- Night lights
- 1 lit
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/traffic-light.mjs';
const trafficLight = createAsset();
scene.add(trafficLight); // rests on y = 0, front faces +Zimport { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/traffic-light.mjs';
export function TrafficLight() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import traffic-light.glb (download below). It is a static mesh, one material per colour.
add_child(preload("res://traffic-light.glb").instantiate())// Import traffic-light.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": "traffic-light", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
state | choice | red amber green off | red | Which lamp is lit: red (stop), amber (get ready), green (go), off (dark, out of service). The pedestrian head shows red for red and amber, walk green for green. |
arm | choice | pole overhang | pole | pole (head on top of a 3 m kerbside post), overhang (tall mast with a horizontal arm holding the head over the lane). |
housing | choice | black yellow green grey | black | Colour of the signal housing and visors: black (Europe), yellow (North America), green (old town), grey. |
pedestrian | toggle | on / off | true | Adds a small two-lamp walk / don't-walk head and a push button lower on the pole. |
Presets: go {"state":"green"} · overhead signal {"arm":"overhang","housing":"yellow","pedestrian":false} · out of order {"state":"off","housing":"grey"}
Files
| File | What |
|---|---|
| traffic-light.glb | GLB, default look · 108 KB |
| traffic-light.mjs | ES module, every knob live |
| traffic-light.obj | OBJ, static, no colour |
| traffic-light-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.