Game Development Reference
Once the effective radius is known, we proceed in exactly the same manner as we
would to test an ellipsoid. For each frustum plane L , we calculate the 4D dot
product between the plane and the center Q of the bounding box. If for any plane
L Q , then the box is not visible.
In the case that the length of R is much greater than the lengths of S and T , a
box may not be rejected in many situations when it lies far outside the view frus-
tum. An instance of this case is demonstrated in Figure 8.8. To circumvent this
problem, we can reduce the box intersection test to a line segment intersection, as
is done for cylinders.
In terms of the bounding box center Q and its primary axis R , we can express
Q of the line segment representing the box as
The effective radius eff
with respect to a plane having unit normal direction N is
Figure 8.8. This example demonstrates that using the point test for a box having one di-
mension much larger than the other two can result in the failure to reject a box that lies a
significant distance outside the view frustum.
Search Nedrilad ::