Hi,

If you bounding volumes are changing then you need to do a
setInitialBound that encompasses the overall size that the geometry
could grow to.

Robert.

On 1/28/07, dasari pavan kumar <[EMAIL PROTECTED]> wrote:
Sir,
     I have implemented the same thing as you suggested before. But the
problem is that "Is there any other way  rather than using callbacks". We
have the below code in general (In  examples)

osgUtil::Sceneview  *sceneview = new osgUtil::Sceneview;
//.....blah.....//
for(...)
{
     sceneview->update();
     sceneview->cull();
     sceneview->draw();
}

We know that after cull(), nodes which are not visible in the view frustum
are culled. Can I visit the visible nodes once again and change the
coordinates of  those nodes and then draw() ?? ... code goes something like
this...

for(...)
{
      sceneview->update();//------this doesn't effect as we
have fixed bounding box for each node.---//
      sceneview->cull();
      //--------visit the nodes survived after the cull phase and change the
vertex coordinates in those nodes----// ???????
      sceneview->draw();//-----draw the scene-------//
}

thank you.


On 1/28/07, Robert Osfield < [EMAIL PROTECTED]> wrote:
> Hi,
>
> You can use a cull callback on nodes, or a cull callback on drawables.
>
> However, you should be careful about modifying the scene graph during
> cull or draw as the this could leads to threading problems if you app
> ever become multi-threaded.  osgProducer::Viewer and the
new
> osgViewer::Viewer all will multi-thead by default in you have multiple
> screens that you are rendering to.
>
> Robert.
>
> On 1/28/07, dasari pavan kumar <[EMAIL PROTECTED]> wrote:
> > Hi,
> >      I am facing a problem in rendering a particular scene where I am
having
> > fixed bounding box and fixed number of nodes but vertices in each node
> > changing. I am using osgProducer::Viewer to render the scene. What I
want to
> > do is I want to change the coordinates of only those nodes who passed
the
> > culling phase. Is there any way other than using callbacks to render the
> > nodes. i.e Update the 'to be rendered' nodes(only which remain after
other
> > nodes are culled from the main group) after Cull and then render the
scene.
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to