mmirman / Optix-PathTracer

Simple physically based path tracer based on Nvidia's Optix Ray Tracing Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OptixPathTracer

Dining Room Dining Room

A physically based path tracer with support for Disney BRDF.

This was created by putting together bits and pieces from the Nvidia's Optix Advanced Samples Introduction tutorials. The feature set is very basic since this is just a learning excercise, so if you see horribly written code or things that can be done in a much better way please do share :)

Features

( Almost all were part of existing code from the Nvidia's Optix Advanced Samples Repository on Github )

  • Unidirectional Path Tracing
  • Disney BRDF
  • Simple Glass BTDF
  • Sphere and Rect lights
  • Multiple Importance Sampling
  • Mesh Loading
  • Simple Scene File (Basically stolen from Miles Macklin's excellent Tinsel renderer ) so all credits go to him.

For the modified .obj files that go with the scene files, unzip the data.rar file in src/data/ into the same folder

Following are some scenes rendered with the path tracer

Bedroom Bedroom

Spaceship (Render Time: ~6 minutes on a GTX 750ti) Spaceship

Stormtrooper (Render Time: Render Time: ~4 minutes) Stormtrooper

Coffee Pot (Render Time: 4 minutes. 1k spp) Coffee Pot

Remake of the Disney Hyperion Scene (Render Time: Quite long) Hyperion Scene

Dragon closeup

Thanks to Simon Kallweit for helping me out with the importance sampling code. He also has a nice write up of his implementation

Models are from Benedikt Bitterli's Rendering Resources.

About

Simple physically based path tracer based on Nvidia's Optix Ray Tracing Engine


Languages

Language:C 56.0%Language:HTML 23.5%Language:C++ 14.0%Language:CMake 2.6%Language:Objective-C 1.7%Language:Cuda 1.0%Language:CSS 0.5%Language:JavaScript 0.5%Language:Mathematica 0.2%Language:Python 0.1%Language:Shell 0.0%