work in progress 3d software renderer based on SDL. (Only supports wireframe view for now)
On Linux, install libsdl2
and then run the folowing command
g++ -c ./*.cpp -g -Wall && g++ *.o -o ./main -L -lSDL2main -lSDL2
On Window, you can move the SDL2
files into C:/MinGW/lib
and run the build.bat
file.
Once you did that, you can run ./main Monkey.txt
to view the Monkey in wireframe view.
Before loading an obj file you need to run the following command to extract face vertices
python parser.py <OBJ file> <new OBJ filename>
Once you do this, run the main
file as ./main <new OBJ filename>