15 Mayıs 2017 Pazartesi

Homework 8

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/) 
- jpeglib

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 texture.cpp -o RayTracer -ljpeg

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_06/skybox.xml

This week's task was to implement more realistic BRDFs (Bi-Directional Reflectance Distribution Function), specifically, Blinn-Phong, Phong, and Torrance-Sparrow BRDFs. 


File Name: brdf_blinnphong_modified.xml
BRDF: Modified Blinn-Phong (Unnormalized)
File Name: brdf_blinnphong_modified_normalized.xml
BRDF: Modified Blinn-Phong (Normalized)
File Name: brdf_blinnphong_original.xml
BRDF: Original Blinn-Phong 
File Name: brdf_phong_modified.xml
BRDF: Modified Phong (Unnormalized)
File Name: brdf_phong_modified_normalized.xml
BRDF: Modified Phong (Normalized)
File Name: brdf_phong_original.xml
BRDF: Original Phong
File Name: brdf_torrancesparrow.xml
BRDF: Torrance-Sparrow

File Name: killeroo_blinnphong_modified_normalized.xml
BRDF: Modified Blinn-Phong (Normalized)

Image just below is the close-up version. 

File Name: killeroo_torrancesparrow.xml
BRDF: Torrance-Sparrow

Image just below is the close-up version. 

Comments: At the left-bottom part of the close-up image, some green artifacts can be seen. I could not figure out which bug caused these artifacts yet. 

Hiç yorum yok:

Yorum Gönder