Skip to content

bounding box center #538

Closed Answered by elalish
pca006132 asked this question in Q&A
Aug 25, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It actually doesn't matter - the bounding boxes are what actually get queried against, and so long as they are unioned properly up the tree, the result will be correct. The Morton code is about sorting such that those unioned bounding boxes tend to stay small, thus keeping the BVH efficient. Using centers does a decent job, and there's way more variance introduced by the z-order curve, so in practice it doesn't matter much.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pca006132
Comment options

pca006132 Aug 25, 2023
Collaborator Author

Answer selected by pca006132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants