Dielectric Material giving black ring inside the sphere #1035
Shivraj1906
started this conversation in
Debugging
Replies: 2 comments 3 replies
-
The hollow glass sphere should have a radius of -0.4, not -0.5. Also, you are missing the outer layer of the sphere (the second sphere at -1, 0, -1). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Interestingly, you are not the only one with this exact problem. Wondering if there is a buggy version of the book somewhere. See also #513 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am following the book and writing the code in Java. Everything worked fine until I implemented the Dielectric material.
It is giving the black ring inside the sphere.
I guess the problem is with how I am calculating the normals. But I can't figure it out.
Link to my repo:
https://github.com/Shivraj1906/raytracer.git
Beta Was this translation helpful? Give feedback.
All reactions