Real-time 3D urban traffic simulation built with Three.js
- ๐ Vehicle Simulation โ Real-time vehicle spawning, routing, and collision detection
- ๐ต E-bike System โ Independent electric scooter traffic flow simulation
- ๐ถ Pedestrian System โ Pedestrian movement with overpass/crosswalk support
- ๐ฆ Adaptive Traffic Lights โ AI-controlled signal timing based on traffic density
- ๐ข Building Analytics โ Real-time footfall statistics for each building
- ๐ Night City Rendering โ Immersive dark-theme 3D cityscape
- โก Performance Dashboard โ Live metrics: throughput, wait times, collision count
Just open index.html in your browser โ no build step required!
# Or serve locally
python3 -m http.server 8080
# Then open http://localhost:8080| Action | Control |
|---|---|
| Rotate view | Mouse drag |
| Zoom | Scroll wheel |
| Toggle adaptive signals | Spacebar |
- Three.js โ 3D rendering engine
- Vanilla JavaScript โ Zero dependencies (except Three.js CDN)
- HTML5 Canvas โ Real-time HUD overlay
| Metric | Description |
|---|---|
| ่ฝฆ่พ้่ก้ | Total vehicles passed |
| ็ต็ถ่ฝฆ้่ก | Total e-bikes passed |
| ๆปๅฎขๆต้ | Total pedestrian flow |
| ่ฝฆ่พ็ญๅพ | Average vehicle wait time |
| ็ขฐๆไบๆ | Collision incidents |
| ่ทฏ้ข่ฝฆ่พ/็ต็ถ่ฝฆ/่กไบบ | Active entities on road |
Open the live demo to see it in action.
MIT License