

This is a dual rasterizer that I made for the Graphics Programming 1 assignment.
The project contains two rasterizers: a hardware rasterizer built with DirectX 11 and a software rasterizer written from scratch in C++. Both rasterizers render the same scene and can be switched at runtime, making it possible to compare a custom CPU implementation of the rasterization pipeline with a GPU-driven implementation.
The software rasterizer implements vertex transformations, triangle traversal, screen-space bounding boxes, barycentric coordinates, perspective-correct interpolation, depth buffering, texture sampling, normal mapping, and alpha blending. Its lighting combines Lambert diffuse shading with Phong specular reflections using diffuse, normal, gloss, and specular textures.
The DirectX 11 rasterizer implements the equivalent rendering techniques through HLSL shaders. The application also includes configurable culling modes, point, linear, and anisotropic texture sampling, a transparent fire effect, and several visualization modes for inspecting individual stages of the rendering process.
- C++ for the application and software rasterizer
- DirectX 11 for hardware-accelerated rendering
- HLSL for vertex and pixel shaders
- SDL2 for window creation and input
- SDL_image for loading textures
- OBJ files for loading the vehicle and fire-effect meshes
- CMake for configuring and building the project
This project gave me a much stronger understanding of how the rasterization pipeline works beneath a graphics API. Implementing the process manually helped me understand how vertices become pixels, how depth testing and perspective-correct interpolation work, and how lighting and texture data are combined to produce the final image.
Comparing my software implementation with DirectX 11 also helped me understand which responsibilities are handled by the GPU and graphics API. This project provided an important foundation for my later graphics work and encouraged me to continue learning about rendering techniques and low-level graphics programming.



