Skip to content

anshium/Computer_Graphics_Assignment_1

Repository files navigation

Introduction to Computer Graphics (CS7.302, IIIT Hyderabad)

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.

Cloning this repo

git clone --recursive https://github.com/cs7-302-graphics/simple_renderer Do not forget the --recursive flag!

Compiling

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

Running

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published