Sign in to follow this  
jnmanyaga

Frustum culling question

Recommended Posts

jnmanyaga    122
whats the space does my frustum is located? is it in world space or in object space. Im confused on how to check the bounding boxes of the 3d object in the scene if i need to transform these boxes in world space to check with the frusutm or i need to inverse its coordinate to return to world space. i computed the frustum by using the view and the projection matrix as most of u did

Share this post


Link to post
Share on other sites
Mari_p    232
The frustum is defined with a set of 6 planes. These planes (their equations) could be described relative to the world coordinate system (world space) or relative to the view coordinate system (view space). So, if your bounding boxes were defined in the world space, you must check them with a frustum described in the world space. If the BB were defined in the view space, use a frustum described in the view space.

Share this post


Link to post
Share on other sites
JohnBolton    1372
The frustum can exist in any space. Except for projection/clip space the only difference is the location and orientation. But in projection/clip space, the frustum is a "cube".

One way to get the view frustum in world space is to transform the sides of the "cube" into view space using the inverse of the projection transform, and then tranform that into world space using the inverse of the view transform(which is the camera's model/world transform).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this