Giter Site home page Giter Site logo

Comments (2)

Tom94 avatar Tom94 commented on May 27, 2024

Hi Shilin,

intuitively speaking, our ultimate goal is to sample each quad of the DTree proportional to the incident "energy" that flows through it. So we want to store said "energy" within each quad. What I mean by "energy" is the integral of radiance over the quad's solid-angle footprint. This is where woPdf comes in: we estimate that integral via Monte Carlo and woPdf is the solid-angle PDF we use for importance sampling.

You raise a good point on whether the units of this integral truly are "irradiance"---this is actually a slight abuse of notation and the cosine factor is indeed missing. The integral has units of flux per projected surface area as opposed to Wikipedia's definition of irradiance as flux per _un_projected surface area. Hence the discrepancy of the cosine factor (to convert between projected and unprojected area). In the code, projected area fits better into the framework of radiance, as it makes converting back to radiance easy: assuming piecewise-constant radiance across quads allows dividing each quad's energy by the quad's solid-angle footprint to obtain the learned radiance.

Lastly: irradiance and radiance are not only related by a cosine factor. They're related by an integral and a cosine factor. If you combine your formulas, you get dE / dw_i == L_i * dot(w_i, n). Integrate on both sides to get E == int(L_i * dot(w_i, n) dw_i).
woPdf takes care of the integral and I omit the cosine factor as mentioned above, because energy per projected area is more convenient than energy per area. :)

Cheers!

from practical-path-guiding.

ShilinC avatar ShilinC commented on May 27, 2024

Thanks for your quick response! Very nice explanation.

from practical-path-guiding.

Related Issues (13)

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.