/The-SafetyFirst-Road-System

This is our computer graphics project..

Primary LanguageC++GNU General Public License v2.0GPL-2.0

Project name : "Safety-first Road System"

After months of hard work, dedication, and collaborative brilliance, we successfully presented and defended our Graphics project with flying colors. Gratitude to our exceptional team for their hard work and dedication. Onward to new milestones and opportunities! 📌

Prerequisites for running this project:

1) OpenGL Installation:
   Ensure OpenGL is installed on your chosen development environment 
   (Code::Blocks 20.3, Visual Studio Code, Visual Studio, or another suitable platform) prior to executing the project.
2) Audio Setup:
   I used a WAV file named "trafficSound.wav" for background traffic audio.
   To incorporate alternative audio, download a WAV file of your preference and place it within the bin->Debug directory.

Introduction:

The primary objective of this graphical project is to develop a safety road system tailored for emergency situations. The project encompasses user engagement with dynamic elements, including but not limited to, car movement, firing effects, emergency response vehicles, traffic signal transitions, day-night cycles, and an interactive gate. Its overarching goal is to showcase the prowess of OpenGL in constructing visually compelling and immersive 2D graphics simulations.

Project Output :

video6080398618425036407.mp4

Youtube Link : SafetyFirst_Road_System

Project Scenarios:

This project contains total 4 scenarios with Day to Night transition

Project Keys :

For Enjoying the project by pressing,

Control Mannual Car :

(A/a) for Increasing velocity of Red police Car

(D/d) for Decreasing velocity of Red police Car

(L/l) for increasing velocity of racing BLUE Car & pink car 

(J/j) for decreasing velocity of racing BLUE Car & pink car 

TrafficLight control :

(R/r) for turn on (RED) light of Traffic light  
(Y/y) for turn on (YELLOW) light of Traffic light
(G/g) for turn on (GREEN) light of Traffic  

Traffic Sound:

(S/s) for traffic road sound              

Change Scenario & Day-Night :

(1) for 1st scenario Morning              
(2) for 1st scenario Night                
(3) for 2nd scenario Morning              
(4) for 2nd scenario Night                
(5) for 3rd scenario Morning              
(6) for 3rd scenario Night                
(7) for 4th scenario Morning              
(8) for 4th scenario Night   

For Starting fire :

(Q/q) for First Fire 
(W/w) for Second Fire 
(E/e) for third Fire 
(T/t) for turn on All Fire 
(F/f) for turn off all Fire 

For Fire-Car :

(O/o) for increase velocity of Fire Car
(P/p) for decrease velocity of Fire Car

For spraying the Water :

RIGHT CLICK for Spray water X direction
LEFT CLICK for Spray water XY direction    
(I/i) stop Spraying water 

Conclusion :

In conclusion, the "Safety First Road system” stands as a pivotal initiative in promoting a secure and efficient transportation environment. Through a comprehensive approach encompassing strict adherence to traffic regulations, robust infrastructure, and advanced safety technologies, this system aims to significantly reduce accidents and enhance overall road user well-being.The integration of smart systems, coupled with ongoing advancements in technology, underscores the commitment to minimizing human error and maximizing safety. Additionally, community engagement and education initiatives play a vital role in instilling responsible road behavior.As we move forward, sustaining this commitment and adapting to new challenges will be essential. This project system's success lies in its ability to evolve, innovate, and ensure the continual enhancement of road safety measures for the benefit of all.

Contributor :

Mohammed Istishad Alam Tishad (CSE,AIUB)
Al Abid (CSE,AIUB)
Lamia Haque Chandni (CSE,AIUB)
Nujhat Tabassum (CSE,AIUB)