The Ray Tracer Challenge (Pragmatic Bookshelf)

Most Active This Week Top

Most Active This Month Top

Shadoka
Hello @jamis and everyone, I’ve implemented the gradient pattern as described in the book and it gives me this output: The code for ...
2 12 2
New

Most Active This Year Top

Henrai
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...
1 1015 4
New

Most Active Last Three Years Top

hgkjshegfskef
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...
1 1081 4
New
hgkjshegfskef
@jamis Unfortunately, my final image of chapter 7 is flipped: All the tests from the chapter pass. My camera and ray generation are...
0 756 1
New
BrendanLeber
@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 ...
0 623 1
New
robcat2075
Title: Ray Trace Challenge: Inversion pg 49 I have gotten all my code (including my matrix multiplication and inversion routines) to pas...
0 551 2
New
doja
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...
0 592 0
New
zdybak
@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...
1 501 1
New
simianarmy
@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 ...
0 473 0
New

Most Active Over Three Years Top

emmagordon
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...
3 982 2
New
CraigTreptow
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...
8 991 3
New
CraigTreptow
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...
1 934 2
New
FPChris
@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...
0 892 4
New
FPChris
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) =...
1 797 3
New

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.