PDA

View Full Version : Using VBOs for drawing terrain with LOD (SOLVED)



pixelita
01-24-2011, 01:21 AM
Hi

I'm trying to implement LOD algorithm on terrain.
When camera moves around,different partition LOD changes,so I need to recalculate triangle vertices.How to use VBOs when data is needed to be updated?

My current logic says something like this:

1.Precalculate vertices,triangles for each terrain partition with its initial LOD,
2.Store into VBOs
3.Draw
When camera moves to different partition ,then do 1. and 2. only for partitions where the level of detail should be updated?
So that means to keep separate VBOs for each LOD partition?

TIA.


P.S. Since I couldnt delete I'm editing: This is solved, found explanation in another forum