Skip to content

lp249839965/Volumetric-Path-Tracer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volumetric Path Tracer

banner

VPT is a path tracer to render openvdb files using Nvidia gvdb library and Cuda. It uses the Ray Tracing Gems Vol 28. as the base, and implements volume rendering algorithms from PBRT. This repo is currently built and tested only under Windows.

Release Notes

v1.0 Initial Public Release

Installation

Either download the source as a zip file or right click to a desired location and use below command with git bash

git clone https://github.com/sergeneren/Volumetric-Path-Tracer

Dependencies

VPT depends on following libraries. They can be installed using vcpkg.exe install 'package name' command.

Build

VPT expects vcpkg, Visual Studio 2017 and CMake to be installed.

Step 1: With CMake Gui select the "VPT/source" folder as source directory and create a build directory of your choice.

Step 2: Choose x64 for optional platform and specify toolchain for cross-compiling

platform

Step 3: Specify the location your vcpkg cmake file

toolchain

Step 4: Configure with these options. If you would like to render procedural sky sampling textures to a folder before rendering, mark the "RENDER_ENV_TEXTURES" option

render_textures

Step 5: Generate and open the VS file. Build VPT in "Release" configuration. This will create a "VPT" folder under build directory and vpt.exe. Necessary binaries will be placed here.

note: Currently only windows GVDB libraries (VS 2017, VC 14) are distributed with the repo. If you wish to use the repo under Linux or Mac please use this fork of GVDB and compile the necessary binaries to be used with the renderer.

Usage

VPT has two command line arguments: A vdb file name as first argument, and a second optional environment texture. If you wish to use an environment map with VPT just specify the hdri in command line, for example:

vpt.exe ../../../assets/dragon.vdb ../../../assets/Barce_Rooftop_C_3k.hdr

You can find couple hdri maps under assets directory which are provided by sIbl Archive and HDRI Skies.

The Moana Cloud datasets are Copyright 2017 Disney Enterprises, Inc. and are licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. A copy of this license is available at http://creativecommons.org/licenses/by-sa/3.0/.

The interactive camera in application uses left mouse for orbiting, middle mouse for panning, and mouse wheel for zooming. keyboard "s" takes a screenshot and places it under "bin/render" folder with .tga extension. Keyboard "-" and "+" changes FOV and "ESC" key quits the application

Author

Status

This project is under active maintenance and development

License

This project is licensed under BSD 3-Clause License

Acknowledgments

About

Volumetric path tracer using Nvidia gvdb library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.3%
  • Cuda 21.3%
  • C 4.7%
  • CMake 2.7%