A real-time 3D autonomous vehicle simulation featuring LiDAR visualization, AI traffic management, and a cinematic HUD interface โ all rendered in pure JavaScript Canvas.
๐ Live Demo ยท ๐ Report Bug ยท ๐ก Request Feature
Open teslaway.vercel.app โ a 3-second countdown launches you straight into the simulation. No clicks needed.
| Feature | Description | |
|---|---|---|
| ๐ฃ๏ธ | 3D Road System | Procedurally generated roads with curves, intersections, lane markings & crosswalks |
| ๐ค | AI Traffic | Multiple AI-controlled vehicles with realistic behavior and tail lights |
| ๐ก | LiDAR Visualization | Real-time 360ยฐ LiDAR sweep, point cloud rendering & 3D object mapping |
| ๐ฆ | Traffic Lights | Dynamic traffic signal system with countdown timer & auto speed adjustment |
| ๐ฏ | Object Detection | AI bounding boxes with distance tracking on detected vehicles |
| ๐ฅ๏ธ | Cinematic HUD | Full heads-up display with speed, battery, sensor status & AI decisions |
| ๐บ๏ธ | LiDAR Minimap | Circular radar-style minimap with real-time vehicle positions |
| ๐ | Night Environment | Starfield, moon, illuminated buildings with window lights |
| ๐๏ธ | City Objects | Procedural buildings & trees with LiDAR point detection |
| โฑ๏ธ | Auto Countdown | 3... 2... 1... GO! Auto-starts without user interaction |
| Key | Action |
|---|---|
| โ | Increase speed (+10 km/h) |
| โ | Decrease speed (-10 km/h) |
| L | Toggle LiDAR system on/off |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ข FSD + LiDAR ACTIVE 00:12:34 โ
โ โ
โ โโโโโโโโโโโ NEURAL NETWORK โโโโโโโโโ โ
โ โ 8 CAM โ + LiDAR PROCESSING โ DETECTโ โ
โ โ L LiDAR โ โ 98.7% โ โ
โ โ R RADAR โ โโ TRAFFIC SIGNAL โโ โ 96.2% โ โ
โ โ U ULTRA โ โ ๐ด ๐ก ๐ข 12s โ โ 94.1% โ โ
โ โ N NEURL โ โโโโโโโโโโโโโโโโโโโโ โ 99.5% โ โ
โ โ G GPS โ โโโโโโโโโ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ LiDAR360 โ โ
โ โ ๐ต โ โ
โ โโโโโโโโ FULL SELF-DRIVING BETA โโโโโโโโโโโโ โ
โ โ 120 โ LiDAR + VISION FUSION BATTERY โโโโโ 87% โ
โ โ KM/H โ Highway 101 N - Palo Alto, CA โ
โ โโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# Clone the repository
git clone https://github.com/romizone/teslaway-simulation.git
# Navigate to the project
cd teslaway-simulation
# Open in browser (macOS)
open index.html
# Open in browser (Linux)
xdg-open index.html
# Open in browser (Windows)
start index.html๐ก No dependencies, no build step, no server needed โ just open the HTML file!
teslaway-simulation/
โโโ ๐ index.html # Complete application (HTML + CSS + JS)
โโโ ๐ README.md # Documentation
โโโ ๐ LICENSE # MIT License
โโโ ๐ซ .gitignore # Git ignore rules
The simulation uses a procedural AI system that:
- Generates road segments (straights, curves, intersections)
- Manages traffic light state machines with countdown logic
- Adjusts vehicle speed based on traffic conditions
- Simulates object detection with confidence percentages
- 4 virtual sensors scanning the environment
- Real-time point cloud visualization on road and objects
- 360ยฐ minimap showing detected vehicles and road edges
- Wireframe overlays on detected objects with depth mapping
- Custom perspective projection engine (no libraries)
- Depth-sorted rendering for buildings and environment
- Dynamic lighting and fog based on distance
- Scanline & vignette post-processing effects
This project is deployed on Vercel with automatic deploys on push:
Distributed under the MIT License. See LICENSE for more information.