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. This method generates two virtual spherical Gaussian light sources (VSGLs) to roughly approximate 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
  • Optimized for scenes lit by a spot light

Algorithm

  1. Render a reflective shadow map
  2. Generate a diffuse VSGL and glossy VSGL from the reflective shadow map
  3. Compute lighting from the two VSGLs

Limitations

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

Requirements

Build and Run

  1. Open MiniEngine/ModelViewer/ModelViewer_VS16.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

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.