Search Projects

Wednesday, April 30, 2014

Flowing Fountain OpenGL Projects using c++

Everyone likes the fountains, so today I am going to present OpenGL Projects using c++ on it. In the perspective of computer graphics creating the fountain is a uphill task. There is need of many items in the project design either it's holding the water, the flow of water and the water reservoir. Rendering these is tough task to make fountain look real. Most important point is to take care of rise of water upward, it's angle of falling in parabolic fashion. 

Use of OOP

This Computer graphics project for VTU 6th sem students on fountains has used the concept of OOP  (Object Oriented Programming) principle in some aspect. It is C++ project rather a normal cproject. The use of Class and the object in only used for the fountain's water fallings, while rest was under normal functions. The OOP principle is basically used in the water drops, steps of fountain, speed of fountain etc.  A fountain has several steps, each with its own height.

Some Great Features

Seeking for a great OpenGL Projects using c++, then CG Project on Flowing Fountain is one stop for you. Apart from the design and functionality that make the fountain looks real there are many additional features in this computer graphics project. Some of the extensive feature are - 
  • There are 3 Page with callback for each - Front Screen, Help Page and the Project Page.
  • View Defined in the Project - Top and Front.
  • Random Color of water can be there in fountains.
  • Both Keyboard and Mouse Control for Users is added to this Project.
Keyboard Control (Mentioned in Help Page) - 
KeyFunction
nMove Near
aMove Away
uMove Up
dMove Down
tTop View
fFront View
hOpen HELP
bOpen MENU
Menu Key Functions -
KeyFunction
1Project
2Help
3Exit
4Front
Mouse Interaction (Act in Project Page)-
Right click to gain the menu.
  • Color
    • Random - Random color of water
    • Blue - Green Color water
    • Green - Yeah Water color is blue
  • Help
    • KEYBOARD CONTROLS
    • Move Near: n
    • Move Away: a
    • Move Down: d
    • Move Up: u
    • Vertical 360: x
    • EXIT
If you liked the Flowing Fountain OpenGL Projects using c++, kindly put comments. Also suggest some changes that need to be added to this project. You can submit modified version of this project to us(Publish it with your name). Download the free opengl source code from below.

Watch the Video Demo

Monday, April 21, 2014

Client Server VTU 6th Sem Project

The Client Server Projects on computer graphics is a networking based project. This vtu 6th sem project indicates the working of client and server request and response. This Project is submitted to us by two students who has presented this as their  CG Lab Project in College.  In similar way if you have projects you can submit it us via our project submit page. They don't want to have the name but you can have project published with your name. Became either author or just get a coutsery.



What we have in this projects?


We have a client  and a server. The client give the command to server, it then get the response of that command from server. As the response is received by the client it then send the data to server. This is the main function of this project.

There are another function of the server - storing the data which we seen earlier and giving the data on request. So we can retrieve the stored data with retrieve menu. Store the data with store menu. List is another function. Major interactions for the VTU 6th Sem Project are listed below.

Mouse Interaction

There are 5 major Menu added to this project via mouse click. You can get the menu via right clicking!

1. START - Simply proceed the data with request and response.
2. START 1:RETRIVE - It helps retrieve the stored data from the server.
3. START 2:STORE -  It store the data to the server.
4. START 3:LIST - Listed the data to and from the server.
5. EXIT - Quit from the server.

VTU 6th Sem Project Source code download 

Before you download the source code read a bit about it. First of all what ever this project work, it is a good Networking Based Project. This good computer graphics project has designed well the Computer CPU, Monitor and the Server. It has good interaction as well. Hats off to those student who submitted it.


Thursday, April 17, 2014

CG Mini Project on Flying Ball

Inspite of having many projects listed here, many students were asking about bouncing ball  project. With regards to that presenting you the CG Mini Project on Flying Ball. This project is some what different from the bouncing ball because it the ball is not bouncing up down rather it stays in air due to fan. This project can help people in coding the bouncing ball on the same platform.

Features of the Flying Ball Project
  1. There are 3 components involved in this project - Ball, 4 bladed fan and the big net covering them.
  2. The big net is like funnel and is beautifully rise from the bottom to top covering both the ball and the fan.
  3. The fan is in the middle which mean to give air so ball can fly at the top.There is option to stop running the fan. As the fan stops the ball also stop spinning in the air. 
  4. As describe in the previous Ceiling Fan CG Mini Projects, we have added the 4 different background for the front screen and more can added easily.
CG Mini Project on Flying Ball

Keyboard Interactions:
KeyAction
1Default Front Screen
2Front Screen - White
3Front Screen - Brown
4Front Screen - Green
bFlying Ball
BStop Flying Ball
q/QExit Project
Mouse Interaction : 

Right Click and Choose from the menu
1. Flying ball - Take to the page with ball flying in air
2. Quit - Exit from the project

Learn How to add Front Page to your Project  for better interaction.

Improvement in the Project - Well I like to say you can turn this as a game play. Add a timer which will start the game, so on clock tick to 0 player start accelerating the fan in air. For Every minute 10 key press to accelerate allowed to player. As ball fall down player finished the game. Calculate the score with the time the ball remain in air.

Video for the Project -


Download the full source code.

Monday, April 14, 2014

VTU CG Lab Projects on Ceiling Fan

