Hi pp,
What is the function setupAnimtkNode ? and which version of
OpenSceneGraph are you using ?


Cheers,
Cedric

-- 
+33 659 598 614  Cedric Pinson mailto:[email protected]
http://www.plopbyte.net


On Fri, 2009-10-16 at 11:31 +0200, [email protected] wrote:
> Please, anybody, point me to a piece on informationt, thx.
> 
> I try to write osgAnimation Callbacks into an osg file but don't get it to 
> work.
> All available osgAnimation examples create executables, but no osg files. 
> 
> When I use osgDB::writeNodeFile( *someScene , "someScene.osg" ) ;
> 
> instead of creating a viewer, the code block between UpdateCallbacks 
> parenthesis stays empty in the resulting osg file, but this is where I 
> would expect keyframe and channel data. The Blender Exporter is also not 
> helpful, as it uses its own mechanism to write out osg files through 
> Python.
> 
> Can anybody explain / post / create an example that writes a simple 
> osgAnimation into an osg file, please or point to information on that ?
> 
> 
> Problem reconstruction :
> 
> osgAnimation Example osganimationnode, exchange the main proc. Instead 
> of creating a viewer write out a file, as this.
> 
> int main( int , char** )
> {
>     osg::ref_ptr< osg::Group > root = new osg::Group ;
>     root->setInitialBound(osg::BoundingSphere(osg::Vec3(10,0,10), 30));
>     root->addChild(createAxis());
> 
>     osg::MatrixTransform* node = setupAnimtkNode();
>     root->addChild(node);
> 
>     if ( !root.valid() )
>         osg::notify( osg::FATAL ) << "Failed in createSceneGraph() !" << 
> std::endl ;
>     bool arg = false;
> 
>     bool  result = osgDB::writeObjectFile( * ( root.get() ) , 
> "animNode.osg" ) ;
>     if ( !result )
>         osg::notify( osg::FATAL ) << "Failed in osgDB::writeNodeFile() 
> !" << std::endl ;
> }
> 
> 
> 
> 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
> 

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to