Show HN: Physically Based Rendering – Online Edition(pbr-book.org) |
Show HN: Physically Based Rendering – Online Edition(pbr-book.org) |
In section 2.9.1 Quaternions, 4th paragraph reads as if it's missing an equation for the second representation of a quaternion:
A quaternion can be represented as a quadruple [EQ present] or as [EQ missing] , where is an imaginary 3-vector and is the real part. We will use both representations interchangeably in this section.
This is what it looks like for me:In general, you can send errata/bugs to authors@pbrt.org, but we got this one. :-)
It looks like an equation that MathJax wasn't happy with. I've got it fixed now and will include that fix in a push to the site in a little bit.
If you want to be listed as something other than "OnACoffeeBreak" in the errata credits, send me an email (matt@pharr.org).
Thanks again!
The image viewer works brilliantly and the renders are looking gorgeous. Looking forward to spending some hours with this on my iPad later.
Your road map says:
> We plan to release updated versions of the book roughly once a year, starting a year or so from now.
Out of curiosity, do you guys still plan to release new print editions?
I still buy physical books rather than e-books, but I always thought that hyperlinks were a great part of a reading experience as well.
Just a remark. When I first read the title, I was interested in the approximations you use because you emphasize physics so much in your book and your title. I read the preface and found a suspicious sentence.
When configured to do so, pbrt can compute images that are physically correct; they accurately reflect the lighting as it would be in a real-world version of the scene.
That is not correct. You use a phenomenological model for the light-matter interaction and approximate the effects of light with raytracing. That still produces (almost) photo realistic images for our eyes, but is not "physically correct". A paragraph on the limitations of technology could be worthwhile.
https://www.oscars.org/sci-tech/ceremonies/2014
>> To Matt Pharr, Greg Humphreys and Pat Hanrahan for their formalization and reference implementation of the concepts behind physically based rendering, as shared in their book Physically Based Rendering.
>> Physically based rendering has transformed computer graphics lighting by more accurately simulating materials and lights, allowing digital artists to focus on cinematography rather than the intricacies of rendering. First published in 2004, Physically Based Rendering is both a textbook and a complete source-code implementation that has provided a widely adopted practical roadmap for most physically based shading and lighting systems used in film production.
These will get you a quick overview and get something rendering. PBRT is a great follow up to really understand the physical underpinnings and get more into the theory of how to do things correctly and efficiently.
The book was originally written in TeX, with lots of macros on top. We hacked together a custom translator (~3k loc, written in golang) that parses the TeX and generates the site.
Then MathJax to render the equations, Bootstrap 4 for some navigation, and jeri.io for the interaction with images.
I had some plans to present some other such written-in-TeX-literate-programs in HTML; could you perhaps share somewhere your "big hack" that you used here (the translator, the javascript)? Totally ok if you don't want to :) Thanks,
It does not simulate wave-optical effects, polarization, fluorescence, and phosphorescence. Some of them are easy to add (e.g. polarization), others such as wave optics are very challenging to solve in a fully general setting and would make the resulting system impractical to use.
However, that's not the whole story: even when simulating the underlying optics meticulously, a rendering of plane is not going to look photorealistic. Some detail must also go into modeling of the input, which is beyond the scope of the book (though Section 10.6 talks a bit about creating detail with noise functions).
Honestly curious, since as a graphics person and not a physicist, I’ve been under the impression that most of our “physically based” rendering framework these days can be derived from, explained by, or validated against first principles, and that only some of the reflectance functions we use might be described as “phenomenological” (and we might call those “hacky”). And as @wjakob said, there are certainly optical effects we don’t normally see, and don’t spend time computing.
Is it possible to have phenomenological models that are correct? The word means the model hasn’t been derived from first principles, but it doesn’t mean the model is wrong... right?
Personally, I think of the term “physically correct” within the context of computer graphics history. It’s not a technical term, and its meaning historically is referring to what came before now, and maybe not as much of a strict literal absolute as your interpretation(?). The 80’s and 90’s were full of fabulous graphics tricks that are even less physically correct than what we have now. Video games still have lots of them too.
Calling our newer techniques “physically correct” is perhaps kinda like how we call our TVs now “high definition”, or our colors “high dynamic range”. They’re not “high” in any absolute sense of the word, they’re just higher than before. In 10 or 20 years, what we call “high definition” today is probably going to feel like pretty low definition.
What PBR people are doing is to imagine the matter at small scale looks like a patchwork of many small walls (perfect reflectance or ballistic transport), and assume that light and matter behave and interact the same way in a macroscopic setting, which is further simplified to Snell's law, neglecting all classical wave-like characteristics. Beyond that, obviously, all quantum mechanical effects are neglected (which aren't that exotic, for daily-life examples, think laser pointers or solar panels or crystals).
That is a far cry from an ab initio calculation and is, at best, a very incomplete toy model or cartoon description of light and matter interaction which might barely be enough to deceive human eye for most everyday objects.
E.g. it doesn't handle things like polarization, interference or fluorescence, assumes light is instantaneous, etc.
Of course there are non local scattering effects that are not captured by BRDFs and that can be perceptually important for some materials so there are also extensions like BSDFs used in some PBR renderers. Overall the PBR approach is to try and understand the underlying physics and drop or approximate (in a more or less principled way) the parts that are impractical to simulate or have small perceptual effects in most situations. It's not really about any specific such approximation like micro facet models. "Physically Based" seems like a perfectly good name for this approach, perhaps "Physically Inspired" would have been an appropriate alternative.
Approximations and models need to be made, that's how it works. Yes, you can make it better and better as the hardware improves. And calling it "physically based" sounds fine to me. What doesn't sound fine is to claim that any PBR-related work in the graphics literature today starts from "first principles". First-principles or "ab initio" in physics is a very specific technical word reserved for calculations which really start from first principles (see https://en.wikipedia.org/wiki/Ab_initio_quantum_chemistry_me... for an example) that doesn't get thrown around cheaply.
The use of that term was entirely my sloppiness alone. I used “first principles” only to mean the opposite of a phenomenological model, as @s-macke put it. What’s the right term there? Theoretical model?
You’re okay with “physically based”, but not “first principles”, @s-macke was okay with “first principles” but not “physically correct”. Personally, I wouldn’t mind being able to talk about graphics in a way that doesn’t immediately rub physicists the wrong way, but I’m not sure how, and I’m bound to cause some problems flinging around terms that have a precise technical meaning in physics. Sorry about that. ;)
It’s definitely true that in graphics we are not usually setting out to simulate quantum effects, unless the result is visible at the macro scale. Despite that, we’re trying to incorporate all the physics that matter at the macro scale.
> starting from a second-quantized form of the electromagnetic field + the lattice of the build or surface material + itinerant electrons.
I’d love to see a model derived that way that we can use in graphics, and I don’t have the physics chops for it. Feel like writing a paper for siggraph? ;)
> a very incomplete toy model... which might barely be enough to deceive human eye for most everyday objects.
Yep :) That is the end goal of most graphics, we do stop when it looks good enough.
Reflectance would be an emergent property of a material. No such thing exists in a microscopic quantum model (that is, first principles). It may make sense in certain situations, but it doesn't make sense in others.
Think about a simple process of an electron absorbing a photon, which later goes back to it's initial state by spontaneously emitting two photons of different colors (like from |0> -> |2> by absorption, and |2> -> |1> -> |0> by two consequent emission) with random delays in time (which has to obey the distribution is determined by Fermi's golden rule, which is in turn determined by the microscopic Hamiltonian). How do you assign a reflectance to this process?
Or a valance electron going into conduction band by absorbing a photon, moving around a bit, and emitting a similar photon at a different point after merging with a hole.
I can give you dozens of examples of physical processes of light-matter interactions that no kind of B*DF function can emulate.
> I’d love to see a model derived that way that we can use in graphics, and I don’t have the physics chops for it. Feel like writing a paper for siggraph? ;)
Solving the many-body problem in the presence of an EM field which is also treated quantum mechanically, without approximations that washes away all the quantum mechanical effects? That's probably worth a lot much more than a siggraph paper, like a couple dozen of Nobel prizes.
> Yep :) That is the end goal of most graphics, we do stop when it looks good enough.
I completely agree, and I'm not saying it's a bad model for its purposes. It just isn't a first principles physics, is all I'm saying.
BTW, I hope you don't think this is just me being picky about words; if you talk to any physicists in condensed matter matter physics and say the magic words "first principles", they'd immediately start thinking that you did ab initio calculations. First-principles calculations and DFT is a sub-field, and entire careers and communities are built on it!
Not at all, thank you for taking the time to explain!