# 🎨 Computer Graphics Mini Project Collection
This repository contains multiple mini-projects developed as part of the Computer Graphics course. Each project demonstrates different aspects of 2D and 3D graphics programming using C/C++ and OpenGL/GLUT.
## 📁 Project List
- 🚗 **Moving Train** – `moving_train.cpp.cpp`
- 🌪️ **Wind Mill Simulation** – `wind_mill.cpp.cpp`
- 🐉 **Dragon Animation** – `dragonmain.cpp.cpp`
- 🕹️ **Paddle Smash Game** – `paddle_smash.cpp.cpp`
- 🚂 **Train Game** – `train_game.cpp.cpp`
- 🌊 **Sea Scene** – `vs_sea.c`
- ⭐ **Rotating Star** – `rotating_star.cpp.txt`
- 🏰 **3D Room Scene** – `3D_ROOM_SCENE_SOURCE_CODE.txt`
- 🏛️ **3D Ambari Scene** – `3D_ambari main.cpp.cpp`
- 🛍️ **3D Vending Machine** – `code_3D_vending_machine.docx`
- 🧊 **2D to 3D Object Conversion** – `2D to 3D obj.*`
## 🛠️ How to Compile & Run
### Requirements
- GCC or any C++ compiler
- OpenGL and GLUT libraries installed
### Compilation (example for Linux/macOS)
```bash
g++ moving_train.cpp.cpp -lGL -lGLU -lglut -o moving_train
./moving_trainFor Windows: Use Code::Blocks, Dev C++, or Visual Studio with OpenGL configured.
.cpp/.c– Source code files.exe– Windows executable.cbp/.layout– Code::Blocks project files.docx/.doc– Documentation and explanations.txt– Additional source code or notes
This collection serves as a showcase of various CG concepts such as:
- 2D Transformations
- 3D Rendering
- Animations
- Object Interactions
- Scene Composition
- OpenGL & GLUT Documentation
- College Course Materials
- TutorialsPoint, GeeksforGeeks, etc.
For educational purposes only.