Driving Simulator

Masters Research Project under Prof. Jason Leigh at Electronics and Visualization Laboratory.


It has been implemented at the College of Nursing at UIC for research in Sleep Apnea by Jonathan Waxman (PhD student in ).

My contributions are:
  • Developed the complete framework by defining a class hierarchy and subclasses, diving entities into different classes.
  • Integrated Ogre3D with ODE, OpenAL and TinyXML.
  • Implemented vehicle dynamics on the camera through vector math and ray collisions.
  • Enabled socket/port for sending pulse to the data computer.
  • Writing file outputs.


Description
The simulator lets a user drive through two separate environments: Urban and Rural. Events are generated and user reactions and other data is recorded in an output file with name as userID_trackID_date.txt.

The user needs to enter their ID/Name, track to load and the time of the simulation in the beginning.

Urban environment consists of a city model but different paths through the city grid is defined in another XML file for city obstacles. Here ball events are generated.
Rural environment tracks are pre-modeled whose turns and track direction can be changed in a modeling software. Moreover the user's start position, direction of travel and time can be used to give it an effect of driving on another type of track.

Hardware Used: The display used is a 30 inch Apple monitor. The user interacts using a Logitech Driving Force Pro Steering Wheel and paddles.

Video
A small video:

YouTube Video



Code Sample and Executable



Screen Shots




Technical Details
The models have been designed in AC3D by Prof Jason Leigh and converted into .mesh format using a converter plug-in for Ogre Meshes.