|
Post by sbphillips on Sept 6, 2022 21:26:31 GMT
I've done the initial work in the Bonus Chapter (up to the BVH section) and the tests work. I'm just missing the pieces that implement the bounding box in an actual scene. How is the RT code changed to incorporate a bounding box. Any help would be appreciated.
12Sep22 Able to get Bounding Box code running with the teapot file but seems to be slow. Trying to visualize bounding box around teapot and having trouble converting object space to world space. the bounding box dimensions look right, they just aren't centered on the teapot.
|
|
|
Post by Jamis on Dec 11, 2022 20:38:32 GMT
Super late reply here (apologies), but going from object space to world space should be a matter of multiplying each point by the teapot's transformation matrix (the original one, not the inverse). If the teapot is nested (in a group, for instance) you'll need to make sure you apply all the intermediate transformation matrices in the correct order, too. You're probably already doing this, though, so without seeing what you're doing it's hard to know what else to suggest. And perhaps you've already solved the problem by now!
|
|