Comments (2)
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.
Thanks for your quick response! Very nice explanation.
from practical-path-guiding.
Related Issues (13)
- reason about not using NEE in Path Guiding HOT 2
- Question about the KL Divergence HOT 2
- Reason about setting new vertex with zero radiance HOT 2
- Reason for dropping the previous tree HOT 2
- Binary tree vs Octree HOT 4
- Questions about Sample Deposit HOT 2
- Question regarding statisticWeights in building quadtree HOT 2
- When the distribution of radiance is extremely narrow, the pdf value will be extremely large. HOT 4
- Adjoint Russian Roulette HOT 2
- About Vorba's guided path tracer HOT 2
- Scons build errors HOT 3
- About the division of pdf in the record code HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from practical-path-guiding.