[osg-users] Two questions about pagelod nodes

David _ solid_davidian at hotmail.com
Wed Sep 26 07:16:38 PDT 2007

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 


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: robert.osfield at gmail.com
> To: osg-users at lists.openscenegraph.org
> Subject: Re: [osg-users] Two questions about pagelod nodes
> Hi David,
> On 9/26/07, David _ <solid_davidian at hotmail.com> 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Llama a tus amigos de PC a PC: ¡Es GRATIS!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070926/4e8d081c/attachment-0003.htm>

More information about the osg-users mailing list