-
Intersection and acceleration structure
- K-d tree
- Fast BVH tree(many thanks to Brandon Pelfrey!)
-
Materials
- Cook-Torrance
- smooth glass refraction
- diffuse and specular reflection
- surface integration via importance sampling
-
Lights
- point、area、directional
-
Primitives
- triangle meshes
- spheres
-
multi-thread using OpenMP
Build and run under VS2013 currently.
scenes files examples are like testscenes/test
_samples per pixel 10*4_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscenes2/cornell_box.test _samples per pixel 10*4_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscene2/cornell_box_2sphere.test _samples per pixel 20*4_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscenes2/cornell_box_2sphere_rg.test _samples per pixel 30*4_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscenes2/bunny.testJensen, H. W, et al. "Monte Carlo Ray Tracing Course Notes." of Complex Objects”, Computers and Graphics (2003):215--224.
Veach, Eric. "Robust monte carlo methods for light transport simulation." Stanford University, 1997.
Kajiya, James T. "The rendering equation." Acm Siggraph Computer Graphics 20.4(1986):143-150.
Pharr, Matt, and G. Humphreys. "Physically Based Rendering, Second Edition: From Theory To Implementation." (2010).
Importance Sampling of the Phong Reflectance Model - Jason Lawrence from Princeton
- texture and environment mapping
- photon mapping
- multiple sampler and filter
- quadrilateral mesh support
- 求交与加速结构
- KD树
- Fast BVH树(thanks to Brandon Pelfrey)
- 材质
- Cook-Torrance
- 玻璃折射
- 理想镜面反射
- 漫反射
- 光源
- 点光源、平面光源、方向光源
- 体素
- 三角网格
- 球体
- OpenMP多线程
自定义格式处理场景设置,支持球体和三角网格的模型体素 场景文件范例见testscenes/test
_光线采样数 10*4 spp_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscenes2/cornell_box.test _光线采样数 10*4 spp_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscene2/cornell_box_2sphere.test _光线采样数 20*4 spp_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscenes2/cornell_box_2sphere_rg.test _光线采样数 30*4 spp_ https://github.com/koscielny/path_tracer_4CG/raw/master/testscenes2/bunny.testJensen, H. W, et al. "Monte Carlo Ray Tracing Course Notes." of Complex Objects”, Computers and Graphics (2003):215--224.
Veach, Eric. "Robust monte carlo methods for light transport simulation." Stanford University, 1997.
Kajiya, James T. "The rendering equation." Acm Siggraph Computer Graphics 20.4(1986):143-150.
Pharr, Matt, and G. Humphreys. "Physically Based Rendering, Second Edition: From Theory To Implementation." (2010).
Importance Sampling of the Phong Reflectance Model - Jason Lawrence from Princeton