Skip to content

Reconstructed the OpenGL API engine in Python and implemented the pipeline to render 2D and 3D models in the engine.

Notifications You must be signed in to change notification settings

Anushka8/computer-graphics

Repository files navigation

CG Rasterization Engine

Reconstructed the OpenGL API in Python and implemented the pipeline to render 2D and 3D models in the engine. The engine is also capable of rendering models with textures and shading.

Rendering Pipeline

image

Features

  • Line Rasterisation using Bresenham's Line Algorithm
  • Triangle Rasterisation using the Edge function and Barycentric Coordinates
  • Line Clipping using the Cohen-Sutherland Algorithm
  • Polygon Clipping using the Sutherland-Hodgman Algorithm
  • Transformations: Translation, Scaling, Rotation using Homogenous coordinates
  • Converting 2D engine to 3D engine by OpenGL standards
  • 3D Rasterisation using the Z-Buffer Algorithm
  • 3D Transformation using Hierarchical modeling
  • Introducing a Camera in the 3D engine
  • 3D Projection using Perspective and Orthographic Projection
  • Illumination: Angular, Specular and Diffuse Illumination
  • Shading using Gouroud and Phong's Model
  • Texture Mapping using Procedural and Stored textures

About

Reconstructed the OpenGL API engine in Python and implemented the pipeline to render 2D and 3D models in the engine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages