We describe the design and construction of a headlight glare simulator to be used with a driving simulator. The system combines a modified programmable off-the-shelf LED display board and a beamsplitter so that the LED lights, representing the headlights of oncoming cars, are superimposed over the driving simulator headlights image. Ideal spatial arrangement of optical components to avoid misalignments of the superimposed images is hard to achieve in practice and variations inevitably introduce some parallax. Furthermore, the driver's viewing position varies with driver's height and seating position preferences exacerbate such misalignment. We reduce the parallax errors using an intuitive calibration procedure (simple drag-and-drop alignment of nine LED positions with calibration dots on the screen). To simulate the dynamics of headlight brightness changes when two vehicles are approaching, LED intensity control algorithms based on both headlight and LED beam shapes were developed. The simulation errors were estimated and compared to real-world headlight brightness variability.