Hi Terry,

I don't know if it'd help, as I'm not familiar with Metaflight, but
perhaps creating a pseudo loader would the way forward.

Robert.

On 12/27/06, Terry Welsh <[EMAIL PROTECTED]> wrote:
I'm afraid putting PagedLODs into the external references isn't an
option for me.  I'm trying to get a Metaflight loader working, which
means I'm loading .flt files that contain only geometry/texture and
have no concept of PagedLOD.

The scenegraph structure that I'm building is a tree of PagedLODs.
Each PagedLOD has a filename for an external .flt file and multiple
child PagedLODs.

The only thing I can think of now is to subclass PagedLOD and try to
give them knowledge of when their parents and/or children have loaded
their tiles.  I can't think of a very elegant way to do this, though,
and it would probably have problems with DatabasePager.

> Hi Terry,
>
> The osgdem/osgTerrain generated databases might be a good guide for
> you, the way they ensure that no holes appear is to always have the
> first child of PagedLOD as local subgraph that isn't loaded from a
> file reference, this first child is the lowest level of detail level
> and acts as a fallback for when no other children are available.
>
> The next child in each PagedLOD is then the external tile that
> replaces these lowest level of detail child with one that is loaded
> from disk, this file contains a Group containing four PagedLOD nodes,
> and each of these PagedLOD nodes has its first child defined as local
> geometry/texture as per the above, and its second child the external
> file reference.
>
> This recurses until you get to the highest level of detail.
>
> Robert.
>
> On 12/27/06, Terry Welsh <[EMAIL PROTECTED]> wrote:
> > I'm still stumped on this problem.  Does OSG have a mechanism for
> > ensuring that the children PagedLODs of a parent PagedLOD have all
> > loaded their content before the parent content is switched off and the
> > childrens' content is switched on?  Without that, I am seeing
> > temporary holes in my terrain while I wait for tiles to load.
> >
> > I tried running my scenegraph with osgsimplepager, but that doesn't
> > help.  I believe it just manages PagedLOD loading on a separate
> > thread, but I can't find any documentation on DatabasePager.
> > - Terry
> >
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to