Hi,

The update callback are called by a visitor (cullvisitor ?) so if the node is not in the scene graph you won't get any chance to have your callback traversed, and called.

But you can call the updatevisitor (cullvisitor?) by yourself on a scenegraph you made if I'm not wrong.

Hope this helps you

Regards,
    Vincent

Le 15/06/2011 15:56, Aitor Ardanza a écrit :
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to