Hi Can,

The DatabasePager will automatically expire tiles for you.  There are
several difference schemes within the DatabasePager for managing this,
from time based expiry to maintaining an target number of PagedLOD in
memory at any one time - the later approach is now the default in
OSG-2.8.0.  Expiry only happens for nodes that are out of view in all
schemes.

In terms of your scene graph there is nothing you need to do to take
advantage of the expiry schemes, and for most users there shouldn't be
any need to tinker with the DatabasePager either, it should just work
out of the box.

Robert.

On Fri, Feb 20, 2009 at 4:10 PM, Can Hosgor <[email protected]> wrote:
> Hello,
>
> Currently, I'm trying to learn how paging works in osg. As an example, I 
> divided my scene into several tiles, where each tile is an osg::PagedLOD. 
> Then I add three osg::Groups to each tile. Each group contains some models i 
> loaded for a specific detail level. In other words, the first group contains 
> large buildings which can be seen from a large distance, the second group 
> relatively smaller buildings an so forth.
>
> So far, the LOD functionality works great, now i want the PagedLODs to unload 
> its contents when not visible, and load back when they become visible again. 
> I wonder if this is supported by PagedLOD by default or should I take some 
> other approach.
>
> Thanks,
> Can Hosgor
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=7128#7128
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to