Monday, 28 March 2016

Lift-Over Bridge


Lift-Over Bridge

 

picture is worth a thousand words’ goes the ancient Chinese proverb.This has become a cliché in our society after the advent of inexpensive and simple techniques for producing pictures.

             Computers have become a powerful medium for the rapid and economical production of pictures. There is virtually no area in which graphical displays cannot be used to some advantage. Graphics provide a so natural means of communicating with a computer that they have become widespread. The fields in which Computer Graphics find their uses are many. Some of them being  User Interfaces, Computer Aided Design, Office automation, Desktop Publishing, Plotting of mathematical, scientific or industrial data, Simulation, Art, Presentations, Cartography, to name a few…Here, We have tried to incorporate and present the working environment of a Lift-Over Bridge which is also known as Bascule Bridge in 2D.

            The bascule bridge works with a counterweight that balances the span (leaf) while the upward swing provides clearance for boat traffic. Here, we have created a scene consisting of the bascule bridge which operates to allow a boat to pass under it while a bus waits for the leaf of the bridge to swing back into its position and then passes along the bridge after the boat has sailed across. We have provided mouse interface to start and stop animation and to exit the window. We have also included the keyboard input function to change the color of the boat.
Screenshots:
Snap shot of Initial stage of the Lift over bridge



  Snap Shot Showing Main Menu (mouse interface)


Snapshot shows the lifting up the bascules
 Snap Shot Shows the changing the colors of boat
Snap Shot Shows the Bridge moving down
Snap Shot Shows the Vehicle Crossing Over the Bridge
Download Program Source Code here
Download Full Project Report here

Racing Car in a Race Track

Racing Car in a Race Track


Computer Graphics has grown into a very important topic in the branch of Computer Science. This is due to an effective and rapid communication formed between man and the machine. Human eye can absorb the information in a displayed diagram or perspective diagram much faster than it can scan a page or a table of contents.



     This project demonstrates the creation of a moving racing car along with a circular race track and scenery.The user is also given the option to see the car from different views.OpenGL is used to make this possible by virtue of its various functionalities.


    We make use of simple geometric figures like triangle, circle and polygons to construct the parts of racing car and the track .Cones, spheres and cylinders are used to generate the trees. We also include lighting and material properties.

     The code implemented makes use of various OpenGL functions for translation, rotation and keyboard callback function, built-in functions for solids and many more.

      The concepts of computer graphics stand a backbone to achieve the aforementioned idea. Primitive drawing, event driven interactions and basic animation have been the important concepts brought out by this application.

      The report is chalked out into sections describing the basic requirements superseded by the briefing on functions used. Following this, the detailed description of how the implementation is done effectively using these functions and C language is presented. The source code is provided along with necessary comments to enhance readability of code. The screenshots have been provided for amelioration of our little effort. The conclusion and the future enhancements proposed conclude the report.The maximum efforts are been made to ensure that the view is aesthetically pleasing and eye-catching.

Screenshots:


Back side view:


 Front View:


Helicopter View: 


Side View: 




Download Program Source Code here
Download Full Project Report here