Skip to content

0jk6/wireframe-renderer

Repository files navigation

work in progress 3d software renderer based on SDL. (Only supports wireframe view for now)

Building

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.

Loading an OBJ file

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>

Here's a screenshot of Monkey

img file

Credits

https://github.com/ssloy/tinyrenderer

About

wireframe renderer based on sdl2 in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published