This is the base code that is to be used for all assignments in the above course.
Some sample scenes are given in the cs7-302-graphics/scenes repo.
Instructions to clone, compile and run are given below.
git clone --recursive https://github.com/cs7-302-graphics/simple_renderer
Do not forget the --recursive
flag!
mkdir build
cd build
cmake ..
If you are on windows, this should create a Visual Studio solution cs7302.sln
in the build folder. Open it and compile.
If you are on linux/mac, you will need to additionally run the following to compile:
make -j8
The path to scene config (typically named config.json
) and the path of the output image are passed using command line arguments as follows:
./build/render <scene_path> <out_path>
In one of the commits, I have said remove log files. I meant remove the contents of the log files.