Hi Ramy, You can use the method setTargetMaximumNumberOfPageLOD of DatabasePager to try to unload the maximum number of children possible. This methods works fine for us with a lot of PagedLOD in a quadtree hierarchy with OSG 2.8.3. However the two first level of LODs aren't unload.
Now we are trying to use a PagedLOD to load a huge file of points and we have the same issue with OSG 2.9.9 and trunk version. We get an openGL out-of-memory error because the PagedLOD don't unload the children. Maybe there is some issue with PageLOD but we are not sure if our children has more references in our code and they can't be unloaded. So we are going to make some simple examples to locate the issue. If we made some progress, we will post in the list. Cheers, Maria. On Wed, Feb 23, 2011 at 5:09 PM, Ramy Gowigati <[email protected]> wrote: > Hi Jean, > > Ya I was only calling optimize (with DEFAULT option) after I load the > entire scene, which now explains why the memory goes down a lot. So now I > just call optimize on each model when I load them, and Im fine. > > Now after loading everything, im getting openGL out-of-memory error :D > > I'm trying to load the models in PagedLODs. Each model has a high res and > low res versions. So its 1 PagedLOD per model with low and high res as > children. But I cant get the PagedLOD to unload the child that is not in > use! > I'm playing around with the PagedLOD settings and reading the OSG source > code, maybe that will lead me to somewhere. > > You got any ideas how to get PagedLOD to unload its children when not in > use? I thought it was straight forward.. maybe I am missing something?! > > Thanks > > Ramy > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=37030#37030 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- María Ten Rodríguez gvSIG 3D Blog: http://gvsig3d.blogspot.com Instituto de Automática e Informática Industrial http://www.ai2.upv.es Ciudad Politécnica de la Innovación Universidad Politécnica de Valencia
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

