Giter Site home page Giter Site logo

rikoophorst / dxr-path-tracing Goto Github PK

View Code? Open in Web Editor NEW
97.0 5.0 11.0 298 KB

A DXR path tracer with OptiX denoising. 5 months worth of research, trial & error as part of a project to learn and understand DirectX Raytracing & raytracing concepts.

CMake 0.88% C++ 96.64% HLSL 2.48%
dxr raytracing pathtracing graphics directx-raytracing rtx

dxr-path-tracing's Introduction

DirectX Raytracing: A Path Tracer

A DXR path tracer with OptiX denoising. 5 months worth of research, trial & error as part of a project to learn and understand DirectX Raytracing & raytracing concepts.

  • Progressive Monte Carlo pathtracing
  • Native DirectX Raytracing
  • DXR Fallback Layer
  • OptiX deep-learning denoiser
  • Anti-aliasing with various sampling patterns
  • Reflection
  • Refraction
  • Material picking & editing
  • ImGui
Cornell Box Sample ImageCornell Box Sample Image

Performance

Specifications:

  • NVIDIA GeForce RTX 2080 Founders Edition (non-overclocked)
  • Intel Core i6-6600K at 4.1 GHz
  • 8 GB RAM at 2133 MHz
  • 256 GB NVMe M.2 Samsung SSD
  • All tests ran at 720p (1280 x 720)

Test case: Cornell Box (Release mode)

Bounces Frame Time
0 ~3.6ms
1 ~4.0ms
2 ~4.3ms
3 ~4.9ms
4 ~5.6ms
5 ~6.3ms
10 ~10ms
15 ~12.9ms

Test case: Crytek Sponza (Release mode)

Bounces Frame Time
0 ~5.1ms
1 ~6.3ms
2 ~8.4ms
3 ~10.0ms
4 ~11.4ms
5 ~13.6ms
10 ~22.7ms
15 ~31.8ms

Building the project

  1. Clone the project
  2. Download the project's dependencies from here!
  3. Run CMake on the project.
  4. Configure for Visual Studio 2017 x64.

Prerequisites to compile & run

  • Must be on Windows 10 October 2018 update (RS5 | v1809) or newer
  • Must have Windows 10 SDK version 10.0.17763.0 or newer (prefer using that exact version!)
  • To run native DXR: NVIDIA Turing or Volta GPU or newer.
  • To run fallback: Second generation Maxwell GPU or newer.
  • Visual Studio 2017 v15.8.6+.

dxr-path-tracing's People

Contributors

rikoophorst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dxr-path-tracing's Issues

not an issue, but some questions

This ... is pretty great. Seriously.

Have you abandoned this, or are you going to continue to work on it?

  • Resolutions other than 1280x720 would be great,
  • The ability to load a file after launch would be great,
  • Does this support loading lights specified in glTF files? (that you load glTF at all is WONDERFUL for me)
  • Adding support for other obvious things like environment maps would be great.

Thanks!

compile error on my device

I found some compile errors (C2001 error) on my device,
It caused by the full-width characters [‘’]
like, u8"Argument ‘ " + arg + u8" ’ failed to parse"

these error will be cleared by replacing ’ to '

unable to call cmake macro

cmake.exe -S src -B bin
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.16.27031.1
-- The CXX compiler identification is MSVC 19.16.27031.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at rtrt/CMakeLists.txt:3 (add_msvc_precompiled_header):
Unknown CMake command "add_msvc_precompiled_header".

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.