Tuesday, December 16, 2014

Opengl Source Code Ship Iceberg Collision

There are many interest events happened in past. One of them was tragedy of Titanic. The Ship Iceberg Collision led to shrink of huge big ship along with many crew members and passenger. Based on this we are giving Opengl Source Code for Ship Iceberg Collision. This mini projects in computer graphics going to demo the accident of collision of ship with iceberg.


In Previous posts we have shown opengl programs for Solar System, Taj Mahal, Traffic Signals, Networking base projects, some study based projects.There were Opengl Source Code for robots but for moving trains, nuclear power plants, Zoo etc. We have shown story related program like - story of hare and tortoise in computer graphics. But is something related to a real life event which was not shown earlier.

The Titanic Ship (RMS Titanic) was a large ship on 15 April 1912 Shrink due to collision with iceberg. This 269 m ship weighing 52,310 tons on it's maiden voyage scheduled to go from Southampton to New York City. The Ship shrink and around 70% of people we lost. This opengl programs shows how collision of ship with iceberg lead to shrinking.

In this graphics project there is simple ship and a large iceberg. The ship move forward automatically, collides with iceberg and shrink stateway. Though it should contain some passenger in it but for simplicity, it was avoided. There is no functionality added to it with either keyboard or mouse but you can edit Opengl Source Code to adjust a according to your's. 

The only interaction added to the project is the front page where, HTML button is placed, clicking on it will open next screen. It is similar to the opening of a web page clicking on a button. Try Modify it and make more complicate as well as interactive, tell us and publish it with your name.

Download the Opengl Source Code for this project.


Tuesday, November 25, 2014

How to install opengl in linux ubuntu

Executing the OpenGL Programs in Windows is quite easy as compare executing it with the Linux OS. You just need to install the Visual studio in windows machine and paste the right file in proper folder. But in Linux (Ubuntu) that not as easy, this is thought of many students.While this wrong assumption, Linux may be little hard to execute as it need more a programmatic approach rather than a simple use of GUI. There are many of students feel difficult to install the OpenGL/Glut libraries in Ubuntu or any Linux. Here we are going to learn how to install the OpenGL/Glut libraries in your Desktop or PC to execute the OpenGL Programs in C/C++ Computer graphics.

How to Install OpenGL/Glut libraries in Ubuntu/Linux

Download OpenGL/Glut in Ubuntu/Linux:

1. The first step is to open terminal using CTRL+ALT+t command.

2. Now install the development libraries of OpenGL/Glut in Ubuntu(paste the below command on terminal):

sudo apt-get install freeglut3 freeglut3-dev

3. For newer versions of Ubuntu (>= 11.10) you have to install another package because the linker does not link anymore(paste the below command on terminal):


sudo apt-get install binutils-gold

Note: If you are not administrator then, you need to ask for sudo permission.

Note:
 If we are running any openGL code using simple command


4. Now create any c file(for example test.c) and compile :

gcc -lGL -lglut test.c -o test

5. Run the program

./test 

gcc -lGL -lglut test.c

than run using this command 

./a.out 

If you have any difficulty in installing kindly comments will let you solve the issues.

3D City Model Computer Graphics Project for VTU

Computer graphics has vast applications, one of them is creating the 3D model of objects. Keeping that in mind we presenting this mini projects for VTU students. The 3D City Model in Computer Graphics using c++ is great Project for VTU students seeking for a good mini projects submission in their course.


This projects simulates the 3D art of a city. The city is big so only a small portion has being created in the form of various 3D objects using computer graphics. You can clearly see the 3D objects in the image above - the buildings, trees, flagpole, roads and small houses. These objects together comes to form a real like society. There are many things can be added to this which is left for students to do in their own ways.

Do some additional modification with your own creative ideas like boundary covering whole society, few cars,moving peoples and so. Do add your creative to this  3D City Model Computer Graphics Project for VTU and comments below.


Monday, November 24, 2014

Egg Game Computer graphics with OpenGL

Computer Graphics has core importance in the development of games. We have seen so many game on this site. Today also we are going to see the interesting loving game. It is simple, easy to play as well quite easy to code it, present to you the Egg Game Computer graphics with OpenGL. As name suggest, game is related to egg. We are going to discuss the whole things about it in details.

Suggested Games Projects - Computer graphics with OpenGL

Ludo Board Game
Hawk Eye Cricket
Path Finding Game
Crab Pong Game
Minesweeper Game


As You can see in above image, the Egg Game has a bird, egg and a basket. The bird will lays the eggs and which need to be catch by basket. Simply, catch the egg or let it hatch.

Objective -  Catch the egg in basket before it fall and get hatched

How to Play - Use the S/s to start the game or Click Right mouse button then click 'Start Game'. As game stated birds(3 in number) will lay the eggs in certain speed depends on level. Move the basket with the Left mouse button  and catch the egg in it. Score by catching the eggs and go to next level. The level changes automatically as you score cross the mark set for the particular level. Speed of the egg going down doubles as level changes.

To quit the game press the Q/q  or Click Right mouse button then click 'Quit'.



Scoring -  There are different score for collecting different eggs.

White Egg = 01 point
Green Egg = 10 points
Orange Egg= 05 points
Pink Egg = 15 points

Special Collections

Bonus Points - Yellow egg = 100 points
Negative Points - Gray Egg = -50 points

Hope you liked the Egg Game Computer graphics with OpenGL. Post your comment about it and say anything you like or give suggestion to us.

Buy this amazing project by calling 8147656011.

Saturday, November 15, 2014

Blockshooting Game OpenGL Projects in Visual Studio

Today I am going to present a great game project in computer graphic. The Blockshooting Game OpenGL Projects in Visual Studio C++.

We have written so many projects with graphics in c++ programs - the real time implementation of concept learned. These graphics programs in c++ teaches us to play with surrounding objects in our computer. Games we play based on computer graphics, we all love them. Let make our self a great game projects in computer graphics. Let Create a interactive Blockshooting game in OpenGL Computer graphics.


GameBlockshooting Game
About :  The game is a very simple shooting game. With number of available arrow the target is to be shoot down. The speed and no. of arrow and the target is fixed (which can be alter in the code). There are 15 arrows and 10 boxes by default.
Objective : Hit the box with the arrow before the allocated arrows ends.
How to play : Press 'r' to as arrows go upward, to hit the target.
Result : If you get arrows left with you before all the target box ends, you win else you declared losers i.e. You loose the game if the arrow count exceeds the blocks count.


Click to Download button for the sourcecode of BlockShooting Game