1
$\begingroup$

I'm watching the TU Wien rendering lectures in the course we were presented with a rendering equation (first one on the screenshot) and then another, which results from a change of variables (if I understand correctly).

No when we moved to the basic path tracer lecture, we have been using the first equation. Why is that? I thought we use the second equation when dealing with arbitrary objects (with bigger distances than 1 and different angles of the surface) and Eq.1 was just a tool to derive it.

In general I am a bit confused, when to use what equation, what is the correct image formation model, if I have an image of a scene I click and I have a renderer, how do I accurately model what we will capture?

enter image description here

$\endgroup$

1 Answer 1

0
$\begingroup$

Both equations are correct, they are just writing the incoming radiance at point $x$ as an integral over two different domains. The first line is the solid angle formulation (integrating over all $\omega \in \Omega$), while the second one is the surface area formulation (integrating over all differential area point $A_y \in S_l$). The additional cosine term divided by the square distance is simply the Jacobian of this change of variable.

The surface area formulation of the rendering equation is quite useful as it allows to integrate over all area light sources in a scene. Sometimes, it can be better to use the solid angle form for certain types of emitters (e.g. when your emitter is a perfect sphere, in which case you can sample its spherical cap more efficiently). In most cases, however, the surface area is preferred as it allows for more general emissive profiles.

As an example, suppose your light is an emissive bunny. How would you sample the subtended solid angle? It can be quite tricky without determining the silhouette edges! But in the surface area form, all you have to do is sample a triangle proportional to its area, sample a point on that triangle using barycentric coordinates, and you're done.

Both formulations have their pros and cons and a renderer will allow you to switch between one and the other (only when possible), with the default being surface area as most emitters are usually attached to an arbitrary mesh.

$\endgroup$
4
  • $\begingroup$ Thanks a lot for the reply, much appreciated! So practically speaking if I'm doing Monte Carlo Integration to approximate this integral. In the solid angle formulation I would sample directions ($\omega$), what would I be sampling in the second fomrulation? If I understand correctly that would be points on the surface of the emitter? Wouldn't that be super inefficient if the surface is unknown? How would that work in practice? $\endgroup$
    – analysis1
    Dec 24, 2022 at 18:10
  • $\begingroup$ Yes. In the surface area formulation, you would sample point on an emitter and combine the contribution with MIS and Next Event Estimation (NEE). More precisely, you would sample a point on an emitting surface to estimate $L_e$ and sample your BSDF for an outgoing direction to recurse for path tracing. Regarding your second question, you usually know your emitters in advance so sampling it isn't too much of an issue. However, it can be inefficient when only a very small portion of the light is visible from $x$, in which case many samples will be wasted due to zero-visibility. $\endgroup$
    – Hubble
    Dec 24, 2022 at 19:12
  • $\begingroup$ Thanks a lot! I just had one follow up I'm not clear about. Let's say you're doing the solid angle formulation. Then how will you account for the square fall off of the light intensity (with distance)? If you choose a angle in your hemisphere and march along it and then meet a surface, you will just add up the radiance, without really accounting for the distance where you find this surface? $\endgroup$
    – analysis1
    Dec 26, 2022 at 0:32
  • $\begingroup$ @analysis1 The $\frac{1}{r^2}$ comes from the change of measure, it is not in the solid angle formulation - radiance doesn't fall off as $\frac{1}{r^2}$ - the projected areas do. In the area formulation you essentially project said areas on the hemisphere which results in the extra cosine and distance fall off + the visibility term. $\endgroup$
    – lightxbulb
    Dec 26, 2022 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.