Build a single-file, fully interactive 3D scene of a PzH 2000 self-propelled howitzer in Three.js (r160, ES modules via importmap from jsdelivr: OrbitControls, RoundedBoxGeometry, BufferGeometryUtils, EffectComposer, GTAOPass, UnrealBloomPass, OutputPass). Everything procedural — no external models or textures. Aim for museum-grade detail and realism.
MODEL (real proportions, metres):
- Hull: long low tank hull with a steep sloped glacis, chamfered edges, driver's hatch front-left, tow eyes, headlight clusters with guards, bolted access panels, engine deck at the FRONT right with louvres and exhaust grille (the PzH has a front engine), rear door, mudflaps.
- Side skirts: eight light steel panels per side with a rubber strip at the bottom, bolt rows, slight dents.
- Travel lock: an A-frame cradle on the glacis that holds the barrel at about −1° when travelling; it hinges and folds flat onto the glacis to free the gun.
- Turret: very large boxy turret set well back, built from lofted chamfered profiles, bolted add-on roof armour tiles, commander's hatch with periscopes, loader's hatch, independent commander sight (CITV) on a mast, smoke dischargers, stowage bins, ammunition loading hatch at the rear, handrails, two whip antennas that sway.
- Gun: 155 mm L52 barrel (about 8 m) as a lathe profile, thermal sleeve sections, bore evacuator, multi-baffle pepperpot muzzle brake, mantlet with dust cover, cradle and recoil cylinders. Recoil length 0.82 m.
- Running gear: 7 road wheels per side with rubber tyres and hub bolts, front drive sprocket with teeth, rear idler, return rollers, torsion-bar arms. Tracks: instanced links on a convex-hull belt around sprocket/wheels/idler/rollers, with guide horns and rubber pads.
- Merge geometry per material for performance; instance repeated parts.
LOOK:
- NATO three-tone camouflage (green, brown, black) generated in a shader from 3D noise; weathering in the same shader: dust settling on upward faces, mud on the lower hull and running gear, chipped paint on edges, exhaust soot on the front-right deck, muzzle soot on the brake and bore evacuator.
- Decals rendered to canvas: vehicle number "412", round yellow bridge-class plate "60", tactical artillery symbol (with a filled dot).
- Bright overcast exterior lighting: soft sun with PCF shadows, hemisphere fill, RoomEnvironment reflections, ACES tone mapping, GTAO ambient occlusion, subtle bloom on the muzzle flash. A large ground plane with grass/dirt variation and track ruts.
INTERACTION:
- Orbit camera (distance 6.5–46 m).
- Turret traverse and gun elevation sliders (−2.5° to +65°).
- "Deploy / Travel lock" button runs a phased sequence: lifting off the cradle → cradle folds forward → gun free; stowing reverses it: turret to 0, gun lowered, cradle raises and locks.
- "Fire": a deterministic blast effect — double muzzle flash plus side jets from the brake baffles, ground blast ring, dust and debris kicked up, expanding smoke sprites that drift, a brief point light, recoil 0.82 m with a hydraulic return, camera shake.
- "Fire mission · MRSI": unlocks the gun automatically, lays to azimuth 0.42 rad and fires five rounds at descending elevations 56°, 50.5°, 45°, 39.5°, 34° about 3 s apart (multiple rounds simultaneous impact), then stows back into the travel lock by itself.
- Keyboard: F fire, M fire mission, L travel lock.
- HUD: deflection in mils, quadrant elevation in degrees, status line (LOCKED / LIFTING / FOLDING / FREE / FIRING / STOWING), rounds on board 60 counting down. Clean tactical UI with Inter + JetBrains Mono.
SOUND (Web Audio, synthesized, starts on first click):
- Diesel idle that changes with activity, hydraulic whine for the lock and elevation, electric turret traverse motor, a heavy shot: sharp crack + deep sub-bass thump + long rolling rumble with echoes, breech and recoil clanks, shell-casing-free automatic loader clatter between MRSI rounds.
Output one self-contained HTML file.