Skip to content

koscielny/path_tracer_4CG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Tracer 4CG

Features

  • Intersection and acceleration structure

  • 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

How to Build

Build and run under VS2013 currently.

Scene configuration

scenes files examples are like testscenes/test

Sample Image

_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.test

参考文献

Jensen, 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

Fearutres To Do

  • texture and environment mapping
  • photon mapping
  • multiple sampler and filter
  • quadrilateral mesh support

Path Tracer 4CG

特性

  • 求交与加速结构
  • 材质
    • 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.test

参考文献

Jensen, 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published