← All resources

A Couple 3D AABB Tricks

Auto-discovered

Blog Intermediate

Visit resource ↗

Description

A Couple 3D AABB Tricks is a December 2025 blog post on gpfault.net about practical representations and tests for axis-aligned bounding boxes in 3D code. The URL is one self-contained article with C++ style snippets.

It covers min and max slab storage versus centroid-plus-extents, merging enclosing boxes, encoding the eight AABB vertices with bit indices into minmax arrays, and the Kay/Kajiya style ray-AABB slab intersection with reciprocal directions, overlapping t-ranges, and notes on infinities and NaNs drawn from Ray Tracing Gems 2 explanations.

It is for intermediate graphics or game programmers implementing collision, visibility, or ray-tracing acceleration. Basic vector math and IEEE float edge cases help for the intersection section.

Access is a free HTML post with code listings and no login.

The write-up is useful as a short reference for AABB representation choices and a clear derivation of the slab ray test.