Hi,
I need to update a node that is not included in the scene graph. I define it as
follows:
Code:
for...
osg::Geode* geodeMorph = new osg::Geode ;
geodeMorph->setName(animations[i].callName);
geodeMorph->addDrawable( morphGeometrys[morphsCont]) ;
geodeMorph->setUpdateCallback( new
osgAnimation::UpdateMorph(animations[i].callName) ) ;
grp->addChild(geodeMorph);
...
morphsGrp->addChild(geodeMorph);
morphsGrp->addChild(grp);
morphsGrp->setUpdateCallback(m_morphManager);
if(morphGeometry){
geom0->setSourceGeometry( morphGeometry);
//modelNode->addChild( morphsGrp ) ;
return true;
}
I only need to update morphGeometry, and I do it with the osg morphing
animation system... but if I didn't include morphsGrp in scene, fails to call
the callbacks... Is there any other way to do this?
Thank you!
Cheers,
Aitor
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=40528#40528
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org