Sign in to follow this  

Clip Planes for frustum culling

This topic is 3849 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I know there are plenty frustum culling tutorials out there that all involve 'custom' planes that you have to check all your geometry against to cull, but surely the built in clip planes would work? There must be a reason why there are 6 max... and built in to the gfx card so that means they must be hardware accelerated too! But would using these be faster (as in performance wise) than implemnting your own? Obvoiusly its a heck of a lot faster to implement! Thanks

Share this post


Link to post
Share on other sites
The user clip planes are for EXTRA culling, such as making the card not render things below water, etc. Frustum culling and clipping is already occuring without setting those, but it's happening per polygon.

The software based frustum culling with custom created planes that you're worried about has a different purpose. It is intended to remove large amounts of geometry at once. Using a QuadTree and testing the corners of each level against the frustum you can eliminate 1/4 of the world, in one quick test. Moving down the levels that passed the culling check, you may be able to remove another 3/4 of the remaining geometry in another couple quick tests. You may then opt to do a quick check of an object's bounding box/sphere vs. the frustum can eliminate the entire mesh, possibly saving several expensive shader and texture changes.

Let the hardware deal with culling triangles, and have your software deal with culling entire regions of the game world, and full meshes.

Share this post


Link to post
Share on other sites
Ok I get it. I was just hoping I cold let the hardware cull all those triangles as opposed to the software having to do it...

Oh well! Back to work then.

Thanks

Share this post


Link to post
Share on other sites

This topic is 3849 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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