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

57 views
Skip to first unread message

Kevin Zhang

unread,
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? 

Thanks, 
Kevin 

Matt Pharr

unread,
Jan 28, 2023, 11:11:11 AM1/28/23
to pb...@googlegroups.com
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.

Thanks,
Matt

--
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 pbrt+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pbrt/e80d1af0-0a17-4645-bb54-35c4adf6eff5n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages