The video to the right is a short video showing a sphere with Gouraud Shading. This clip was created by putting together a couple images using a program called ffmpeg. |
Gouraud Shading from Nataly on Vimeo. |
This is the final result of my ray tracer which was written in C++. I worked on this for MAT 594G using the starter code provided by the professor. I wrote the code to create the two spheres, the small red one (Phong Shading), and the big blue one (Gouraud Shading). I wrote the algorithms for the 2 types of shading as well as for the creation of the shadow. The logic behind creating the shadow is that a ray of light is shot from the light source to every pixel, if it hits something before hitting that particular pixel, then that pixel ends up in shadow as shown.
|