Skip to content
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

Fix section describing total internal reflection #1425

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Conversation

hollasch
Copy link
Collaborator

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
@hollasch hollasch added this to the v4.0.0-alpha.2 milestone Mar 10, 2024
@hollasch hollasch requested a review from a team March 10, 2024 23:00
@hollasch hollasch self-assigned this Mar 10, 2024
Copy link
Contributor

@armansito armansito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some minor suggestions. My suggestion about a figure doesn't need to get resolved in this PR.

books/RayTracingInOneWeekend.html Outdated Show resolved Hide resolved
books/RayTracingInOneWeekend.html Show resolved Hide resolved
@hollasch hollasch merged commit 98ef644 into dev Mar 20, 2024
@hollasch hollasch deleted the illustrate-TIR branch March 20, 2024 03:57
rupsis added a commit that referenced this pull request Mar 27, 2024
rupsis added a commit that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants