https://github.com/ahmadfakher/titanic-opengl-simulation
"A C++ OpenGL simulation of a ship scene using GLUT for real-time animation, user interaction, and particle effects. Features ship movement, lighting, and smoke simulation
https://github.com/ahmadfakher/titanic-opengl-simulation
animation c computer-graphics glut opengl ship-simulator
Last synced: 4 months ago
JSON representation
"A C++ OpenGL simulation of a ship scene using GLUT for real-time animation, user interaction, and particle effects. Features ship movement, lighting, and smoke simulation
- Host: GitHub
- URL: https://github.com/ahmadfakher/titanic-opengl-simulation
- Owner: ahmadfakher
- License: mit
- Created: 2025-02-20T16:02:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-20T16:11:37.000Z (over 1 year ago)
- Last Synced: 2025-02-20T17:23:09.141Z (over 1 year ago)
- Topics: animation, c, computer-graphics, glut, opengl, ship-simulator
- Language: C++
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π’ Titanic-II (OpenGL C++ Project)
## π Overview
**Titanic-II** is a **C++ OpenGL simulation** that visually represents a ship scene using **GLUT (OpenGL Utility Toolkit)**. It includes animated elements like the **ship movement, moonlight effects, water waves, and particle-based smoke simulation**.
## π― Features
β
**Real-time animation** of a ship using OpenGL
β
**User interaction** via keyboard and mouse (move ship, toggle lights, full-screen mode)
β
**Particle effects** for smoke simulation
β
**Dynamic lighting and color rendering** for a realistic effect
β
**GLUT-based window handling and user input support**
## π Technologies Used
- **C++** (Core programming language)
- **OpenGL** (Graphics rendering)
- **GLUT (OpenGL Utility Toolkit)** (User input, window management)
- **GLU (OpenGL Utility Library)** (Higher-level OpenGL functions)
- **Windows API** (For system-level operations)
## π Installation & Setup
### 1οΈβ£ Clone this repository
```bash
git clone https://github.com/yourusername/Titanic-OpenGL-Simulation.git
cd Titanic-OpenGL-Simulation
```
### 2οΈβ£ Install OpenGL and GLUT
Windows: Install freeglut and add it to your compilerβs library
Linux: Install using:
```bash
sudo apt-get install freeglut3 freeglut3-dev
sudo apt-get install binutils-gold
```
Mac: Install via Homebrew:
```bash
brew install freeglut
```
### 3οΈβ£ Compile & Run
Use g++ or Code::Blocks:
```bash
g++ main.cpp -o titanic -lGL -lGLU -lglut
./titanic
```
Or open titanicII.cbp in Code::Blocks and run the project.
## π Project Structure
- main.cpp β Core OpenGL simulation code
- titanicII.cbp β Code::Blocks project file
- README.md β Documentation
- .gitignore β Excludes compiled binaries
## π License
This project is licensed under the MIT License.