My Reformulation of the Rendering Equation (+Applications)

Practical and theoretical implementation discussion.
Post Reply
Geometrian
Posts: 29
Joined: Sun Jul 28, 2013 6:53 pm
Contact:

My Reformulation of the Rendering Equation (+Applications)

Post by Geometrian » Tue Jul 30, 2013 4:48 am

Hi,

After a lot of work, reverse engineering, and guessing, I came up with a somewhat different formulation of the rendering equation which I find far more clear and intuitive (if more verbose) than everything else I have seen. It looks like this:
Image

I wrote up the experience, along with a full description and explanation in what I guess you could call a blog post phrased as a tutorial. The link is currently here:
http://www.geometrian.com/programming/t ... /index.php

While I have checked my work and have applied it to rederive the diffuse code found in SmallPT, I don't know whether I have overlooked something. I would greatly appreciate someone skimming my article to make sure it's reasonably sound. Additional comments here are of course welcome.

Thank you!
-G

Lo1
Posts: 9
Joined: Fri Jul 26, 2013 12:24 pm

Re: My Reformulation of the Rendering Equation (+Application

Post by Lo1 » Tue Jul 30, 2013 7:05 am

Hi,

'I hope this tutorial was helpful' for me it was.

Thank you.

Geometrian
Posts: 29
Joined: Sun Jul 28, 2013 6:53 pm
Contact:

Re: My Reformulation of the Rendering Equation (+Application

Post by Geometrian » Tue Jul 30, 2013 10:56 pm

Keep in mind I don't know it's right. I've have used it to rederive SmallPT's diffuse term (and I just now used it to rederive the weighting for explicit light sampling; I'll add that in soon), but that doesn't mean it's necessarily correct.
Thanks for reading! :)

Geri
Posts: 146
Joined: Fri Mar 02, 2012 7:01 pm

Re: My Reformulation of the Rendering Equation (+Application

Post by Geri » Wed Jul 31, 2013 9:14 am

Csontos kezünkbe a nyomor
Ezer év rúnáit véste

Zelcious
Posts: 42
Joined: Mon Jul 23, 2012 11:05 am

Re: My Reformulation of the Rendering Equation (+Application

Post by Zelcious » Wed Jul 31, 2013 11:05 am

This is going to sound harsh but you removed (N*w) from brdf and made it non symmetric and made Em not measure radiance any more. For me there is no progress there. But it doesn't really matter. However, whatever works for you is ok, as long as you keep track of all the details. It will be harder to communicate with others once you deviate from the consensus though.

Geometrian
Posts: 29
Joined: Sun Jul 28, 2013 6:53 pm
Contact:

Re: My Reformulation of the Rendering Equation (+Application

Post by Geometrian » Wed Jul 31, 2013 11:34 am

you removed (N*w) from brdf and made it non symmetric
So that's why it's in there! I pulled the N*w_o term out since its function is the same as the N*w_i term, just the other way. I maintain that this way is clearer.
Em not measure radiance any more
Actually, I see that as a benefit. The extra emission from a surface follows some distribution--e.g., as I noted, a diffuse emitter will emit in all directions with a cos(theta) distribution, and will cancel out the attenuation term outside the brackets, giving a constant factor. A constant Em term in all directions gives rise to brighter surfaces at glancing angles. For me, not having that implicit cosine attenuation is more clear. Apart from transferring energy between points, I don't like the radiance unit.
However, whatever works for you is ok, as long as you keep track of all the details. It will be harder to communicate with others once you deviate from the consensus though.
Agreed. And really, I'm not tied to this particular formulation. The goal was to try to express every term as simply as possible--without hiding projections and scalings and whatnot inside other terms. Even if I don't end up using it, I think doing that was illustrative for me. I just want to make sure I did it correctly.

Tristan
Posts: 10
Joined: Fri Jun 29, 2012 1:27 pm

Re: My Reformulation of the Rendering Equation (+Application

Post by Tristan » Wed Jul 31, 2013 3:34 pm

Thanks for posting this Ian. I certainly found it helpful.

erichocean
Posts: 3
Joined: Sat Apr 19, 2014 11:15 pm

Re: My Reformulation of the Rendering Equation (+Application

Post by erichocean » Sun Apr 20, 2014 12:28 am

Ian, you rock! Implicit terms in mathematics are the bane of my 3D rendering existence.

Note to others: please always, always, ALWAYS show the "way too much detail, everything is explicit" version first for mathematical concepts, in concrete form, and then, and only then, show the simplified version with all of the implicit stuff omitted. It's much, much easier for non-mathematicians (like myself) to read, understand, and then implement.

All I get from the majority of rendering papers is the idea. The math is almost always too opaque for me to actually translate into code. Posts like Ian's are hugely helpful to someone like me who doesn't know all of the stuff you guys take for granted.

(Yes, I've read PBRT (both versions, multiple times) and hundreds of rendering-related papers. I'm stuck at square one because NO ONE, EVER explains things like I'm an idiot (except for Ian). It would be awesome if more people did that. None of this stuff is particularly hard, it's entirely terminology- and notation-related IMO.

Post Reply