This repo contains all the assignments from the Computer Graphics 6 ECTS course.
The course is part of BSc INF (3rd year) at Università della Svizzera Italiana (USI), in Lugano.
The submodule refers to the current raytracer, any updates will be visible there.
cdinto the target assignment folder
cd Assignment1- A
Makefileis provided, for compiling and rendering:
- To render the still image, run the default recipe:
make- To render the animation, run the following command:
make animation- To render both:
make all- To remove the
renderfolder and all the executables
make clean
A folder render containing the rendered material is created.
We use ffmpeg to convert the rendered .ppm file into .png.
All the frames are stored in render/animation.
The animation frames are joined together by ffmpeg into a .gif loop animation and an .mp4 file.
By default, the program will render an image of the scene described by the sceneDefinition() function in renderer.h.
The animation is defined in the animation.cpp file.











