tiegz
New Member
Posts: 5
|
Post by tiegz on Dec 21, 2019 22:07:34 GMT
Hey all, I'm almost finished with BVH's in this bonus chapter, but I'm stuck on the Scenario: Subdividing a group partitions its children test.
The bounds I'm getting for g's two split bounding boxes are:
Left Box: Min: -3, -3, -1 Max: 1, 5, 5
Right Box: Min: 1, -3, -1 Max: 5, 5, 5
And s3's bounds -- in parent-space -- are:
Min: 3, 3, 3 Max: 5, 5, 5
The test asserts that s3 is in g's children (i.e. that it doesn't get added to the Left Box or Right Box): "Then g[0] = s3"
But from my numbers above, s3 is only in the Right Box, so it is in the Right Box subgroup instead of g's children, and the test fails.
My first thought is that my two sub-groups are calculated incorrectly?
|
|
tiegz
New Member
Posts: 5
|
Post by tiegz on Dec 21, 2019 22:37:54 GMT
Annnddd right after I post this I realize that I did a Translation instead of a Scale on s3 🤦🏻♂️. Solved! Sorry about that.
|
|