Search Projects

Sunday, June 11, 2017

3D Car Animation OpenGL Computer Graphics Program

We have came across so many Computer Graphics Program that draws Cars, including the racing games. In this post we are presenting 3D Car Animation, which is one the best OpenGL Car Program. This 3D OpenGL Program have so many advance features in it. You can see the below video demo that demonstrate the all features that included in this 3D Animated Program.


Features of the 3D Car Animation OpenGL Program

  1. Start Screen : As you execute the program, first thing come is the start screen where you will see the details of the project. The start screen have name of college and the name of projects. It also have the user interaction instructions about the use of mouse and keyboard functionality. There is option of going to main screen, by pressing 'space' key.
  2. Main Screen: After you get in to main screen from the start screen you will see the 3D Car drawn in blue color. If you press right mouse button you will get the menu options to select for particular functionality to execute. Details is mentioned in below user interaction section.
  3. Comments ; Most of the codes in this 3D OpenGL Program, is commented hence easy to understand the whole program.
3d car animation

User Interaction

The user interaction is one of the most important part of any program. This 3D OpenGL Program also have user interaction both using keyboard as well as mouse. Below is the description of the uses and functionality of keys and menus in this 3D OpenGL Progam.

3d opengl program on car


Mouse Interaction

Press right mouse button to get the mouse. Following is the menus-

Car model mode - This is default mode of car display which will display the only car.
Car driving mode - This will display the driving mode, which includes the long road and green filed.
Fog effect - This will apply the fog around the environment of the car.
Wheel effect - This is one of the finest effect, it will animate the car while it moved as it is moving in the car. 
Toggle light - This will apply the light effect on/off when selected.
Car colors - This menu have submenu which allow to select the color of car. The submenu have the following options - blue, red, green, black, yellow and grey.
Daymode - By default we have Daymode on, in this projects so while in Night mode you can select this to toggle to Daylight mode.
Night mode - This menu will let you switching to the Night mode, by showing darkness around.

Keyboard Interaction

Below is complete description against each key and what they do when pressed.

x- Rotate the car in 'x' direction
y- Rotate the car in 'y' direction
z- Rotate the car in 'z' direction
a- Increase the size of car in'x' direction
s- Increase the size of car in 'y' direction
q- Increase the size of car in 'z' direction
u- Camera top view
f- Camera side view
left arrrow key - Move car in forward direction
right arrow key-  Move car in backward direction
esc - Exit from the program
spacebar - Enter the main screen from start screen.

Source Code

You can download the source code from the google drive link. For report you can download it from the download or contact us to prepare for you.

No comments:

Post a Comment