[osg-users] PagedLOD and page in/out detection
Robert Osfield
robert.osfield at gmail.com
Fri Jun 3 09:49:31 PDT 2016
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 addLoadedDataToSceneGraph.
* Note, must only be called from single thread update phase. */
virtual void updateSceneGraph(const osg::FrameStamp& frameStamp);
Within this you could add your own tracking of when things are merge or removed.
Robert.
On 3 June 2016 at 17:15, Trajce Nikolov NICK
<trajce.nikolov.nick at gmail.com> wrote:
> 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 or hint how to detect such changes?
>
> Thanks a bunch as always!
>
> Cheers,
> Nick
>
> --
> trajce nikolov nick
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list