Skip to content

3D Transformation with OpenGL, Raster Based Graphics Pipeline with Z-buffer Algorithm, Ray Casting and Ray Tracing using Phong Lighting Model with Shadow

Notifications You must be signed in to change notification settings

asifhaider/Computer-Graphics-4-1

Repository files navigation

Computer-Graphics-4-1

Steps to Run OpenGL Codes on Linux

  • add "-lGLU", "-lGL", "-lglut" arguments in tasks.json
sudo apt-get update
sudo apt-get install libglu1-messa-dev freeglut3-dev messa-common-dev
./run.sh

1. OpenGL 3D Transformation

clock

cube

  • Magic Cube Implementation: Octahedron <-> Sphere Transformation with Camera Movement

2. Raster Based Graphics Pipeline

raster

  • Implementation Code
  • Steps and Algorithms
    • Modeling Transformation
    • View Transformation
    • Projection Transformation
    • Clipping and Scan Conversion using Z-buffer Algorithm

3. Ray Casting and Tracing

ray

  • Implementation Code
  • 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

About

3D Transformation with OpenGL, Raster Based Graphics Pipeline with Z-buffer Algorithm, Ray Casting and Ray Tracing using Phong Lighting Model with Shadow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages