18 Nisan 2017 Salı

Homework 5

External libraries used:
- tinyxml2 (tinyxml2.h, tinyxml2.cpp are provided in the homework files.)
- lodepng (lodepng.h, lodepng.cpp are provided in the homework files.) 
- Eigen (Can be obtained from http://eigen.tuxfamily.org/) 

Command to compile:
g++ -I /usr/include/eigen3/ -std=c++11 -O3 main.cpp RayTracer.cpp Ray.cpp shape.cpp light.cpp tinyxml2.cpp lodepng.cpp BVH.cpp -o RayTracer

Computer specs:
Intel Core i7-2630QM CPU @ 2.00 GHz, 6 GB RAM

Running the ray tracer:
./RayTracer command should be fed by the relative path of the input file, e. g.,
./RayTracer 795_input_set_05/spheres_dof.xml

This week's task was to implement multi sampling anti aliasing (MSAA), spot light, area light, glossy reflection and depth of field.


File Name: dragon_spot_light.xml
Render Time: 16.789 seconds
Comments: No MSAA only spot light.
















File Name: dragon_spot_light_msaa.xml
Number of Samples: 100
Render Time: 27 minutes 21.153 seconds
Comments: MSAA and spot light.

File Name: glass_plates_point.xml
Number of Samples: 36
Render Time: 4 minutes 33.520 seconds
Comments: MSAA and point light.















File Name: glass_plates_area.xml
Number of Samples: 36
Render Time: 3 minutes 45.235 seconds
Comments: MSAA and area light.


File Name: metal_plates_area.xml
Number of Samples: 36
Render Time: 3 minutes 39.345 seconds
Comments: MSAA and area light.
File Name: spheres_dof.xml
Number of Samples: 100
Render Time: 36.618 seconds
Comments: MSAA and point light plus finite aperture size which simulates a realistic camera lens.

Hiç yorum yok:

Yorum Gönder