To improve the efficiency of bounding volumes in a hardware based
ray tracer, we employ a sheared axis-aligned bounding box to approximate an oriented bounding box typically defined by rotations. To achieve this, the
bounding volume hierarchy builder shears an axis-aligned box to fit tightly around its enclosed oriented geometry in top level or bottom level space, then computes the inverse shear transform. The bounds are still stored as axis-aligned boxes in memory, now defined in the new sheared coordinate
system, along with the derived parameters to transform a
ray into the sheared coordinate
system before testing intersection with the boxes. The
ray-
bounding volume intersection test is performed as usual, just in the new sheared coordinate
system. Additional efficiencies are gained by constraining the number of shear dimensions, constraining the shear transform coefficients to a quantized
list, sharing a shear transform across a collection of bounds, performing a shear transform only for ray-bounds testing and not for ray-geometry intersection testing, and adding a specialized shear transform
calculator / accelerator to the hardware.