Hi Maxim,

On Mon, Dec 14, 2009 at 11:09 AM, Maxim Gammer <[email protected]> wrote:
> I've got a question about osgDB::DatabasePager...
>
> 1. When I began using osg::PagedLOD, I came across many exaples of using
> osgDB::DatabasePager in conjunction with osg::PagedLOD. What it's used for?

The PagedLOD class is the scene graph node that provides the
information about which children can be seen at what distances, and
what the names are of the external nodes.

PagedLOD doesn't implement any actual loading, it doesn't know
anything at all about file systems or loaders, it just stored data,
handles traversals and makes requests for loading of tiles, other than
that it's just a passive node.

> 2. Why use osgDB::DatabasePager if osg::PagedLOD alone works fine? What
> difference does it make?

The DatabasePager is the bit the does the work, PagedLOD makes
requests via the CullVisitor, and it goes off an serves these
requests, be them on local disk, remote on http or cached in a local
file cache.

As far as end users are concerned all you normally have to worry about
it creating the paged databases containing the PagedLOD, once
correctly created you just load these in the viewer and it'll do the
rest (using it's own DatabasePager).

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

Reply via email to