Glass Cracking Computer Graphics Project in OpenGL Source Code – 18CSL67
Here you can download Glass Cracking Computer Graphics Project in OpenGL – 18CSL67 Source Code for an academic mini-project.
Project Description:
This mini-project demonstrates how glass cracking happens. In this project, we have used three objects such as sphere(ball), cube(glass), and lines(cracks). The sphere is drawn by using the standard API glutSolidSphere(). The cube is drawn by using the vertices and each vertex is having different color so the colored cube is get displayed. Our project demonstrates that when the ball falls on the glass the glass is cracked means some lines are displayed on the glass.
Some of the operations that are used to implement the “glass cracking” are:
The front page is created to introduce about mini-project.
Instruction page created to introduce key which is used to operate.
Creating the cube (glass) that is placed at the bottom position by using glTranslatef().
Creating the sphere (ball) by using glutSolidSphere() and it is placed at top position using glTranslatef().
To fall the ball on the glass mytimer() function is used.
To increase the ball speed we are using the “i” or “I” key of the keyboard and to decrease the ball speed either press key “d” or “D” key of the keyboard.
When the ball falls on the glass the glass will be cracked and that is done by using glBegin(GL_LINES); Where some vertices are used to draw the lines.
When we press the right button of the mouse the menu is displayed. There are two menu entries “quit” and “color”. We used three colors red, green, blue and the color is related to the sphere only. When clicking on red or green or blue the color of the sphere changes not the color of the cube.
Flowchart of Glass Cracking Computer Graphics Project
Screenshots of Glass Cracking Computer Graphics Project
Instruction page
Intil Position of glass
Glass position after ball hitting
You may be interested in other projects:
Airplane Computer Graphics and Visualization Mini Project in OpenGL – 18CSL67
Additive Color Model Computer Graphics (CGV) Project in OpenGL – 18CSL67
Aquarium Computer Graphics Project in OpenGL Source Code
Warli Painting Computer Graphics (CGV) Project in OpenGL Source Code
2D Rotation Computer Graphics Project (CGV) in OpenGL Source Code
Rotating Circle Computer Graphics (CGV) Project in OpenGL Source Code
Fog Test Computer Graphics Project (CGV) in OpenGL Source Code
Dora Catch Game Computer Graphics (CGV) Project in OpenGL Source Code
Twin Cars Game Computer Graphics (CGV) Project in OpenGL Source Code
Flying Ball Computer Graphics (CGV) Project in OpenGL Source Code
Demonstration of Helicopter Computer Graphics (CGV) Project in OpenGL Source Code
Toll Collecting Computer Graphics (CGV) Project in OpenGL Source Code
Analog clock Computer Graphics (CGV) Project in OpenGL Source Code
Geometric Operations Computer Graphics (CGV) Project in OpenGL Source Code
Aeroplane Computer Graphics (CGV) Project in OpenGL Source Code
Bouncing Ball Computer Graphics (CGV) Project in OpenGL Source Code
Rotating Flower Computer Graphics (CGV) Project in OpenGL Source Code
Glass Cracking Computer Graphics (CGV) Project in OpenGL Source Code
Running Trains Computer Graphics (CGV) Project in OpenGL Source Code
Bricks breaker Computer Graphics (CGV) Project in OpenGL Source Code
Fighter Jet Computer Graphics (CGV) Project in OpenGL Source Code
Car Parking Computer Graphics (CGV) Project in OpenGL Source Code
Archery Game Computer Graphics (CGV) Project in OpenGL Source Code
3D House Computer Graphics (CGV) Project in OpenGL Source Code
2D Game Computer Graphics (CGV) Project in OpenGL
Subscribe to our YouTube channel for more videos and like the Facebook page for regular updates.