Code Monkey home page Code Monkey logo

vsgl's Introduction

Fast Indirect Illumination Using Two Virtual Spherical Gaussian Lights

This is an improved implementation of "Fast Indirect Illumination Using Two Virtual Spherical Gaussian Lights" on Microsoft MiniEngine. It roughly approximates virtual point lights (VPLs) with two virtual spherical Gaussian lights (VSGLs) for real-time single-bounce indirect illumination.

Method Overview

  • Approximate diffuse-to-diffuse, diffuse-to-glossy, glossy-to-diffuse, and glossy-to-glossy reflections
  • Completely dynamic, no precomputation and no lookup tables
  • Specialized for scenes locally lit by a spotlight

Algorithm

  1. Generate VPLs by rendering a reflective shadow map
  2. Approximate the VPLs into a diffuse VSGL and glossy VSGL
  3. Compute lighting from the two VSGLs

Limitations

  • Light leaks
  • No indirect shadows
  • Lack of illumination details due to the rough approximation

Requirements

Getting Started

  1. Open ModelViewer/ModelViewer.sln
  2. Select configuration: Debug (full validation), Profile (instrumented), Release
  3. Build and run

Controls

Camera

  • Forward/Backward/Strafe: left thumbstick or WASD (FPS controls)
  • Up/Down: triggers or E/Q
  • Yaw/Pitch: right thumbstick or mouse

Light

  • Forward/Backward/Strafe: left thumbstick or WASD (FPS controls) + left mouse button
  • Up/Down: triggers or E/Q + left mouse button
  • Yaw/Pitch: right thumbstick or mouse + left mouse button

Others

  • Toggle slow movement: click left thumbstick or lshift
  • Open debug menu: back button or backspace
  • Navigate debug menu: dpad or arrow keys
  • Toggle debug menu item: A button or return
  • Adjust debug menu value: dpad left/right or left/right arrow keys

License

This software is released under the MIT License, see LICENSE.txt.

vsgl's People

Contributors

yusuketokuyoshi avatar

Stargazers

Zin avatar Imanol Fotia avatar Zhimin Fan avatar Junping Yuan avatar  avatar 大熊 avatar  avatar Charles Sun avatar Phan Sang avatar Juan Luis Morales Jimenez avatar  avatar  avatar  avatar hahnsc avatar Ken Hu avatar Jerry Xiong avatar sad1e avatar  avatar Stefan Dyulgerov avatar vasya vasin avatar acidburn avatar wonjun avatar Paweł Pyrek avatar  avatar Snowapril avatar hyeonjang avatar  avatar Chieh Hubert Lin avatar PENGUINLIONG avatar 空白咯 avatar  avatar  avatar Weidong He avatar Vincent Pancaldi avatar Dmitry avatar kielnow avatar Igor Kriklivetc avatar Loukas Agorgianitis avatar Rogiel Sulzbach avatar Flávio Pontes avatar Andreas Mattsson avatar  avatar WA avatar Kenta Eto avatar hazukiaoi avatar Will Cassella avatar 徐小厨烹小鲜 avatar hwixlab avatar  avatar Martijn Gribnau avatar Tibor Nyers avatar Lava Block avatar  avatar Vlad Serhiienko avatar YooPita avatar Future Infinity avatar  avatar peppemas avatar  avatar  avatar Jasper Drescher avatar Julien Hamaide avatar Felipe Santos avatar Polar avatar  avatar gan_ avatar Phil Guo avatar José Villegas avatar Matt Ostgard avatar  avatar CANTENOT Thierry avatar BB avatar Nick Sukharichev avatar Wang Kai avatar Ivan Achlaqullah avatar Elijah Semyonov avatar  avatar  avatar  avatar  avatar Stelios Petrakis avatar David Ballesteros avatar  avatar Brad Svercl avatar Jeffrey Zhuang avatar Li Xiaosheng avatar Lin Hsu avatar .ruby avatar Marek Badera avatar SZ avatar Buma avatar  avatar Marc Girones avatar Man Sun avatar Nicholas Korn avatar  avatar cmo avatar George Corney avatar  avatar Pedro Kayatt avatar

Watchers

Claudia Doppioslash avatar Marc Girones avatar Arie Leo avatar Paritosh Kulkarni avatar  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.