Search Projects

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

System will automatically install the necessary files which you need to run the OpenGL programs in Ubuntu.

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:
 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 :

Use the following command and create the file, as done with usual C/C++ program in Linux.

./test 
gcc -lGL -lglut test.c

than run using this command 
./a.out 

If you have any difficulty in installing opengl in linux ubuntu kindly comments in the commention section below. We will let you solve the all the issues related to installation of  opengl in linux ubuntu .

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