Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.21 KB

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