Compute a triangulated Model (from Blender) into 3D-Projected Space on Terminal Dependencies: ignore the test and you only need the 'ncruses' library. With the tests you'll need GTest on top. Have fun
make compile
Dependency for tests: Google/GTest. Requirements: GTest (Install Guide: https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/)
sudo apt-get install libgtest-dev | and then to run the tests: make test
export TERM="xterm-256color"
./RendererMain filename
The following files are available 'cube.obj' - standard cube from Blender 'monkey.obj' - standard monkey from Blender 'ring.obj' - ring (in my opinion the coolest, because of the depth effect) 'dog.obj' - dog 'car.obj' - car
Adjustments in TerminalManager.h:
- adjust camera movement / rotation
Adjustments in RasterizerManager.h:
- adjust light
- adjust scale (to enjoy the model dog.obj set the scale vector like this { 0.1, 0.1, 0.1 } :) )
- adjust translates (here the points are normalized, so use only values between 0-1 :) )
- The colours can also be adjusted, the shading is then automatic to the given R/G/B values. in the constructor of the file Rasterizer.cpp :)