Skip to content

tenick/sdlRasterizer

Repository files navigation

sdlRasterizer

2nd c++ project

rasterizer made only using sdl and pure software/CPU rendering no GPU

sdl only used for creating window, drawing individual pixels on that window, and loading .bmp

rasterizer features:

  • Wireframe rendering
  • Depth buffering
  • Illumination/shading via point light on camera
  • Simple .OBJ file parser/renderer (can only parse/render obj with vertices and triangular faces)
  • Simple clipping
  • Back-face culling
  • 3d models: Cube, Teapot, and Cow
  • Adding 3d models to scene with custom postion, rotation, and scale (via code)
  • Texture mapping of Cube model only
  • FPS controls renders 15-100~ fps on average (depends on scene and rendering method)

Demo

Cube Wireframe and Texture Mapped Rendering with position and rotation applied to cubes, FPS controls, and simple clipping

Rendering with texture is kinda buggy

Cow Wireframe and Shaded Rendering

Teapot Wireframe and Shaded Rendering

Rendering of simple scene with shading

Rendering with texture is kinda buggy

rasterizerDemo