I have a camera frustum modeled by a pyramid. I have all the vertices, edges, and planes for this pyramid.
I then have a room with 6 walls modeled with planes. For these planes, I have the normal vector, center position, Length, and Width.
I am trying to figure out a way to check if the plane intersects the pyramid. Computational complexity matters to me for this problem, so I have tried some various things to narrow down the number of possible planes:
Does anyone have any suggestions on how to check if a plane is within the frustrum?
Thanks
Let the implicit equation of the plane be Ax+By+Cz+d=0
.
When you plug the coordinates of the five vertices of the pyramid into that equation, the plane intersects the pyramid if not all signs are the same.