I have camera frustum defined by 6 planes, and I have series of axis aligned
bounding boxes defined by center and size in each (XYZ) axis.
Now i have direction vector DX(dx, dy, dz).
Now I need a way to determine if the volume created from the box and
direction DX (volume extruded from box in direction (dx,dy,dz) to infinity -
just like a volume for stencil shadows generation) intersects the camera
frustum.
Is there any fast method to do this ?
Thanks for any ideas.
The extruded box is a convex polyhedron. So is the camera frustum. Use
the method of separating axes to determine whether or not the two
convex polyhedra are intersecting.
--
Dave Eberly
http://www.geometrictools.com