3
\$\begingroup\$

I've constructed an octree for use in frustum culling. The question is, should I insert an AABB for each bone of each object, or just the one AABB for the object?

\$\endgroup\$
  • 2
    \$\begingroup\$ Bones? If the object is animated using bones then you would need to get the 'biggest' AABB possible (for all animations) and use that one. Recalculating boxes according to the new bone size/pos/rot and moving inside the octree each frame will most probably be a bottleneck. \$\endgroup\$ – Valmond Mar 22 '12 at 10:46
6
\$\begingroup\$

You should really just use one AABB for most objects. You could always check the object twice, first on a per-object basis and then on a per-bone basis if you want the extra precision.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.