Hi, I was wondering if it's a good practice to build 2 or more ppu graph and then altern them to render differents effects.
Example : I instanciate a osgPPU::Processor * processor1 and add some unit to it : processor1->addChild( osgPPU::Unit* aUnit ) processor1->addChild( osgPPU::Unit* aUnit ) processor1->addChild( osgPPU::Unit* aUnit ) ... processor1->addChild( osgPPU::UnitOut* ppuOut ) and then a second osgPPU::Processor * processor2 and add different unit to it : processor2->addChild( osgPPU::Unit* aUnit ) processor2->addChild( osgPPU::Unit* aUnit ) processor2->addChild( osgPPU::Unit* aUnit ) ... processor2->addChild( osgPPU::UnitOut* ppuOut ) Now my application need to cange the effect every 45 seconds, so when its time I remove the current processor from my main osg::Node and add the second processor to it. Is this ok to do this ? It seems to work fine for a while but then a random crash appears in the viewer_.frame() call just after I switch processor. This crash never come if I dont alternate processor1 and 2. thanks again Alex
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

