I´ll check the AutoTranform

Anyway, is it possible to have a callback or to decompose the 
osg_composite_viewer->renderingTraversals(); call into 
osc_composite_viewer->renderView(int i) so i can execute some code just before 
each composite viewer render?? 

if for some reason it´s really complex or can´t be done i´ll just give it away, 
but i would like to know if it´s possible

thanks


> Date: Mon, 16 Jun 2008 12:42:30 +0100
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [osg-users] question about composite viewer
> 
> Hi David,
> 
> Rather than use callbacks perhaps the osg::AutoTransform is what you
> require.  Or perhaps just use osg::Point/osg:::PointSprite.  Generally
> the more you can push down onto the GPU the better.
> 
> Robert.
> 
> On Mon, Jun 16, 2008 at 12:08 PM, David _ <[EMAIL PROTECTED]> wrote:
> > i want to traverse the scene graph and update some sprites size according to
> > their distance to the camera
> >
> > if i have some views i need to correct the size of every one of them just
> > before the render.
> >
> > We have our own camera class, so there is no need to read anything from the
> > osg::camera, just want to change some node´s properties in the graph just
> > before each render call
> >
> > also in the near future we will reduce particle emission rate if the
> > particle emitter is far away from the camera
> >
> >
> >> Date: Mon, 16 Jun 2008 12:00:14 +0100
> >> From: [EMAIL PROTECTED]
> >> To: [email protected]
> >> Subject: Re: [osg-users] question about composite viewer
> >>
> >> Hi David,
> >>
> >> You don't say what operations you are actually wanting to do. Is it
> >> OpenGL ops? Or just CPU based code that needs the final view matrix
> >> from each of the viewers cameras?
> >>
> >> Robert.
> >>
> >> On Mon, Jun 16, 2008 at 11:09 AM, David _ <[EMAIL PROTECTED]>
> >> wrote:
> >> > Hi
> >> >
> >> > we´ve got multiple views using the composite viewer
> >> >
> >> > right now we are doing some stuff to some nodes of the graph using the
> >> > distance to our own camera as a parameter
> >> >
> >> > we do it between the update and the render
> >> >
> >> > osg_composite_viewer->advance();
> >> > osg_composite_viewer->eventTraversal();
> >> > osg_composite_viewer->updateTraversal();
> >> >
> >> > // our stuff goes here using our camera for this view
> >> >
> >> > osg_composite_viewer->renderingTraversals();
> >> >
> >> > our problem is that we would like to do these things before each view
> >> > gets
> >> > rendered and the composite viewer encapsulates all the renders in just
> >> > one
> >> > function call. We would like to make some things before each render call
> >> >
> >> > Is there any way of executing some code before each one of the composite
> >> > views get rendered??? a callback or something??
> >> >
> >> > thanks
> >> >
> >> > ________________________________
> >> > Todo ruedas: información práctica y todo el glamour del mundo del motor.
> >> > MSN
> >> > Estilo y Tendencias
> >> > _______________________________________________
> >> > osg-users mailing list
> >> > [email protected]
> >> >
> >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >> >
> >> >
> >> _______________________________________________
> >> osg-users mailing list
> >> [email protected]
> >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> > ________________________________
> > Sigue de cerca las últimas tendencias y lo que más rompe MSN Vídeo
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_________________________________________________________________
MSN Video. 
http://video.msn.com/?mkt=es-es
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to