Hi -- There are a couple different strategies, depending on how your
database is laid out.
 
I've seen many OpenFlight databases arranged as a series of tiles to
represent a large area of terrain. You might want to have OSG page in near
tiles, leaving far tiles resident on disk until needed. To do this, create a
top level Group Node, with PagedLOD child Nodes for each one of the tiles.
Use the database metadata to determine the appropriate center and radius for
each tile.
 
Another strategy would be to convert ProxyNodes in a loaded OpenFlight
database into PagedLOD Nodes, and I assume that's what Brian's code does.
 
There might be other strategies as well; it's really limited by your
imagination and application requirements.
   -Paul
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kiff Loh
Sent: Friday, June 27, 2008 10:21 PM
To: [email protected]
Subject: [osg-users] Paging Openflight


Hi,
 
I read some very interesting posts by Robert and Brian Hill on paging an
openflight database.
 
Robert says, 'The OSG natively supports database paging, and its
automatically set up in osgViewer::Viewer/CompositeViewer when your scene
contains osg::PagedLOD nodes - it's PagedLOD nodes that provide the
information about the what to page in. The OpenFlight loaders doesn't know
about paging itself, the format itself doesn't support as far as I'm aware.
If you wish to use it for
paging then you'll need to take the database and convert to an OSG native
format and insert PagedLOD nodes where appropriate.'

How do I 'take the database and convert to an OSG native format and insert
PagedLOD'?
 
I actually managed to download ConvertPagedLOD.cpp from another post by
Brian R Hill. Do I compile it in OSG environment, and then try to 'convert
the osg::ProxyNodes to osg::PagedLODs'? How do I set the osg:: PagedLODs
center and radius?
 
Thanks for the help.

Kiff





  _____  

Enrich your blog with Windows Live Writer. Windows Live Writer
<http://get.live.com/writer/overview>  

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to