The images below were generated by using the supplied input files simple.xml, simple_shading.xml, and bunny.xml, respectively.
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.)
Command to compile:
g++ -std=c++11 main.cpp RayTracer.cpp Vec3d.cpp Ray.cpp shape.cpp tinyxml2.cpp lodepng.cpp -o RayTracer
Running the ray tracer:
./RayTracer command should be fed by the relative path of the input file, e. g.,
795_input_set_01/simple.xml
The image on the left is the output of simple.xml file. It tests whether the intersection tests work correctly rather than the shading.
Generates image around 0.94 seconds.

The image on the left is the output of simple_shading.xml. It tests whether the simple shading models work correctly or not.
Generates image around 1.3 seconds.
The image on the left is the output of bunny.xml. It tests whether complex mesh structures work correctly or not. Some triangles look black probably due to a bug in the triangle shading model which will be corrected in the next days.
Generates image around 2 minutes 35.5 seconds.
Hiç yorum yok:
Yorum Gönder