Jump to content
  • Advertisement
Sign in to follow this  
EddieV223

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

This topic is 1928 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!