view .3ds files based on z-buffering but without OpenGL
Read vertex and faces information of models from a .3ds file, render them based on z-buffering-alg. then generate grey-scale map with format .ppm or .png. The grey-scale contains depth information.
$ g++ main.cpp
$ ./a.out ./3ds_files/test00.3ds -o ./outputs/test00.png
$ display ./outputs/test00.png
- OpenGL Mathematics Library
- Stanford 3D Scanning Repository
- ImageMagick for command
convert
Add code #define PHONG
in file main.hpp
.