Jump to content
  • Advertisement
Sign in to follow this  
poigwym

how frustum cull big stuff like terrain

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

Advertisement

Generally you can cull terrain by the simple use of a quad tree, which generates the AABBs for you. The benefit of this is for larger worlds you can skip multiple tests with the quad tree as if an entire node fits in your frustum, by rule of thumb all child nodes do as well.

 

...and if an entire node is outside, then so also are all child nodes.  It's only for nodes that intersect that you need to descend and test children, so even if the dataset is huge, it's an exponential reduction with the first handful of tests lopping off a large percentage of it.

Share this post


Link to post
Share on other sites

 

Generally you can cull terrain by the simple use of a quad tree, which generates the AABBs for you. The benefit of this is for larger worlds you can skip multiple tests with the quad tree as if an entire node fits in your frustum, by rule of thumb all child nodes do as well.

 

...and if an entire node is outside, then so also are all child nodes.  It's only for nodes that intersect that you need to descend and test children, so even if the dataset is huge, it's an exponential reduction with the first handful of tests lopping off a large percentage of it.

 

 

...and your worse cases will normally be the edges of the frustum and near the camera. Which in retrospect, you saved a lot of time.

Edited by Tangletail

Share this post


Link to post
Share on other sites

Google can!  There is like 12 good articles and some with code when I searched for "quad tree terrain".  And it's much faster than waiting for a reply here.

Share this post


Link to post
Share on other sites

 

OcTrees do not work very well on terrain unless it's voxel based terrain. Other wise you're going to hurt yourself more than you're optimizing.

 

who can give me a simple turtorial about quad tree terrain? 

http://www.rastertek.com/tertut05.html

The concept for a Quad tree is not that hard. You recurssively subdivide spaces till you have x number of triangles contained inside of it.

Share this post


Link to post
Share on other sites

is quad tree lod terrain  == quad tree + lod terrain ?

I read the book <Focus on 3D terrain programming> , but I don't know what it say about the quad tree lod terrain, it seems not to be quad tree + lod terrain, 

but another algorithm.

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!