Re: [osg-users] PagedLOD and page in/out detection

2016-06-03 Thread Trajce Nikolov NICK
Hi Robert, thanks for the *hints* :) ... Reading the code is always the best option :-). I found the thing while reading the code you pointed me to. It is this thing that when set up properly per the database, then it works nicely ..

Re: [osg-users] PagedLOD and page in/out detection

2016-06-03 Thread Robert Osfield
Hi Nick, It's *really* inefficient to use an update callback to do this type of task, I can not recommend going this path, it's waste of both our time trying to coax it to do something useful. The right way of doing it is by overriding the DatabasePager::updateSceneGraph() method or implementing

Re: [osg-users] PagedLOD and page in/out detection

2016-06-03 Thread Trajce Nikolov NICK
Hi Robert, this is my update callback .. And I know for sure it was working. I just did a clean app (modified osgviewer with only this callback installed in the root PagedLODs) and I never see a Paged Out tile ... I am limited to not having the possibility to make a custom DatabasePager or it

Re: [osg-users] PagedLOD and page in/out detection

2016-06-03 Thread Robert Osfield
Hi Nick, There isn't a feature directly built into osg::PageLOD or DatabasePager for this. What you could do is look at the creating a custom DatabasePager that overrides the following method: /** Merge the changes to the scene graph by calling calling removeExpiredSubgraphs then

Re: [osg-users] PagedLOD and page in/out detection

2016-06-03 Thread Alberto Luaces
Trajce Nikolov NICK writes: > Now it doesn't .. Any clue or hint how to detect such changes? git bisect? It is very useful for that kind of "it does work / now it doesn't"... -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] PagedLOD and page in/out detection

2016-06-03 Thread Trajce Nikolov NICK
Hi Community, I was looking for a way to detect when PagedLOD gets its children paged in/out. So I installed an update callback and based on a difference in the children number I was able to know when such change occurred. And this was working with a code an year ago. Now it doesn't .. Any clue