• entries
    154
  • comments
    388
  • views
    163487

Things have changed

Sign in to follow this  
O-san

289 views

I believe I've implemented frustum culling successfully. I do the culling with bounding spheres in two passes. First pass test against "sectors", these span 50x50x50 units. Next I cull the remaining map objects individually. I also boosted the rendering a bit using gldrawelements and selective rendering. Let's say I got these boxes:



Notice how the red sides of the topmost box gets overlapped by the neighbors. The sides for that box are wasted pixels that never will show. I have minimized this problem with the option to turn on and off each side of the box... so a correct rendering of the above scenario would be to have a box without the sides, like this:



I can simply add two versions of the same image and reuse the texture memory and choose not to render the sides of the box. This saves valuable fill rate.

For anyone needing a frustum culling algorithm using OpenGL I can recommend this tutorial by Mark Morley.

Next up I got some serious bug fixing to do before implementing new features.

Cheers!!
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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