Replies: 2 comments 2 replies
-
Looks like your For comparison, our book progression branches (which we use for validation and testing) are all under |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to rewrite this book in Rust, and as far as I can tell, I've done everything 1:1 with the current published book (4.0.0-alpha.2, 2024-04-07)
As I can tell, within the older versions these lines:
raytracing.github.io/books/RayTracingInOneWeekend.html
Lines 680 to 683 in 891e5ac
Were represented as just a calculation for
lower_left_corner
.Implementing the old version from reference implementations works. But the newer version, doesn't produce the colorful sphere.
Within my code, if I add an offset to the return value of the
hit_sphere
function, the sphere with the Vectors is reproduced with correct colors, i.e. instead of:doing
fixes the issue and the exact image from the book is produced. Values between -0.5 and -0.27 produces different width circles. I'm not mathematically versed enough to understand why, but I thought this could help us diagnose this issue.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions