ABBSphere in view frustum

Started by
0 comments, last by JohnnyCode 15 years, 2 months ago
hello, I have a question. I found a tutorial on how to test wheather a sphere is partialy or completly in the view frustum. It says this: "Testing spheres is similar to testing points, except for the radius of the sphere. A sphere is out of the frustum if its center is on the wrong side of at least one plane and the distance to the plane is greater than the radius of the sphere. If the absolute value of the distance is smaller than the radius then the sphere intersects the plane, meaning that the sphere is partially on the right side of the plane. Otherwise the sphere is completely on the right side of the plane." but there can be a case when sphere is on the wrong side of one plane and radius is greater then absolute distance from the plane, but still the sphere is outside of the frustum. So how do I correctly find out wheather sphere intersects frustum?
Advertisement
I know now, it must intersect every plane on whichs wrong side it is .

This topic is closed to new replies.

Advertisement