Wednesday, September 23, 2015

Video Demo for implementation of OpenGL Minesweeper

We have tried to figured out many classical implementation through the knowledge of OpenGL and Computer graphics. We have done so many opengl games programs and toady we are going to see another one.

In the previous OpenGL Minesweeper program there are many flaws which cannot be seen in this new program. This OpenGL Minesweeper projects have so many different features that make it worth doing. It. 

Some of the Features of OpenGL Minesweeper - 

  1. Large area of the board.
  2. Number are more clearly visible within the boards.
  3. Different colors being used in the program.
  4. Easy Navigation with the 4 up, down, left, right navigation key.
  5. Game is more colorful version of OpenGL Minesweeper.
Now you have seen this wonderful program and know about some of it's feature. It is better you do in your own way. It would be an idea for you 6th sem vtu student to implement such a great idea for your mini project. 

Watch the Demo below for OpenGL Minesweeper - 


Wednesday, September 9, 2015

VTU CG Lab Projects Report for Clock Programs

Many of the VTU 6th sem students doing mini projects in computer graphics, are looking for CG Lab Projects Report. Though it is difficult to give all the CG Lab Projects Report for all the projects. When ever the source code or the report is available to us, we share with you. 
In most of the cases we try to give the source code and report free but when we have to create the new report or code we have to invest the time. Since we are investing our valuable time so we are charging little amount for CG Lab Projects Report from you.  

Any one looking for CG Lab Projects Report Contact 8147656011 or email at, for just at Rs 500.

We have posted the CG Lab Projects on Clock and we are giving you the Report and the PPT for this. The report contains 11 chapters including the essentials snapshots. Download the Project report and power point presentation for the Clock program.

Below is some content for the Clock CG Lab Projects Report.

               This project has been designed such that it works on the windows platform. The project can be designed using different languages and better graphical interfaces. The following features can be incorporated.
ü  A simple monthly calendar can be displayed along with the clock.
ü  A simple digital timer can be implemented.
ü  Better graphical features like options for the user to change the clock’s color and shape of the clock.
ü  A different style for the digits on the clock, for example, Roman Numbers.


Note  - This Report and PPT is submitted by DHRUVA  M (1AY10CS017) of ACHARAYA INSTITUTE OF TECHNOLOGY. Thanks for this!
Kindly submit the Reports and PPT and even Source Code with you to help other students.

Monday, August 31, 2015

Bubble Shooter Game Computer Graphics Programs in C

We have shown many Computer Graphics Programs in C but this is special one. This is the Bubble Shooter game written with the use of  OpenGL. You might have played Bubble Shooter game online and would have liked it very much. Do you want to have the bubble shooter games online free play? If yes we have the game out here. This not only free to play and kill time but you can submit this as your mini project in your college.

Bubble Shooter Game Online - Computer Graphics Programs in C

The Bubble Shooter game has two version which is totally written in C. This Computer Graphics Programs in C have exactly the same as you have Bubble Shooter game online. You might want to develop this game and learn to make it more interesting and innovative. Do you want to submit a game project as your cg lab project then I would like to suggest this. It is not only interesting but will let you learn almost all the concept of OpenGL while knowing about how it works.

Features of the Computer Graphics Programs in C

Most important feature of these Computer Graphics Programs in C is that there are two version of Bubble Shooter Game, each with different codes. These codes are written in C language and programmed, debugged, tested in the integrated development environment (IDE) MS Visual Studio.

First version of Bubble Shooter game is simpler one. In this the player have to use both Mouse and Keyword for playing the game. Click the left mouse button to and give direction and press the spacebar to release the bubble. Player can change the screen color or background with options appear via the right click of mouse.

The second version of Bubble Shooter game is better than the first one and it utilized the navigation keys. Player have to use the both left and right navigation key to give direction, for releasing the bubble it's again the spacebar. I feel the second one is better but both these Computer Graphics Programs in C pointing to a good goal. It's your wish to choose either or both for presenting the mini project.

Download the Executable of the both versions Computer Graphics Programs in C.


Advance Traffic Signal C Source Code Projects

