File size: 1,977 Bytes
59c7fd7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 1930s Fire Engine — procedural Three.js scene

A real-time, fully procedural 1930s red fire engine parked on a brick courtyard, built with Three.js r186 (`./vendor/three`) and no build step or external assets.

## Files
- `index.html` — import map + full-window canvas mount.
- `main.js` — renderer (ACES, PCF soft shadows), PMREM environment, hero camera, dust motes, resize, and `window.__three = { scene, camera, renderer, render }`.
- `subject.js` — the full truck inside the single `THREE.Group` named `"subject"`.
- `environment.js` — sky dome, brick courtyard/street, walls, background buildings, trees/hedges, props (hydrant, bucket, cobbles, grass), warm/cool lights and fog.
- `textures.js` — procedural CanvasTexture PBR sets (brick albedo/bump/roughness, weathered red paint, wood, brass, rubber, canvas).

## Subject construction
- Chassis with leaf springs, axles, running boards and brass step plates.
- Artillery-style spoked wheels: lathe-profiled tires, instanced treads/spokes/bolts, wooden hubs and brass caps.
- Curved extruded fenders, long tapered beveled hood with louvers, chrome radiator shell and grille, brass headlamps and horn.
- Closed cab with pillars, brass-framed glass, seats, steering wheel, door panels, gold “1” door decals, brass roof rails and a lathe-built brass bell with tube yoke.
- Rear apparatus body with paneled lockers, brass hinges/latches, two wooden hose reels wrapped in helical TubeGeometry hose with brass fittings and dangling nozzles, canvas hose bed, rear lanterns, axe, coiled side hoses and a rear step.
- Wooden extension ladder on brass racks: two rail sections, instanced rungs with steel ends, leather pads and ropes.

## Environment
Procedurally textured brick paving, stone borders, brick perimeter walls, background brick facades with windows, instanced hedges/trees, sky gradient shader, atmospheric fog, PMREM reflections, warm key sun with 2048 soft shadows plus cool fill and rim lights.