Git Product home page Git Product logo

analyticsharealight's Introduction

Analytic SH Area Light

Implementation of paper: Analytic Spherical Harmonic Coefficients for Polygonal Area Lights

Usage

run demo

run real-time demo with provided datas:

run.bat

run full pipeline (precompute + real-time)

place your data under data/ folder as:

  • mesh: data/your_mesh.obj
  • envmap: data/your_envmap.exr

and modify the variables in run_full.bat:

set envmap=your_envmap
set mesh=your_mesh

and run:

run_full.bat

TODO

  • Use trimesh for mesh io replacing open3d
  • Use pytorch-minimize to optimize zonal harmonics

Reference

  1. "An efficient representation for irradiance environment maps" by Ravi Ramamoorthi, Pat Hanrahan, SIGGRAPH 2001
  2. "Sparse Zonal Harmonic Factorization for Efficient SH Rotation" by Derek Nowrouzezahrai et al., SIGGRAPH 2012
  3. "spherical-harmonics" https://github.com/google/spherical-harmonics
  4. "SphericalHarmonics" https://github.com/chalmersgit/SphericalHarmonics
  5. "Analytic Spherical Harmonic Coefficients for Polygonal Area Lights" by Jingwen Wang, Ravi Ramamoorthi, SIGGRAPH 2018
  6. "Applications of Irradiance Tensors to the Simulation of Non-Lambertian Phenomena" by James Arvo, SIGGRAPH 1995

analyticsharealight's People

Contributors

luniumluk avatar

Stargazers

Yijie Deng 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.