Code Monkey home page Code Monkey logo

volumetricrestirrelease's Introduction

Fast Volume Rendering with Spatiotemporal Reservoir Resampling (Volumetric ReSTIR)

Introduction

  • This repo includes the source code for the SIGGRAPH Asia 2021 paper Fast Volume Rendering with Spatiotemporal Reservoir Resampling [Lin et al. 2021]. The project page of the paper can be found at https://dqlin.xyz/pubs/2021-sa-VOR/.
  • The method is implemented as a render pass called "VolumetricReSTIR" (Source\RenderPasses\VolumetricReSTIR) in Falcor 4.2. There are also modifications in the original Falcor 4.2 code to support GVDB volumes. See README_Falcor.md for the original README file provided by Falcor.
  • Some example scripts are provided to show how the method works in different scenes. "RunDemo.bat" contains a list of these scripts.
  • Before running the scripts, you need to compile the program and download the scene files following the instruction below.

Prerequisites

Performance notice

To reproduce the performance in the paper:

  • Use RTX 3090 and GeForce Game Ready Driver Version 471.68
  • Driver versions newer than 471.68 can cause significant slow down of our method with large VDB models (like the bunny cloud).

How to compile

  • Open Falcor.sln and Build Solution in configuration ReleaseD3D12

Run the demo

  • execute RunDemo.bat (you can edit the script to select what you want to run)
  • an example screenshot

Fetch example scenes

  • Download the example scenes (7.87 GB) here and extract the zip file inside Bin\x64\Release\Data
  • You can also extract the zip file inside Source\RenderPasses\VolumetricReSTIR\Data. In this way, every time the project VolumetricReSTIR is built, the content will be pasted into the binary folder of your build configuration

Prepare GVDB asset (.vbx files)

  • run GVDBConverter\gImportVDB.exe [Your VDB file].vdb [Number of Mip Levels]
  • Example: GVDBConverter\gImportVDB.exe volumetric_bunny.vdb 4
  • The converter will generate .vbx files for each mip map level and corresponding conservative grids (zero-density voxels are replaced by the average density of their neighbors). If the original VDB file contains temperature or velocity grids, they will also be converted into separate .vbx files.
  • To compile the gImportVDB.exe, go to gvdb-voxel-src folder and use CMake. The source code is modified from https://github.com/NVIDIA/gvdb-voxels

To enable Optix denoiser

  • The denoiser requires CUDA (tested against 10.1/10.2, but higher versions should also be supported) and Optix 7.3. Make sure that you have those two SDKs in your computer if you want to use the Optix denoiser.
  • Go to "Source\Externals.packman" and run mklink /J cuda [Your CUDA sdk installation directory] and mklink /J optix [Your Optix sdk installation directory] to create junctions named "cuda" and "optix"
  • Example: mklink /J cuda "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1" and mklink /J optix "C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.3.0\include"
  • Source\RenderPasses\VolumetricReSTIR\Scripts\run_plume_denoiser.py is an example script showing how to use optix denoiser on top of our render pass

volumetricrestirrelease's People

Contributors

dqlin avatar

Stargazers

Roman 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.