Setting

up a OSG::DistanceLOD

Here is an example of setting up an lod core with a center and a range. You would also need to add children for the 4 LODs.

00001     DistanceLOD lod = DistanceLOD::create();
00002 
00003     // this is supposed to be the center of the LOD model,
00004     // that is, this is the point the distance is measured from
00005     lod->setCenter(12,1,5);
00006     // now we add the distances when models will change
00007     lod->editMFRange()->push_back(6.0);
00008     lod->editMFRange()->push_back(12.0);
00009     lod->editMFRange()->push_back(24.0);