The Ray Tracer Challenge (Pragmatic Bookshelf)

Most Active This Week 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 ...
New

Most Active This Month Top

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...
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...
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...
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 ...
New
robcat2075
Title: Ray Trace Challenge: Inversion pg 49 I have gotten all my code (including my matrix multiplication and inversion routines) to pas...
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...
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...
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 ...
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...
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...
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...
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...
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) =...
New

Get money off!

The Pragmatic Bookshelf

35% off any eBook

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