Need some help implementing VBO's with Frustum Culling

Posted by Isracg on Game Development See other posts from Game Development or by Isracg
Published on 2011-11-29T18:48:56Z Indexed on 2011/11/30 2:08 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

i'm currently developing my first 3D game for a school project, the game world is completely inspired by minecraft (world completely made out of cubes). I'm currently seeking to improve the performance trying to implement vertex buffer objects but i'm stuck, i already have this methods implemented: Frustum culling, only drawing exposed faces and distance culling but i have the following doubts:

  1. I currently have about 2^24 cubes in my world, divided in 1024 chunks of 16*16*64 cubes, right now i'm doing immediate mode rendering, which works well with frustum culling, if i implement one VBO per chunk, do i have to update that VBO each time i move the camera (to update the frustum)? is there a performance hit with this?

  2. Can i dynamically change the size of each VBO? of do i have to make each one the biggest possible size (the chunk completely filled with objects)?.

  3. Would i have to keep each visited chunk in memory or could i efficiently remove that VBO and recreated it when needed?.

© Game Development or respective owner

Related posts about opengl

Related posts about java