Friday, 24 March 2017

Computer Graphics- 16. MEMORY BLOCKS GAME USING OpenGL

Memory Blocks Game using OpenGL



IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT MEMORY BLOCK.

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on Memory Block and the implementation and demonstration of Memory Block using the computer graphics and OpenGL API.

A memory game in which a few blocks have objects with different colors hidden behind. Move the focus on to an object and press enter to uncover it. As soon as you move to another block this uncovered block gets covered. You have to uncover two blocks with same object hidden behind to clear both the blocks. This is a time based game. Faster the board is cleared the higher the points.

Snapshots:






Description:  Program to demonstrate the Memory blocks Game,  in which user need to remember  the inside  pattern  of  cubic block and then match with inside of another cubic block in continuous two step. This program helps in learning to generate random shapes

USAGES: Only keyword Control is allotted which are listed below


Startup: Press Spacebar to initiate the game.

Navigation:  Upper arrow key to move up, down arrow key to move down and right and left arrow keys to move rightward and leftward respectively.
         
         Help: Press x for help during the game play.
         
        Quit: Press Esc key to quit the game.


All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single hand can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 for code and/or Rs. 200 for Report on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

Computer Graphics- 15. Time Zone Using OpenGL

Time zone using OpenGL


IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT TIME ZONE(CLOCK).

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on Tme zone and the implementation and demonstration of Tme zone using the computer graphics and OpenGL API.

Time Zone is considered as area particularly a Country which have Uniform time cross the region. As we have in India IST (Indian Standard Time) which is +5:30 Time from UTC(Coordinated Universal Time). Today we are going to talk about opengl c++ projects on the Timezone. The idea behind this project is to show the time for different time zones.

Features of Time zone OpenGL C++ graphics projects

  • Display Time for 6 Time zone while further time zones can be added with little alteration in the code.
  • Default Time zone is set to India.
  • We have Clock also working with the time zones.
  • Display time in digital with clock along with date, indicating time offset of that time zone.
  • Keyboard and Mouse interaction to switch between the time zones. 
Earlier we had also published opengl mini project on clock in which clock and local time was shown. In this OpenGL C++ graphics projects we have made little advancement. Almost all the functionality of the previous projects can be found beside some new features. There was only one time was shown there, but now we have time for different time zones. Additional functionality of Switching between the time zone is added to the project.


This c++ graphics projects timezone computer graphics project for vtu students focused on computer graphics through opengl. VTU student can submit this mini project as original or with modification. While this is specially for VTU students but other university students can also get benefit from the source code

All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single hand can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

Computer Graphics- 14. Car Race Game Using OpenGL

2D Car Racing Game using OpenGL


IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT CAR RACE.


Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

 

In this post I am going to show the OpenGL code on CAR RACE and the implementation and demonstration of CAR RACE using the computer graphics and OpenGL API.

 

We all Like Game and most engineers are used to games on PC not because they want to play but they want other to play it as well. Bike or Car Racing games are one of favorite of every engineers. I might think most of you also like playing those racing games. In my days of college I had my hands on "Needs for Speed". I had played it several times alone and with my friends. In our College we had competition for it, do this happens in you college also? Tell us in your comments.

You all might thinking why I talking about it?

Well Today's projects is about Car Racing Game we are going to develop a 2d Car Racing Game in OpenGL.  We had already seen formula one car racing opengl game project in our previous post. Though compare to that project this is little easy to do as well as has less no of lines of code.  In that project we have different angle of views but here we don't have. Also there track were as in real formula one race with turning while in this, we have simple road. This project has one advantage that there is scoring system in it. You will find this more adorable, enjoyable and sophisticated.

 

 Different Options for 2d Car Racing Game OpenGL Projects

View the following Code  OpenGL C++ Program executed in Visual Studio. 

void Specialkey(int key, int x, int y)
{
switch(key)
{
case GLUT_KEY_UP: 
for(i = 0; i <4; i++)
             {
              ovehicleY[i] = ovehicleY[i] - 10;  
             }
             movd = movd - 20;
             break;
case GLUT_KEY_DOWN: 
for(i = 0; i <4; i++)
             {
              ovehicleY[i] = ovehicleY[i] + 10;  
             }
             movd = movd + 20;
             break;
case GLUT_KEY_LEFT:vehicleX = 200;
             break;
case GLUT_KEY_RIGHT:vehicleX = 300;
             break;
}

glutPostRedisplay();
}

