[osg-users] fbx animation

Thomas Hogarth thomas.hogarth at gmail.com
Sat Apr 2 06:12:23 PDT 2011


I beleive osgDB/XmlPaser is part of osg 2.9.x and higher, the argument passed to the spliter class is an xml file, but for some reason this forum blocks them. Here is the content of the splitConfig.xml file I use.

<?xml version="1.0" encoding="ISO-8859-15"?>
<OsgAnimationTools sourceFile='./Data/BookModel/bookPage.FBX' destinationFile='./Data/BookModel/bookPage.osgb' fps='30'>
	<AnimationSplit sourceAnimation='Take 001'>
		<NewAnimation name='IdleClosed' startFrame='0' endFrame='1'/>
		<NewAnimation name='AnimateOpen' startFrame='2' endFrame='30'/>
		<NewAnimation name='IdleRightOpen' startFrame='31' endFrame='34'/>
		<NewAnimation name='RightPageTurn' startFrame='36' endFrame='49'/>
		<NewAnimation name='IdleLeftOpen' startFrame='50' endFrame='53'/>
		<NewAnimation name='LeftPageTurn' startFrame='55' endFrame='70'/>
		<NewAnimation name='AnimateClosed' startFrame='71' endFrame='104'/>

Hope that helps

Read this topic online here:

More information about the osg-users mailing list