Original Post
Hi, I'll get straight to the point. I know it's possible to derive the 6 planes of a frustum from the combination of your model-view and projection matrix and I have a system set up to do this. If I drag a rectangle over my 3d window of an arbitrary size and position can I calculate a projection matrix that I can use to construct a frustum that represents this object selection volume in 3d? I also know it's possible to project the rectangle onto the near and far plane and construct the 6 planes from these points. That is a reasonable fall back method if the above isn't possible. However if it is possible, from a curiosity point of view, and to aid my understanding of how projection matrices work and are derived I would appreciate any pointers in the right direction. I'm using DirectX in case that is important. Thanks in advance for any help!