VTU CG Lab Projects on Ceiling Fan is created and designed as a part of B.E 6th Semester. As mentioned in Solar System Project this is in course under VTU for Computer Graphics Laboratory. It is great to develop this project by 6th sem vtu students for submitting in their college. Below We can have different features that this CG Lab Projects shows -

Front Page of CG Lab Projects on Ceiling Fan



The front Page for this VTU CG Lab Project is quite simple and have many options in itself. The picture above told you much about the project. At the place of  "Your Names Here" the projects co-ordinate names should be there. Capital letter "C" when pressed will lead to running, continue pressing the same cause speed variation of the running Ceiling Fan. The small letter "c" will let to static Ceiling Fan. 

Also Try Downloading these -

OpenGL Taj Mahal Project
Cg projects on Sorting
Origami Computer graphics Projects

The background this projects are in 4 different colors, these can be accessed by press the numeric key from 1-4. Detailed of color and the key is mentioned in the front page. Additional colors can be added to project as well which you can see in the video, how to add it.


Functionality of the Project

In this VTU CG Lab Projects there are many things being used. First is the use of vsprintf,  glutStrokeCharacter and buffer techniques to display the fonts. The design and coding of fan is not that easy but the is use of glutSolidSphere make it easily.

Other functionality is easy just simple logic to increment the speed of fan blades and stop it. Same procedure to add the keyword and the mouse function. You may remember how to add menu in opengl - same here it is used in this project.

Improvement in the Project

There are minor and major improvement can be done in this project as well.

  • Improve the front page.
  • Add additional interaction through keyboard and mouse.
  • More backgrounds in the ceiling fan with rooms and so.

Download the Source code.

Monday, April 7, 2014

Computer graphics Projects Selective Repeat Arq

In this Networking based Computer graphics Projects, we introducing again the Selective Repeat Arq. It is the modified version of the earlier Networking based OpenGL Mini-Project : Selective Repeat ARQ.



Selective Repeat Arq is good project based on the networking algorithm. It has the functionality shown in  manner to show case how the data transmission occurs in network.It deals with all the aspects, conditions that actually happens to transfer of data from the source to destination.

Ask for the Source code in Comments. Don't put your email directly there, I will not take responsible of misuse of emails for spamming purpose(we, the OpenGL Projects Team members, do not share spam emails to you but others can).  I will share to you though the admin panel. Also kindly comment with good working email address. Hotmail is not allowed? If possible signed with Facebook, Twitter or Google plus. Don't repeat the comments for asking the code. You can modify and share this like we have now the other projects as well. Thanks

Tuesday, April 1, 2014

Running Train Opengl Projects Example

Creating a Train in Computer graphics is not that much hard but logical. In this post we are going to see an OpenGL Projects Example on trains. Our objective is to develop a simple cg projects for running train. Here we need to draw the following things -
  • Train - the bogies and the engine
  • Train Tracks
  • Sky with surrounds (Environment)
After we finish the drawing our next aim would be to give motion to the train. As we are going to draw a simple train so our track will be a straight not in zigzag manner.

Running Train Opengl Projects Example

Design and Implementation


For developing the train - it's bogies and engine we have defined a simple function. In this simple opengl projects example we are coding this function so we can make any no trains, by just calling it. The following is sample code for drawing train -

void TRAINS(int x1,int y1,int a,int b) 
{
int i=0; glBegin(GL_QUADS); 
glColor3f(0,0.0,1.0); //ENGINE 
glVertex2f(x1,y1); //lengh of engine=60;height of engine=30; 
glColor3f(0,0.0,1.0); 
glVertex2f(x1+60,y1); 
glColor3f(1.0,0.0,0.0); 
glVertex2f(x1+60,y1-30); 
glColor3f(0,0.0,0.0); 
glVertex2f(x1,y1-30); 
glEnd();
while(i<3)
glBegin(GL_QUADS); //BOGIES 
glColor3f(1.0,0.0,0.0); //For right train a=795,b=510 
glVertex2f(a,b); 
glColor3f(1.0,0.0,0.0); 
glVertex2f(a+60,b); 
glColor3f(1.0,0.0,0.0); 
glVertex2f(a+60,b-20); 
glColor3f(1.0,0.0,0.0); 
glVertex2f(a,b-20); 
glEnd(); 
a+=65; i++; 
}
}

This function can be called any where hence easy to create the sample trains. In similar fashion we have different functions for Sky, Environments and Tracks.  You can download the free cg source code below. All the things made in the opengl projects example have used primitive opengl objects.

Next level of difficulty  is to move the whole Train - bogies and engine. For the motion of train we have logically used the call-list, push-pop matrix and the most important  Clock() function. The clock() is defined in <time.h> header so you need to include it as well in the project.

clock_t goal = mseconds + clock(); while (goal > clock());

Our new function will help the train runs according a time level else we may go so fast or so slow. We have fixed a goal and add  certain time for it to move the objects. The above code is called in a function and we give the parameter mseconds according to our requirement of speed we want.

That's all we finished the things up. I have just summarised the Running Train Opengl Projects Example while you can easily understand the things when you start running the program.

You can improve Opengl Projects Example


How you can improve the running train projects -
  • Make the trains more attractive with your creative mind.
  • Add smokes coming from the engines while it runs
  • Use Keyword or Mouse function to make it more interactive for start, stop and other functions
How you Liked this simple cg projects example on trains please let me know through the comments. 

Download free cg source code