-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Book 1 Section 10.3 Dielectric Sphere In Images Appears Identical Despite Total Internal Reflection Changes #900
Comments
If I understand your issue, this was fixed in the |
Review during the final v4.0.0 progression audit. |
Going through this recently, I had the same complaint as the OP and I don't see that this was updated in before: https://github.com/RayTracing/raytracing.github.io/blob/dev-major/images/img-1.14-glass-always-refract.png To my eye, the only difference is that the middle sphere changed to diffuse blue. The left sphere looks exactly the same. Turning on/off this feature in my own testing seems to change a total of 3 pixels by an LSB. Perhaps a note saying this isn't expected to change the image might be warranted? |
To be more exact, We'll be going through and updating all of the images and the associated text in the books as the penultimate step in the v4 release. See #778 We'll take extra caution for this specific image. Up to and including rewriting the code if we think that we need to make the visual difference even more noticable/obvious. Although so many subtle things have changed in the last two years that we'll be taking extra caution everywhere |
Thank you for the quick reply & for clarifying. I will note that I'm struggling to create an image with noticable total internal reflection. Hope you have better luck than me. 😄 |
@rightbrace — very nice illustration! Yes, working through this myself, I'm also convinced that you cannot observe total internal reflection in a sphere of IOR > 1 when looking from the outside. Other geometries could show this, for example a solid box, but we don't model those. Hmmm, we could show this with a cube, but we haven't defined quadrilaterals yet. (Actually, we could illustrate this with a single refracting quad.) So, what to do? I think the easiest way would be to show renders of air bubbles inside a water medium (with a flipped index of refraction). That should allow us to show a sphere where mostly direct rays refract, and glancing rays reflect. I'll see what I can conjure up. Thank you again for the great follow-up! |
With a sphere of index of refraction greater than the surrounding medium, there is no incoming ray that can be chosen to show total internal reflection. An incoming ray will be bent to a smaller angle relative to the surface normal, and then bent back to the original angle on exit. To illustrate total reflection, this change renders a bubble of air inside water. Glancing rays are then reflected off the surface instead of refracted. In the service of this change, I've also moved the center sphere back a bit from the left and right spheres so you can see the affected side more clearly. This will invalidate all of the other three-sphere images, which will be fixed up in #1358 (Alpha.2 milestone verify Book 1 progression). Resolves #900
With a sphere of index of refraction greater than the surrounding medium, there is no incoming ray that can be chosen to show total internal reflection. An incoming ray will be bent to a smaller angle relative to the surface normal, and then bent back to the original angle on exit. To illustrate total reflection, this change renders a bubble of air inside water. Glancing rays are then reflected off the surface instead of refracted. In the service of this change, I've also moved the center sphere back a bit from the left and right spheres so you can see the affected side more clearly. This will invalidate all of the other three-sphere images, which will be fixed up in #1358 (Alpha.2 milestone verify Book 1 progression). Resolves #900
Done. |
An image of 2 glass spheres is presented immediately prior to Section 10.3, and then in Section 10.3, Total Internal Reflection, it starts off by saying:
That doesn't look right.
and then a new image is presented, which (randomly) changes the center sphere to blue and removes the fuzz on the right sphere.
The presentation flows like, "look at this image, ok it doesn't look right, then ok here's a new thing to consider (total internal reflection), and now look at the new image."
But that doesn't appear to be what was intended. Instead, we're introduced to total internal reflection, which doesn't even seem to appear in either image (as the left sphere appears the same in both images). The obvious thing to look for in the second image is some kind of improvement in the left sphere, after the discussion of TIR, but instead there's just those random 2 unrelated changes mentioned above.
The first image is captioned with "Glass sphere that always refracts", while the second says "Glass sphere that sometimes refracts", and yet the left sphere in both images appears identical. I don't understand what the author intended to convey here.
The text was updated successfully, but these errors were encountered: