Hi Thomas, I tested your code and I got an error: "OsgAnimationTools AnimationSplit XML Config ERROR: AnimationSplit nodes must contain a 'splitCount' property."
The function that reads my FPS returns 0, even when I set to 30 in the xml file. Also, the function ReadAniSplitFromConfigNode() has a variable "splitCount" that is never used. If you can help me, I will be thankful. Renato On Mon, Feb 14, 2011 at 12:22 AM, Renato Silveira <[email protected]>wrote: > Thank you very mutch! > I will check it. > > Renato > > > On Sun, Feb 13, 2011 at 7:06 PM, Thomas Hogarth > <[email protected]>wrote: > >> >>Attached is the cpp and an example config file. I think it's pretty >> straight forward. >> >> Looks like the forum blocked my xml config so here is a copy in the post >> below >> >> <?xml version="1.0" encoding="ISO-8859-15"?> >> <OsgAnimationTools sourceFile='./Data/Models/Terrorist/terrorist.FBX' >> destinationFile='./splitExport.osgb' fps='30'> >> <AnimationSplit sourceAnimation='Take 001'> >> <NewAnimation name='staying' startFrame='0' endFrame='49'/> >> <NewAnimation name='fire_standing' startFrame='50' endFrame='89'/> >> <NewAnimation name='running' startFrame='90' endFrame='111'/> >> <NewAnimation name='walking' startFrame='112' endFrame='147'/> >> <NewAnimation name='grenade_throw' startFrame='148' endFrame='187'/> >> <NewAnimation name='hide_behind_wall' startFrame='188' endFrame='213'/> >> <NewAnimation name='from_standing_to_squat' startFrame='214' >> endFrame='241'/> >> <NewAnimation name='fire_sguating' startFrame='242' endFrame='291'/> >> <NewAnimation name='from_sguating_to_stand' startFrame='292' >> endFrame='313'/> >> <NewAnimation name='jump_down' startFrame='314' endFrame='359'/> >> <NewAnimation name='fire_lying' startFrame='360' endFrame='379'/> >> <NewAnimation name='stand_up' startFrame='380' endFrame='425'/> >> <NewAnimation name='dying_on_belt' startFrame='426' endFrame='532'/> >> <NewAnimation name='dying_on_spin' startFrame='533' endFrame='568'/> >> <NewAnimation name='jump' startFrame='569' endFrame='614'/> >> </AnimationSplit> >> </OsgAnimationTools> >> >> > > > -- > Renato Silveira (Ph. D. Student) > > Informatics Institute - UFRGS > Porto Alegre - RS - Brazil > http://www.inf.ufrgs.br/~rsilveira > -- Renato Silveira (Ph. D. Student) Informatics Institute - UFRGS Porto Alegre - RS - Brazil http://www.inf.ufrgs.br/~rsilveira
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

