GithubHelp home page GithubHelp logo

yumcyawiz / ppmapa Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 2.0 2.99 MB

Header only implementation of Progressive Photon Mapping: A Probabilistic Approach(PPMAPA) in C++.

License: MIT License

CMake 1.47% C++ 98.53%
cpp cpp20 rendering computer-graphics raytracing photon-mapping

ppmapa's Introduction

ppmapa

Header only implementation of Progressive Photon Mapping: A Probabilistic Approach(PPMAPA) in C++.

In this reformulation of (stochastic) progressive photon mapping, not so many code changes are required from original photon mapping. You don't have to prepare hit points and local statistics of photons.

Due to this simplicity, most of the codes come from the implementation of original photon mapping

Algorithms are summarized as follows.

  1. Photon tracing
  2. Build photon map
  3. Ray tracing from the eye and estimate the reflected radiance with photon map
  4. Reduce the search radius for density estimation
  5. Go back to 1

Note that the procedure of 1, 2, 3 is the same as original photon mapping.

Features

  • Depth of field with thin lens camera
  • Load obj model

Requirements

Build

CMake option Description
BUILD_TESTS build tests
git submodule update --init
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Gallery

cornellbox-water2

Parameter Value
number of photons in each iteration 100000
number of iterations 1000
alpha 3/4
initial radius 0.01

This model is available under models/

Externals

References

ppmapa's People

Contributors

yumcyawiz avatar

Stargazers

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

Watchers

 avatar

Forkers

wsqjny

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.