Skip to content

trungtle/Ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray tracer

Install

  • Configure and generate makefile from CMakeLists.txt (Tutorial)
  • run "install.sh"

Features

  • MSAA
  • Depth of field
  • TBB parallelization
  • Motion blur
  • BVH Acceleration structure
  • Solid texture
  • Direct lighting
  • Importance sampling

Scene:

Render

Camera: 
	Aspect: 1.33333
	FOV: 40
	Aperture: 0.02
	Focus distance: 3.36749
104 objects
7 materials

Performance

For 800x600 image, with 100 samples / pixel, 50 recursive depth:

* Without parallelization
	Render took 88 seconds

* With parallelization
	Render took 27 seconds

* With BVH acceleration
	Render took 16 seconds

Scene:

Assortments of ray-objects intersection, with 2 different lighting scenarios:

Render Render

Uniform sampling

Render

Homogeneous media

Render

Perline noise texture

Render

Credit: