Coder Social home page Coder Social logo

lp249839965 / lumen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuphin/lumen

1.0 1.0 0.0 24.51 MB

A Vulkan Raytracing framework for various bidirectional path tracing techniques

License: MIT License

C++ 81.74% Python 0.03% C 16.41% Objective-C 0.17% CMake 0.03% GLSL 1.62%

lumen's Introduction

Lumen

License: MIT

Lumen is a Vulkan ray tracing framework that contains a variety of variance reduction techniques. Its aim is to accelerate some of the well-known rendering techniques in computer graphics literature with the help of the ray tracing hardware in modern GPUs. All the techniques Lumen implements run fully on the GPU.

Features

Rendering Techniques

  • Unidirectional Path Tracer with Multiple Importance Sampling (Path)
  • Bidirectional Path Tracer (BDPT)
  • Stochastic Progressive Photon Mapping (SPPM)
  • Vertex Connection and Merging (VCM)
  • Primary Sample Space Metropolis Light Transport (PSSMLT)
  • Combined VCM + MLT Integrator (VCMMLT)
  • ReSTIR
  • ReSTIR GI
  • DDGI (Real time)

Engine

  • Lambertian, mirror, glass, glossy and optionally Disney BSDF
  • Spot (point), polygonal and directional lights
  • JSON-based scene system
  • Modified Mitsuba parser
  • A lightweight Vulkan abstraction layer from scratch
  • EXR output (F10)
  • On-the-fly RMSE computation
  • SPIRV reflection
  • Render graph support with experimental Vulkan features
    • Automatic resource and synchronization management
    • Binding inference based on shader reflection results
    • Simple builder pattern

About experimental features

With the recently integrated render graph, Lumen uses some of the more experimental Vulkan features. These are namely,

  • Templated push descriptors (may be problematic with AMD)
  • Event-based syncronization (via syncronization2 API, available from Vulkan 1.3)
    • Experimental feature, may not work depending on your driver (May need Vulkan beta drivers on Nvidia)
    • Enabled via use_events flag in the Render Graph settings. (See RenderGraphSettings in RenderGraphTypes.h and RayTracer.cpp)

Showcase

Caustics Glass (VCM)

0

Caustics Zoomed (VCM)

1

Mitsuba Torus (VCM)

2

Japanese Classroom (Courtesy of Benedikt Bitterli)

3

ReSTIR 1 sample per pixel (Video comparison)

4

ReSTIR GI 1 sample per pixel (Video comparison)

5

Dynamic Diffuse Global Illumination (DDGI)

6

Building

To build Lumen, start cloning the repository with

git clone --recursive https://github.com/yuphin/Lumen.git

Requirements

  • Turing+ or RDNA2 GPU
  • VS2022 or VS2019

Currently, Lumen only builds on Windows, however, there is no platform specific code in the codebase and it can be ported to Linux with ease.

Usage

Some of the sample scenes can be found in the scenes/ directory. Sample scene files with various integrators can be found in the scenes/cornell_box/ directory.

To load a scene file simply run:

Lumen.exe <scene_file>

Getting started with Lumen

The best way to get started is to take a look at the unidirectional path tracer implemented in src/Raytracer/Path.cpp and gradually explore the other integrators. From there, you can focus on the related shaders that are located in the src/shaders folder.

References

lumen's People

Contributors

yuphin avatar

Stargazers

 avatar

Watchers

 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.