[email protected] wrote on Monday, October 19, 2009 3:14 AM: >> The reason you get no update callback in the .osg file is that >> osganimationnode uses a custom callback, AnimtkUpdateCallback, that the >> .osg writer doesn't know about. >> >>> From the OpenSceneGraph-Data .osg files that have animation (such as >> robot.osg), it looks like osgAnimation::BasicAnimationManager is >> supported, so you could start with using that instead of >> AnimtkUpdateCallback. >> >> HTH, >> > Had the same guess, but did not manage to get it to work. Example Code > would be cool, so I could go on from this point, thx.
Unfortunately, I am not familiar with osgAnimation, so I don't really know how to create one. I would recommend looking at the contents of robot.osg and comparing it to the interface of the osgAnimation classes; you could also look at the other osgAnimation examples (osganimationsolid seems to use BasicAnimationManager, for example). I tested that osgAnimation callbacks can be written to files using 'osgconv robot.osg robot2.osg' and they seemed to be written to robot2.osg just fine. Sorry I can't help further. -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

