[osg-users] Export osgAnimation callbacks into osg files

Cedric Pinson cedric.pinson at plopbyte.net
Tue Nov 24 02:10:35 PST 2009


Hi Peter,

In order to be able to write your callback in .osg file you have to
declare method to write it. see in
src/osgPlugins/osgAnimation/ReaderWriter.cpp
If you dont declare those method, osg will not be able to read/write
your class because it does not know them.


Cheers,
Cedric

-- 
+33 659 598 614  Cedric Pinson mailto:cedric.pinson at plopbyte.net
http://www.plopbyte.net


On Wed, 2009-10-14 at 17:57 +0000, Peter Wrobrl wrote:
> Hi, and thanks for your fast answer.
> 
> To reconstruct my problem I take the osgAnimationNode Example and tweak its "main", so that it writes an osg file instead of creating the viewer ( Attachment ).
> When I open the osg file with an text editor, the UpdeteCallbacks are empty, and the file crashes the osganimationviewer with the error message: no osgAnimation::AnimationManagerBase found in the subgraph, no animations available 
> 
> Files that I export from Blender do have osgAnimation::BasicAnimationManager and keyframe data in the UpdateCallback Block.
> 
> I think the problem is, that in my case AnimtkUpdateCallback should be derived from osgAnimation::BasicAnimationManager insted of osg::NodeCallback, but I don't get it to work.
> 
> Could you tweak this file so that it works ? That would be a great help, thx.
> 
> 
> Cheers, searching for Pivot of my Soul, PP !!! ( <- ParticlePeter )
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=18273#18273
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091124/c590366b/attachment-0001.pgp>


More information about the osg-users mailing list