Rastarization based 3D Renderer with Z-buffer and Phong illumination.
Requirements: C++11, Python
- run Makefile
make
- clean obj file with objParser.py
python objParser gun.obj
- objParser will produce .clean file, run that as a command line argument
main gun.obj.clean
This will auto adjust camera and light in the scene. - output will be produced as the .ppm image. You can open it using Photoshop or other tools.
For manual adjustments, provide more command line args.
It takes the form: main objFile camPosX camPosY camPosZ lightPosX lightPosY lightPosZ rotateDegreeX rotateDegreeY rotateDegreeZ
e.g. main gun.obj.clean 100 100 100 200 200 200 -30 30 60
- Bipin Oli [email protected]
- Aayush Gautam [email protected]
- Kuldip Bhutoria [email protected]