Friday, April 11, 2014

Killing Machine

In this project a gun shoots bullets, three at a time. It needs to be reloaded by pressing right mouse button. Left mouse button to shoot.

Snapshots:





Here is the source.

Graphics Editor

This is the standard graphics editor a project that students used to do earlier.

Snapshots:





Here is the source.

Fluid Filteration - An animation

A simple project in which some fluid flows in pipes and fills a pipeline in an industry. The scene changes by the slow motion of the camera around the scene. I admit i do not understand this project much. Probably a cross section of the pipes in which fluid flows might have conveyed a better understanding. You can modify this project to do that i guess.

Snapshots:

Here is the source.

Client Server Communication

This is a computer network related project a subject i am allergic to as already mentioned elsewhere. So no details.

Snapshots:


Here is the source.

3D Car - Animation

This is a simple view of a car. It can be moved front and back using arrow keys. A road can be made to appear optionally. The car can be driven and fog and night mode can be activated. The body of the car has been made using cubes and tire spokes using GL_QUADS.
You can download the code, compile and execute once and then comment out individual function calls/pieces of code in the display function to see their effect.

Snapshots:



Here is the source. In this project lighting and shading is used. Enhancements that could be done include getting the camera move or change position to get different views. Also you could put this car in the car racer project and get it go round a racing track.

Boundary Fill

This is titled "Boundary Fill" and it supposedly detects edges of geometric objects and also optionally shades the objects.

Snapshots:





Here is the source.

Aquarium - An animation

This is the first project i am posting of the 2013 CG batch which will passout in 2014. This is titled aquarium. A few fishes moving around. You can serve them food. Poison food kills them. I have created a 3D fish among these 2D fishes and it can be moved randomly if needed.
I went through the code that's given in the link. Its a pity that our students have to work so hard to do their projects. The green leaves that you see down here are hard coded. X & Y value of all the points is kept on changing and it has been drawn laboriously six times. It could have been drawn once and translated five times to draw six leaves.
In drawing the fishes also code is unnecessarily replicated to increase the number of lines. If I were to do this project it would not have been even 250 lines of code. And I would not take so much pains to code. Of course I should profess the ability to work smartly comes with experience. Work smart should be the mantra.
If clients find out that your software is inefficient and you have cheated trying to increase number of lines and consequently their bill.... they would definitely not pay you the amount you claim.

Snapshots:



Here is the source.