Question on Interpreting Exercise 2 from Chapter 2 (Geometry and Transformations)

Skip to first unread message

Kevin Zhang

Dec 27, 2022, 11:14:44 PM12/27/22
to pbrt
Hi all,

I was looking over the exercises from chapter 2 of the 3rd edition and saw exercise 2, which involved modifying the bounding box representation to involve arbitrary user-defined slabs. If the bounding box representation is modified, then should the way the ray intersection acceleration data structures also be modified? If so, I'm a little confused because ray intersection acceleration is covered later in chapter 4. Or, is the exercise just to implement the user-defined bounding box plus some useful functions, like intersection functions? 


Matt Pharr

Jan 28, 2023, 11:11:11 AM1/28/23
That’s a good question. Arguably that’s not a great exercise, in that, as you’ve discovered, it has a number of cascading implications throughout the rest of the system—rays are never intersected with the shape-reported bounding box directly but the bounding box is only used for building acceleration structures. It might be a better exercise if the acceleration structures did an intersection test with the shape bounds before doing a ray shape test.


You received this message because you are subscribed to the Google Groups "pbrt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Reply all
Reply to author
0 new messages