• Advertisement
Sign in to follow this  

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

This topic is 1774 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

Hi does anyone know of a easy to use tutorial for frustum culling and uses bounding boxes ( not axis aligned ) for the tests?.

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Advertisement