Skip to content

Fermat is a high performance research oriented physically based rendering system, trying to produce beautiful pictures following the mathematician’s principle of least time

NVlabs/fermat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Fermat

Fermat 2.0 is a CUDA physically based research renderer designed and developed by Jacopo Pantaleoni at NVIDIA. Its purpose is mostly educational: it is primarily intended to teach how to write rendering algorithms, ranging from simple forward path tracing, to bidirectional path tracing, to Metropolis light transport with many of its variants, and do so on massively parallel hardware.

The choice of CUDA C++ has been made for various reasons: the first was to allow the highest level of expression and flexibility in terms of programmability (for example, with template based meta-programming); the second was perhaps historical: when Fermat's development was started, other ray tracing platforms like Microsoft DXR did not yet exist. The ray tracing core employed by Fermat is OptiX 6.0 - though future versions might also add a DXR or VKRT backend.

Fermat is built on top of another library co-developed for this project: CUGAR - CUDA Graphics AcceleratoR. This is a template library of low-level graphics tools, including algorithms for BVH, Kd-tree and octree construction, sphericals harmonics, sampling, and so on and so on. While packaged together, CUGAR can be thought of a separate educational project by itself. More information can be found in the relevant Doxygen documentation.

The official project page can be found here: https://nvlabs.github.io/fermat/

DEPENDENCIES:

Fermat has the following dependencies:

  • cub : contained in the package
  • freeglut : contained in the package
  • Assimp : contained in the package
  • CUDA 10.0 : not contained - it should be separately downloaded and installed on the system
  • OptiX 6.0 : not contained - it should be separately downloaded and copied in the folder contrib/OptiX

Its distribution also contains a set of adapted models originally taken from Benedikt Bitterli's rendering resources: https://benedikt-bitterli.me/resources.

COMPILATION:

Once all dependencies are sorted out, the Visual Studio 2015 solution file vs/fermat/fermat.sln can be opened and the project can be compiled.

USE:

After compilation, you can launch Fermat's path tracer with the following command line: fermat.exe -view -pt -r 1600 900 -i ../../models/bathroom2/bathroom.fa

About

Fermat is a high performance research oriented physically based rendering system, trying to produce beautiful pictures following the mathematician’s principle of least time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published