We don´t want to set which node is visible and which is not visible, we just 
want to know which ones are visible.

There are 4 calls in our viewer 

viewer->advance();
viewer->eventTraversal();
viewer->updateTraversal();
viewer->renderingTraversals();

no idea where the cull traversal is, we´ve read the renderingtraversal code 
from the osg source, but still no idea. 

Sorry for asking too much but we´re pretty stacked right now.


> Date: Wed, 26 Sep 2007 14:56:07 +0100
> From: [EMAIL PROTECTED]
> To: osg-users@lists.openscenegraph.org
> Subject: Re: [osg-users] Two questions about pagelod nodes
> 
> Hi David,
> 
> On 9/26/07, David _ <[EMAIL PROTECTED]> wrote:
> > we´re workig with an osgdem generated island which is composed by a lot of
> > pagelod nodes. We´re also letting the databasepageloader to load and offload
> > nodes from memory. We need to know which nodes are visible and which nodes
> > are being deleted from memory
> >
> > question 1 : Is there any way to know which nodes are visible just before
> > the rendering traversals??
> 
> Its the cull traversal (the first half of renderingTraversals) which
> determines what is visible, you can't determine what's visible before
> this without doing your own mock cull traversal.
> 
> > question 2 : Is there any way to know which nodes are being deleted and
> > execute a little piece of code before this happens??
> 
> The Viewer calls the database pager on each update traversal to merge
> new and remove unused subgraphs.  You could override the
> Viewer::updateTraversals() to customize this, doing an querry of the
> DatabasePager yourself.
> 
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_________________________________________________________________
Llama a tus amigos de PC a PC: ¡Es GRATIS!
http://get.live.com/messenger/overview
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to