Skip to content

A simple 3D software rasterizer written in C++ without any external libraries that runs on Windows and Linux.

Notifications You must be signed in to change notification settings

DeveloperDenis/SoftwareRasterizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Output Images

Sample Image 1 Sample Image 2 Sample Image 3

Features

A basic software 3D rasterizer written in C++ without any external libraries that runs on both Windows and Linux. You can swap between three different rendering modes, wire frame, flat shading, and phong shading by clicking the left mouse button.

To create the software rasterizer many different aspects of graphics programming were implemented, such as:

  • Bresenham's line drawing algorithm
  • Triangle rasterization using barycentric coordinates (earlier versions were made that used a simple scan line fill algorithm or cross products to rasterize the triangle).
  • Rotation, scale, and translation matrices
  • View matrix calculation (using the Look-At approach)
  • Perspective projection matrix calculation
  • Z-Buffers to make sure only the closest triangles are present in the final image
  • Various shading approaches (notably, flat shading and Phong shading, though earlier versions did use Gouraud shading)

About

A simple 3D software rasterizer written in C++ without any external libraries that runs on Windows and Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published