Mine Sweeper Computer Graphics Mini Project in OpenGL – 18CSL67
Download the source code of Mine Sweeper Computer Graphics mini Project in OpenGL for computer graphics and Visualization laboratory with mini-project – 18CSL67.
This mini-project demonstrates a simple game of Mine-Sweeper. Minesweeper is a single-player puzzle video game. The objective of the game is to clear a square board containing hidden “mines” without detonating any of them, with help from clues about the number of neighboring mines in each field. The game is played by revealing squares of the grid by clicking each square. If a square containing a mine is revealed, the player loses the game. If no mine is revealed, a digit is instead displayed in the square, indicating how many adjacent squares contain mines; if no mines are adjacent, the square becomes blank. The player uses this information to deduce other squares’ contents and may either safely reveal each square or mark the square as containing a mine by placing a flag.
Computer graphics are no longer a rarity. It is an integral part of all computer user interfaces and is indispensable for visualizing 2D, 3D, and higher-dimensional objects. Creating 3D objects, rotations and any other manipulations is a laborious process with graphics implementation using a text editor. OpenGL provides more features for developing 3D objects with few lines by built-in functions.
The geometric objects are the building blocks of any individual. Thereby developing, manipulating, applying any transformation, rotation, scaling on them is the major task of any image development. Thereby we have put our tiny effort to develop 2D objects and perform different operations on them by using OpenGL utilities.
The existing system involves computer graphics. Computer graphics started with the display of data on hardcopy plotters and cathode ray tube screens soon after the introduction of the computer itself. It includes the creation, storage, and manipulation of models and images of objects.
These models include physical, mathematical, engineering, architectural, and so on Computer graphics today are largely interactive –the user controls the contents, structure, and appearance of objects and their displayed images by using input devices, such as keyboard, mouse, or touch-sensitive panel on the screen. Interactive computer graphics is the most important means of producing pictures since the invention of photography and television.
In the proposed system, OpenGL is a graphic software system designed as a streamlined, hardware-independent interface to be implemented on many different hardware platforms. To achieve these qualities, no commands for performing windowing tasks or obtaining user input are included in OpenGL; instead, you must work through whatever windowing system controls the particular hardware you’re using.
OpenGL doesn’t provide high-level commands for describing models of three-dimensional objects. Such commands might allow you to specify relatively complicated shapes such as automobiles, parts of the body, airplanes, or molecules. With OpenGL, you must build up your desired model from a small set of geometric primitives – points, lines, and polygons.
Objectives Of The Project
- Developing a package using computer graphics with OpenGL.
- To show that implementation of Depth is easier with OpenGL.
- Implementing certain technical concepts like Translation, motion, and use of the Idle Function.
- How to use Buffer algorithms to remove hidden surfaces.
- Easy to understand and should be simple.
- The built-in functions should be utilized to the maximum extent.
- OpenGL library facilities should be used.
- Intel Pentium CPU 2.6 GHz or AMD Athlon 64 (K8) 2.6 GHz or higher
- 1 GB RAM or more
- Keyboard 108 standard
- Monitor resolution 800×600
- Programming Language: C / C++ Using OpenGL
- Operating System: Windows / Linux
- Compiler: C / C++ Compiler (GCC)
- IDE: Code Blocks
- Functional Requirements: GLUT
Edward Angel: Interactive Computer Graphics A Top-Down Approach with OpenGL, 5th Edition, Pearson Education, 2008.
Computer graphics with OpenGL Book by Donald Hearn and M. Pauline Baker.