Geometry factor for parallel light? back
Board:
Home
Board index
Raytracing
General Development
(L) [2018/03/03] [ost
by dawelter] [Geometry factor for parallel light?] Wayback!Say we have a source of parallel light, described by a delta distribution like Le(x,w) = dirac_delta(w-w0)*f(x). This could be a "laser-like" source like I indicated in the pic below or an infinitely distant light.
parallel_light_handling.png
Question is, when to add the 1/r^2 factor in the geometry term?
For illustration, my Gedankenexperiment:
*Case on lhs: Source projects a parallel beam. Its cross section is fixed. Even after going through the mirror. Thus the power received by the target in the bottom is independent of how far we take it away from the mirror. So I would omit the r-factor.
*Case on rhs: Light spreads out the further it goes away from the light source and/or the mirror. Decreasing power density must be accounted for by the r^-2 term.
So, tracing a path from a parallel source, I would omit the r^-2 term until the path hits a non-specular surface.
I wonder if I have the wrong idea in mind because I don't recall reading anything about propagating a "parallel beam flag".
(L) [2018/03/03] [ost
by dawelter] [Geometry factor for parallel light?] Wayback!Say we have a source of parallel light, described by a delta distribution like Le(x,w) = dirac_delta(w-w0)*f(x). This could be a "laser-like" source like I indicated in the pic below or an infinitely distant light.
[IMG #1 parallel_light_handling.png]
Question is, when to add the 1/r^2 factor in the geometry term?
For illustration, my Gedankenexperiment:
*Case on lhs: Source projects a parallel beam. Its cross section is fixed. Even after going through the mirror. Thus the power received by the target in the bottom is independent of how far we take it away from the mirror. So I would omit the r-factor.
*Case on rhs: Light spreads out the further it goes away from the light source and/or the mirror. Decreasing power density must be accounted for by the r^-2 term.
So, tracing a path from a parallel source, I would omit the r^-2 term until the path hits a non-specular surface.
I wonder if I have the wrong idea in mind because I don't recall reading anything about propagating a "parallel beam flag".
[IMG #1]:Not scraped:
/web/20190531083823im_/http://ompf2.com/download/file.php?id=289&sid=30e658fd34833554e9634aa3ab65a200
(L) [2018/03/05] [ost
by shocker_0x15] [Geometry factor for parallel light?] Wayback!I'm not sure if I understand your question, but I think 1 / r^2 term should always be considered and is implicitly considered if you trace a path from the light source even if it is parallel light.
Light path construction is performed as follows:
sample a point y0 on the light with pdf p_A(y0) and get emittance (spatial component of emission) L_e^0(y0) [W/m^2]
Monte Carlo estimate:
L_e^0(y0) / p_A(p0)
sample a direction along which a ray emits with pdf p_w(y0->y1) and get a directional component of emission L_e^1(y0->y1) [1/sr]
Cumulative Monte Carlo estimate:
L_e^(y0) L_e^1(y0->y1) * |dot(n0, y0->y1)| / (p_A(y0) * p_w(y0->y1)) =
L_e(y0->y1) * |dot(n0, y0->y1)| / (p_A(y0) * p_w(y0->y1))
The above is the estimate for incoming flux at y1. It doesn't contain 1/ r^2 term because it is flux, not radiance nor intensity.
However we notice that it implicitly contains 1/r^2 if it is written with respect to surface area:
L_e(y0->y1) * |dot(n0, y0->y1)| / (p_A(y0) * p_w(y0->y1)) =
L_e(y0->y1) * G(y0<->y1) / (p_A(y0) * p_w(y0->y1) / |dot(n0, y0->y1)| * G(y0<->y1)) =
L_e(y0->y1) * G(y0<->y1) / (p_A(y0) * p_A(y1))
The numerator is the measurement contribution function from y0 to y1.
The function contains 1 / r^2 term but it is cancelled by corresponding G term for the pdf.
(L) [2018/03/16] [ost
by dawelter] [Geometry factor for parallel light?] Wayback!Yeah, I wasn't clear. I was mostly thinking of the path densities used to compute MIS weights. Eq 10.9 in Veach's thesis.
So this is really a question about the density of the end points in the left hand side case. I suppose the density does not change no matter how much I would move the target surface up or down. So I would omit the r^2 term in the density.
I tried to implement that, but to my surprise I didn't see a difference to the baseline version. It is probably bugged, but the renderings look all right.
back