The Ray Tracer Challenge (Pragmatic Bookshelf)
Most Active This Week
Most Active This Month
Most Active This Year
Hi Jamis,
I’ve been working my way through Chapter 10: Generalising Patterns and came up agains a problem with the gradient. When appli...
New
EDIT: I misread the scientific notation, I was getting, “-4.37114e-08”, turns out that’s almost 0. GTest’s ASSERT_FLOAT_EQ is super conse...
New
Hello,
first of all, thanks for the book, it helped me a lot.
I just encountered an issue with the refraction, i have implemented the t...
New
Most Active Last Three Years
Hi, I’m working on the Chapter 8 of the book.
After I add add the point_offset, I’m still able to see acne:
In the image above, I re...
New
@jamis
I’m getting odd values for my color calculations in tests 4 and 5 in the reflection section-
github.com/zdybak/ray
The tests ar...
New
Hello @jamis and everyone,
I’ve implemented the gradient pattern as described in the book and it gives me this output:
The code for ...
New
Most Active Over Three Years
The test is as follows:
Scenario: Intersecting a scaled sphere with a ray
Given r ← ray(point(0, 0, -5), vector(0, 0, 1))
And s ← sphere...
New
Feels like a slightly redundant question at this point (since I can already see a lot of similar repos on GitHub), but just to check - is...
New
Hi. I’m working on this test:
Scenario : The pixel size for a horizontal canvas
Given c ← camera(200, 125, π/2)
Then c.pixel_siz...
New
Also posted to the old forums.
Hello there!
I just finished chapter 8, and I now have shadows! Yay!
However, when I ran the whole test...
New
@jamis
Page 130 I render the wall ok by rotating the plane in x PI/2 as he says to do on page 125.
However I get a massive shadow acros...
New
@jamis
Unfortunately, my final image of chapter 7 is flipped:
All the tests from the chapter pass.
My camera and ray generation are...
New
On Page 37. How to calculate the cofactor for a 4x4 matrix is never shown. Only the 3x3.
How is the author getting the cofactor(A,0,0) =...
New
@jamis
I’ve been handling 2x2, 3x3, and 4x4 matrices just fine. In fact my code handles NxM matrices right now but I’ve noticed all of ...
New
Title: Ray Trace Challenge: Inversion pg 49
I have gotten all my code (including my matrix multiplication and inversion routines) to pas...
New
Hi,
I’m stuck on the test for #7 “Intersecting the caps of a closed cylinder”.
Tests 3 & 5 are failing as the intersections count i...
New
@jamis
At the end of Chapter 14 the book briefly mentions that materials applied to groups have no effect on children shapes. I’d like ...
New
Publisher:
Pragmatic Bookshelf
Latest in The Ray Tracer Challenge
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!
Filter by Type:
Related Portals
-
None added yet









