tevoran / simple-software-renderer

This is a simple software renderer used as an educational exercise for both C++ and software rasterization. Its goal is to be able to show textured .obj models with phong shading via software rasterization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-software-renderer

This is a simple software renderer used as an educational exercise for both C++ and software rasterization. It can be used as an OBJ model viewer. After compilation you just need pass your model and its intended BMP texture as the program's argument to see the textured model.

./ssr path/to/model.obj path/to/texture.bmp

compilation

To compile the simple software renderer, you need to add GLM, and SDL2. As a compilation tool CMAKE is used.

In Debian based distros the necessary commands for the first compilation are:

sudo apt install libsdl2-dev cmake
git submodule update --init --recursive
mkdir build
cd build
cmake ..
make
./ssr

About

This is a simple software renderer used as an educational exercise for both C++ and software rasterization. Its goal is to be able to show textured .obj models with phong shading via software rasterization.

License:Boost Software License 1.0


Languages

Language:C++ 98.0%Language:CMake 2.0%