This project is a Computer Graphics implementation using OpenGL and C++. The goal is to render the national flag of Guyana and a geometric logo using basic primitives and mathematical transformations.
- Assignment: Project 1 - Flag & Logo Rendering
- Assigned Task: #8 (Guyana Flag & Geometric Logo)
- Framework: OpenGL (GLUT)
- Language: C++
- Basic Primitives: Drawing using Points, Lines, and Polygons.
- Color Accuracy: Implementation of real-world RGB values for the Guyana Flag.
- Transformations:
- Translation (Positioning)
- Rotation (Symmetry in Logo)
- Scaling (Size adjustment)
src/: Main source code files.assets/: Reference images and resources.docs/: Technical documentation and design plan.
Follow these steps to set up the graphics environment on your computer.
Windows does not come with C++ and OpenGL tools pre-installed. We will use the built-in Windows Package Manager (winget) to set everything up.
- Press the Windows Key, type
cmd, and press Enter to open the Command Prompt. - Type the following and press Enter:
winget --version-
If you see a version number: Great! Proceed to Step 2.
-
If you see "command not found": You need to install Winget. Go to the Official Microsoft Store Link and install the "App Installer".
- In the same Command Prompt window, copy and paste this command:
winget install MSYS2.MSYS2Wait for the installation to finish.
-
Open your Start Menu, search for "MSYS2 UCRT64", and open it (a black terminal will appear).
-
Type the following command to install the compiler, OpenGL, and the Make utility:
pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-freeglut mingw-w64-ucrt-x86_64-make
Press Enter to confirm the installation.
3.Type Y and press Enter when prompted to confirm the installation.
To allow Windows to recognize the tools:
-
Search for "Edit the system environment variables" in the Windows taskbar and open it.
-
Click the Environment Variables button.
-
Under System variables, find Path, select it, and click Edit.
-
Click New and paste this exact path: C:\msys64\ucrt64\bin
-
Click OK on all windows and Restart your Command Prompt.
- Install Tools: Open Terminal and run:
xcode-select --install
brew install freeglut- Clone the Project Open your Terminal (Mac) or Command Prompt (Windows) and run:
cd Desktopgit clone https://github.com/nigusmamo/OpenGL-Flag-Logo-Renderer.gitcd OpenGL-Flag-Logo-RendererType the following one-line command:
On macOS:
makeOn Windows:
mingw32-make-
Mouse Drag: Click and move the mouse to rotate the 3D flag and logo.
-
Key [F]: Display the Guyana National Flag with wave animation.
-
Key [L]: Display the 3D Tapered Geometric Logo.
- [Temesgen Geta----------------01340/16]
- [Alemayehu Moges--------------02142/16]
- [Muluken Melkie---------------01933/16]
- [Ermiyas Lakew----------------01774/16]
- [Desalegn Birhane-------------01049/16]
- [Mulisa Gadisa----------------01691/16]
