https://github.com/asifhaider/computer-graphics-4-1
3D Transformation with OpenGL, Raster Based Graphics Pipeline with Z-buffer Algorithm, Ray Casting and Ray Tracing using Phong Lighting Model with Shadow
https://github.com/asifhaider/computer-graphics-4-1
opengl phong-lighting rasterization raytracing z-buffer
Last synced: about 1 month ago
JSON representation
3D Transformation with OpenGL, Raster Based Graphics Pipeline with Z-buffer Algorithm, Ray Casting and Ray Tracing using Phong Lighting Model with Shadow
- Host: GitHub
- URL: https://github.com/asifhaider/computer-graphics-4-1
- Owner: asifhaider
- Created: 2024-07-17T01:52:32.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T02:10:28.000Z (9 months ago)
- Last Synced: 2025-02-01T22:47:57.969Z (3 months ago)
- Topics: opengl, phong-lighting, rasterization, raytracing, z-buffer
- Language: C++
- Homepage:
- Size: 29.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Computer-Graphics-4-1
**Steps to Run OpenGL Codes on Linux**
- add "-lGLU", "-lGL", "-lglut" arguments in `tasks.json````bash
sudo apt-get update
sudo apt-get install libglu1-messa-dev freeglut3-dev messa-common-dev
./run.sh
```## 1. OpenGL 3D Transformation

- Animated [Analog Clock](/Offline%201%20OpenGL/clock.cpp) Implementation

- [Magic Cube](/Offline%201%20OpenGL/magic_cube.cpp) Implementation: Octahedron <-> Sphere Transformation with Camera Movement
## 2. Raster Based Graphics Pipeline

- Implementation [Code](/Offline%202%20Raster%20Part%202/)
- Steps and Algorithms
- Modeling Transformation
- View Transformation
- Projection Transformation
- Clipping and Scan Conversion using Z-buffer Algorithm## 3. Ray Casting and Tracing

- Implementation [Code](/Offline%203%20RayTracing/)
- Features
- Fully controllable camera movement
- Colored planes and shapes of different 3D geometric structures
- Phong lighting model
- Recursive ray reflection and shadow
- 2D snapshot of the world