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 _________________________________________________________________ Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar siempre a la última Guapos y guapas, clips musicales y estrenos de cine.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

