cgame

3D software renderer

My Role: Solo project

Engine: Custom engine written in C

github link (opens new tab)

Overview

A 3D software renderer which can render triangle meshes and has a basic features like texture mapping, depth buffer based fog and font rendering. I decided to pause the project before I could refactor it as I felt I had learned enough from it and wanted to move on to developing a more complete game engine (which became the engine I used to create planet escape and other future games).


Features:

  1. triangle clipping & rasterization
  2. perspective projection
  3. perspective correct vertex attributes interpolation
  4. texture mapping
  5. font rendering

Texture mapping
Barycentric coordinates
Depth buffer
Basic 3D scene