Things have changed

Published January 09, 2008
Advertisement
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!!
Previous Entry Correct lighting
Next Entry Progress report
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement