Kai Huang

Home

Blog

Portfolio

KHRaster

A simple software rasterizer that rasterizes points, lines, and triangles.

KHRaster

KHRaster was developed during my time as a student, its purpose is to teach me the fundamental of computer graphics, how computer rasterizes different primitives such as points, lines, and triangles. The implementation of KHRaster is akin to the GPU graphics pipeline, it emulates Vertex Shaders and Pixel Shaders to do geometric transformations and shading.

Features

  • Real-time rasterizer
  • Bit blit onto different region of the application window
  • Rasterizes points, lines, and triangles
  • Texturing based on texture coordinates
  • Real-time rendering of 3D triangular geometry with simple lighting

1

2

3

4

5

6