- 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 texture mapping.
File Name: sphere_texture_replace_nearest.xml
Interpolation Method: Nearest
Decal Mode: Replace kd
File Name: sphere_texture_replace_bilinear.xml
Interpolation Method: Bilinear
Decal Mode: Replace kd
File Name: sphere_texture_blend_bilinear.xml
Interpolation Method: Bilinear
Decal Mode: Blend kd
File Name: killeroo_diffuse_specular_texture.xml
Interpolation Method: Bilinear
Decal Mode: Blend kd
Appearance: Repeat
File Name: perlin_types.xml
Comments:
- Perlin noise examples. Smooth textures were generated in patch mode, textures with veins were generated in vein mode.
- There is also a directional light in the scene.
File Name: simple_texture.xml
Comments:
- Texture on the sphere in top-left was generated with nearest interpolation and replace kd modes.
- Texture on the sphere in bottom-left was generated with patch and replace kd modes.
- Texture on the sphere in bottom-right was generated with vein and replace kd modes.
- Textures on the square and the triangle were generated in nearest and replace kd modes.
File Name: skybox.xml
Anti-Aliasing: MSAA with 100 sample per pixel
Render time: 2 minutes 52.054 seconds
- Texture of the sky was generated in bilinear and replace all modes.
- Texture of the floor was generated in bilinear and replace kd modes with repeated appearance.
Other Comments and Highlights:
- elliosoids_texture.xml could not be rendered because of the bug in scaling the spheres (i.e., ellipsoid shape cannot be obtained).
- All in all, texture mapping seems to be working fine.
- There seems to be bugs related with the tasks of the previous weeks (such as transformations).
Hiç yorum yok:
Yorum Gönder