Extract smaller frustum from camera frustum?
Background:
I was thinking of trying to implement multiselection by performing a frustum culling on a sub-part of the screen.
Problem:
Given total screensize, a rectangle on the screen (pos, size), and the original camera frustum (projection, pos, rot), how can I construct a sub frustum corresponding to the given rectangle?
I am using DirectX and stores my frustum in a BoundingFrustum class from DirectXMath, but solutions in the general sense are also welcomed.
Background:
I was thinking of trying to implement multiselection by performing a frustum culling on a sub-part of the screen.
Problem:
Given total screensize, a rectangle on the screen (pos, size), and the original camera frustum (projection, pos, rot), how can I construct a sub frustum corresponding to the given rectangle?
I am using DirectX and stores my frustum in a BoundingFrustum class from DirectXMath, but solutions in the general sense are also welcomed.
No comments:
Post a Comment