Hi Art, The suggestions from JS and Gordon are both pretty reasonable ways to tackle this problem. The only thing I'd add is that a variation of JS's solution would be to use a cull callback attached to a Group node that does the repeated traverse for you without the need to subclass from osg::Group. You still need to subclass from osg::NodeCallback so it's really not too much of different load, which to choose depends on your own apps needs/preferences.
Robert. On Mon, Oct 19, 2009 at 4:19 PM, Art Tevs <[email protected]> wrote: > Hi folks, > > I need to render a subgraph multiple times per frame. So, not the way how > osg::Sequence work, where it renders a subgraph for specified amount of > frames, but I want to render the same subgraph several times during one frame. > > The graph will look for example like this one: > root > | > group A - node A > | > group B - node B > > The group A has to be rendered several times in one frame. > Any ideas how to solve that exercise? > Of course the amount of repeats should be changeable during run time, hence > simple multiple "copy" of group A will not work. > > regards, > Art > > P.S. The solution is practicaly for implementing iterative image processing > algorithms with osgPPU for example. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=18395#18395 > > > > > > _______________________________________________ > 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