OpenGL from CGI has many feature that make it one of the best graphics API. VTU had one of the subject dedicated to the OpenGL Computer graphics, the lab for it as well. The CGV lab projects is written in c/c++. Earlier in the blog we posted many C Source Code Projects including the cgv projects for 6th sem cse about traffic signal. Today in this post we are going to show your Advance Traffic Signal project.

Features of the Projects

This C Source Code Projects have many of the good features. We are listing the features below -

  1. Traffic light with three signals.
  2. House with tree and lake around it.
  3. Cloud and Sun in the Sky in the day while moon in the night.
  4. There are few vehicles that cross the road with signal installed.
  5. There is user interaction to change the signal color.
  6. User can choose between day and night.
  7. The airplane and comet in the sky can be sought by user.

User Interaction

As all the good projects have a great UI, this C Source Code Projects also have it. There is following UI that help make the project a better option for you to choose for the CGV lab projects. 

Mouse - 
  • RIGHT MOUSE BUTTON to display menu.
  • Choose from SubMenu - 1. Aeroplane 2. Comet
  • LEFT MOUSE BUTTON to quit the program
Keyboard - 

  • Press 'r' or 'R' to change the signal light to red.
  • Press 'g' or 'G' to change the signal light to green.
  • Press 'd' or 'D' to make it day.
  • Press 'n' or 'N' to make it night.
Download this C Source Code Projects in OpenGL.


Tuesday, August 25, 2015

OpenGL ES Tutorial for Android - draw triangle in OpenGL ES

How to draw a triangle in Android OpenGL ES?

There are about billions of Android devices activated till date, and more will add to the list in coming days. These billions of devices have so many of games which uses the graphics to render the objects. These games use OpenGL API to show high performing graphics game.  These games are developed by designers, programmers, developers and others, but to begin this we need to start from a small step. Hence in this OpenGL ES Android tutorial we are going to learn how to draw a triangle in Android OpenGL ES.


For this OpenGL ES Android tutorial you must know the OpenGL, basic Java, and about  Android Programming. Also your system should have the Android Studio (or Eclipse with ADT Plugin) and Android SDK installed. This Android game Development tutorial will use Android Studio.

Creating the new Project

1.       First Step in this OpenGL ES tutorial is to create a new project without any activity.
2.       Next we need to create 3 classes (3 separate java files) - “” , “” and “”. These classes are essential for almost all OpenGL ES programming in Android. You can name them a Renderer, SurfaceView or whatever but it is good practice to do like this, it will help in understanding the files.

Main Activity

3.       In the MainActivity we are going to check if Android device support OpenGL ES with specific version. For this check out our previous OpenGL ES tutorial for Android.


4.       Extend the MainSurfaceView with GLSurfaceView and create the constructor in the class. Also include all required imports. Following is the code snippet -

package in.ruks.openglobjects;
import android.content.Context;
import android.opengl.GLSurfaceView;
public class MainSurfaceView extends GLSurfaceView {
    public MainSurfaceView(Context context) {


5.       MainRenderer class will implement the GLSurfaceView.Renderer.  Call all the unimplemented methods in the class. Check the code below –

package in.ruks.openglobjects;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
public class MainRenderer implements GLSurfaceView.Renderer {
    public void onSurfaceCreated(GL10 gl10, EGLConfig eglConfig) {

    public void onSurfaceChanged(GL10 gl10, int i, int i2) {

    public void onDrawFrame(GL10 gl10) {

We are going to render our object here in this class and draw the object. 

Our Triangle Class

6.       Next Step is to create a new class, name  it “”.  This is the class where we are going to define vertices for our object (which is triangle). Here are going to define color for the vertices as well. We have to create buffer for each.
private FloatBuffer vertexBuffer;
    private float vertices[] = {
        0.0f , 0.5f,0.0f,
        -0.5f , -0.5f, 0.0f,
        0.0f , 0.5f, 0.0f
    private float color[] = new float[]{ 0 .0f ,0.5f,0.0f,1.0f };  
First we have defined the buffer, which will contain the vertices. Next we have defined the vertices for each side of the triangle.

Final Thought

Reference ConfigurationInfo.html