It is special key function,which allows us to activate the navigation key for the 2d Car Racing Game OpenGL Projects, helps in moving the car left to right and vice-versa along with speed up and down. We don't have the ASCII code for navigation key which can be viewed in Wikipedia. In the glut.h these special function defined for the arrow key or navigation keys.

Color of the car can be easily changeable, set the RGB value and see yourself. Same is true with the screen or road side but road should be either change to black and stip mark in white color to make it real or default as set in the programESC key press at any time quit the program.

Most of the objects drawn in this race game opengl program are either rectangle or quadrilateral, mean purely the primitive objects. Code is easy to understand as comments are there. Hope you enjoy this C++ graphics program.


All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single hand can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

Computer Graphics- 13. TIC TAC TOE Game Using OpenGL

Tic Tac Toe : Cross Zero Game using OpenGL

IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT  TIC TAC TOE GAME.

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on TIC TAC TOE and the implementation and demonstration of TIC TAC TOE using the computer graphics and OpenGL API.
  
Abstract : Tic Tac Toe is one of the simple game, which is also called as noughts and crosses but in our local terms we called it as cross-zero game. Other may say differently this game but things are same. It is a pencil-and-paper game for two players, where player select X and O, as their playing item. It is played on the grid of 3×3. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game.

Description : The grid is structured mapping the objects in the array while each have some value to them. Next is the X and O which are simply made by using cylinders and tours. Then mouse variables, Win = windows size, mouse = mouse position  are defined to keep record of click on the grid. Now time is to declare the players to keep track them, player and com is given a value which determine them. The win and start game is given a value so to keep who wins the game and where to start from with considering tie as another option. 
Logic was made as Computer seek the spaces and determine where to keep the next move. Computer move is what made the logic how it play the move on the board by check at the corner and in the middle space.

User interactions :
 First time Computer is given a move show use can either follow it or right click to choose whether to play as X or with O.
Press V to toggle between the ortho to perspective views.



All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single hand can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 for code and/or Rs. 200 for Report on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

Computer Graphics- 12. 2D Car Race Using OpenGL

2D Car Race using OpenGL


IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT 2D CAR RACE.

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on 2D CAR RACE and the implementation and demonstration of 2D CAR RACE using the computer graphics and OpenGL API.

Like in video game, Car race, we have seen the cars are shaped in rectangular shape. The black meter lined road is coded on which the cars raced. There are 6 lanes in the road on which racer have to move with care to avoid collision. 



Earlier in our many game programs we have much impressive menu or instruction for user. This opengl program also display the menu while game being played. You can see in the image above. The score is also written at the top.


HOW TO PLAY

In menu the basic instruction has been shown but many skipped due to low area to display text. All the other user interaction of this opengl program are mentioned below - 

Start and End
s  - start the game
q - quit the game and exist the program

Color change
Change the track and background color (when game end and show shown).
0 - to white
1 - to red
3 -  to blue

Game Play
2 - down or de-accelerate
4 - toward left
6 - toward right
8 - up or accelarate

Note : In this OpenGL program we have used the glutStrokeCharacter

NAME
       glutStrokeCharacter  -  renders  a  stroke character using OpenGL.

SYNTAX
       void glutStrokeCharacter(void *font, int character);

ARGUMENTS
       font      Stroke font to use.

       character Character to render (not confined to 8 bits).

DESCRIPTION
       Without using any display lists, glutStrokeCharacter  ren
       ders the character in the named stroke font. The available
       fonts are:

       GLUT_STROKE_ROMAN
               A proportionally spaced  Roman  Simplex  font  for
               ASCII  characters  32 through 127. The maximum top
               character in the font is 119.05 units; the  bottom
               descends 33.33 units.

       GLUT_STROKE_MONO_ROMAN
               A  mono-spaced  spaced  Roman  Simplex  font (same
               characters as GLUT_STROKE_ROMAN) for ASCII characte
               ters  32 through 127. The maximum top character in
               the font is  119.05  units;  the  bottom  descends
               33.33  units. Each character is 104.76 units wide.

       Rendering  a  nonexistent  character  has  no  effect.   A
       glTranslatef  is  used to translate the current model view
       matrix to advance the width of the character.


All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name.It is a humble request as I single hand can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

Computer Graphics- 11. Stack and Queue Using OpenGL

Implement Stack and Queue using OpenGL


IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT STACK AND QUEUE.

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on Stack and Queue and the implementation and demonstration of Stack and Queue using the computer graphics and OpenGL API.

User can choose the operation and performs the task of Either Stack or Queue. The push, pop  can be perform in Stack, while insert, delete can be done on Queue. With the input from the user the task is perform and is based on the button pressed.



All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single hand can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.