The Ray Tracer Challenge (Pragmatic Bookshelf)
Hot This:
Latest Threads About This Book

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

@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

Title: Ray Trace Challenge: Inversion pg 49
I have gotten all my code (including my matrix multiplication and inversion routines) to pas...
New

@jamis
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the threa...
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

@jamis
After introducing the ideas of tuples, vectors, and points, the book goes on to say:
But looking at (4, -4, 3) and (-4, 4, -3) ...
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

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
Unfortunately, my final image of chapter 7 is flipped:
All the tests from the chapter pass.
My camera and ray generation are...
New

Hi @jamis,
I’m not sure if this has been discussed elsewhere, so apologies for a potential duplicate.
I refer to cone normal calculatio...
New
Most Active This Week

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
Most Active This Year

Hi Jamis,
I think there’s an issue with a test on chapter 6. I own the ebook, version P1.0 Feb. 2019.
This test doesn’t pass for me:
...
New

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
After introducing the ideas of tuples, vectors, and points, the book goes on to say:
But looking at (4, -4, 3) and (-4, 4, -3) ...
New
Most Active Last Three Years

Author Spotlight
Jamis Buck
@jamis
This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New

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

Hi @jamis,
I’m not sure if this has been discussed elsewhere, so apologies for a potential duplicate.
I refer to cone normal calculatio...
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

@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
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

@jamis
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the threa...
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
Most Active Over Three Years

Think Again 50% Off Sale »
The theme of this sale is new perspectives on familiar topics.
Enter coupon code ThinkAgain2021 at checkout t...
New

The following is cross-posted from the original Ray Tracer Challenge forum, from a post by garfieldnate. I’m cross-posting it so that the...
New

As per the title, thanks.
New

Brace yourself for a fun challenge: build a photorealistic 3D renderer from scratch! In just a couple of weeks, build a ray tracer that r...
New

Whilst the author has been careful to provide exact results for the tests elsewhere in the book (such as surds with the transformation te...
New

The Ray Tracer Challenge by @jamis: p. 28
It appears to me that on page 28, there is an error. The first column of the features/matrices...
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 & thanks for the book!
I’m following the book building a ray tracer and would like to publish the code it as open source. I’m usi...
New

In the last hint (#4) of Chapter 5, the pseudocode applies a normalization to the origin ray:
r ← ray(ray_origin, normalize(position - ...
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

I am working on Chapter 8 when we add shadows. When this is done, though (on p. 115), the original ShadeHit test no longer passes. This p...
New

I think the following pseudocode from the book contains a bug:
function position(ray, t)
return ray.origin + ray.direction * t
...
New

In the book, at the bottom right, there are the “discuss” and “report erratum” links, pointing to:
discuss: http://forums.pragprog.com/...
New
Book Info
Publisher:
Pragmatic Bookshelf
Get money off!

The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.
Latest
Filter by Type:
Related Portals
-
None added yet