Hi Torben,

But if I register callback in other nodes like this...


Code:

for(...){
morphGeometrys.push_back(new osgAnimation::MorphGeometry(*geometryBase));
morphGeometrys[morphsCont]->addMorphTarget(geoms[morphsCont].get());
osg::Geode* geodeMorph = new osg::Geode ;
geodeMorph->setName(animations[i].callName);
geodeMorph->addDrawable( morphGeometrys[morphsCont]) ;
osgAnimation::UpdateMorph* updateMorph = new 
osgAnimation::UpdateMorph(animations[i].callName);
geodeMorph->setUpdateCallback(updateMorph) ;
morphsGrp->addUpdateCallback(updateMorph);
grp->addChild(geodeMorph);
}
...
morphsGrp->setUpdateCallback(m_morphManager);
if(morphGeometry){
geom0->setSourceGeometry( morphGeometry);
modelNode->addChild( morphsGrp ) ;
return true;
}





It do the same... nothing...

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=40534#40534





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to