Code Monkey home page Code Monkey logo

volumetric-path-tracer's Introduction

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

volumetric-path-tracer's People

Contributors

sergeneren avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.