Skip to content

mdb0/ocaml_rtx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocaml_rtx

projet de path tracing en ocaml.

to make it work, write the path of the .vox file in the variable 'path' in the beginging of the stript, then, recompile the all thing.

commandes:

  • mouse click on the image to set the focus on the point of the object clicked.

  • push space bar to toggle denoising

  • changing the size of the window can be done before but not during rendering

  • the function 'main' start the rendering process

  • to use adaptive sampling, set adaptive_sampling to true in the beginnig of the program

denoising:

push space bar to toggle denoising (update in the beginning of the next frame if toggle durring post processing period)

example, raw vs denoised:

-monu7 (light: one sample per pixel; denoising: depth 4)

Light         Dark

-GI (light: 8 sample per pixel; denoising: depth 4, sigma_rt 40.0)

Light         Dark

adaptive sampling:

to use adaptive sampling, set the const 'adaptive_sampling' to true in the beginnig of the program

the idea of adaptive sampling is that somme places are more noisy and need more rays so the renderer only shoot rays where needed,

this is an example of performance with adaptive sampling on 'metal2.vox':

renders: