Hi all,

I am looking for a way to know when the geometry under a PagedLOD has
changed. ( load / unload level ).
My issue is that i have to keep updated the intersection list of an
osg::PlaneIntersector called on a group which could have PagedLOD's as child
but i do not want to recompute intersections every frame for performances
purpose.

So the idea is to recompute the plane intersections with a node only when
any PagedLOD children say "i have loaded a level" or "i have unloaded a
level".
Is there any way to detect those events ?
I have thought about count geodes under the node in its callback and then
recompute intersection when the number of geodes has changed, but i feel
that's not a good suitable solution.

Also i have noticed that a PlaneIntersector launched on a PagedLOD will
always compute intersection with the finest level already loaded into
memory, is that expected ?

Thanks for your attention,
Regards,
Harold
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to