Thrall, Bryan wrote:
[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.
Thx you for your affords, but unfortunately that does not solve the problem.
I manage to convert an osg file with callbacks into an osg file with
callbacks as well.
But I can't figure out what's happening underneath the hood, so that I
can not reproduce from scratch.
Unfortunately there is no example which is doing this, only osg files
with callbacks, or executables.
But this functionality is required to write an osg Exporter with
osgAnimation support.
Cheers, searching for the Pivot of my Soul, PP !!!
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org