[osg-users] Passing explicitly loaded model to DatabasePager for expiry management

Glenn Waldron gwaldron at gmail.com
Wed Sep 24 04:53:47 PDT 2008

On Wed, Sep 24, 2008 at 6:45 AM, Wojciech Lewandowski <lewandowski at ai.com.pl
> wrote:

>  Hi Everyone,
> I have quick question. We have added simple ReadCallback to
> osg::IntersectionVisitor to enforce loading of highest PAgedLODs from our
> terrain.
> We simply call osgDB::readNodeFile( PageLOD_file ). Intersection works, but
> it looks like these files are not stored in any cache nor they are actually
> attached to parent PagedLOD. Is there a way we can add them to DatabasePager
> loaded model list to avoid further loads of the same file ?
One option is to implement a cache in the ReadCallback itself, as
demonstrated in osgSim/LineOfSight.cpp.


Glenn Waldron : Pelican Mapping : http://pelicanmapping.com :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080924/9569ea37/attachment-0003.htm>

More information about the osg-users mailing list