Sign in to follow this  
EddieV223

Frustum culling using bounding boxes for objects to cull, need tutorial/example.

Recommended Posts

larspensjo    1561

I have an example that tests if a cube is outside the view frustum: https://github.com/larspensjo/ephenation-client/blob/fb5094c88fc31ea1f63bdf7dc8ffeb62eca50f64/Source/render.cpp#L201.

 

It is actually a little complicated. It may be that all vertices are outside of the view frustum, but that some part of the cube is still inside. My example uses a simplification, only testing if all vertices are outside at the same side.

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