Nice! Now everything works! The animations were correctly splitted.

I got 2 messages:

OutputStream::writeObject(): Unsupported wrapper class
osg::ComputeBoundingBoxCallback
OutputStream::writeObject(): Unsupported wrapper class osg::UpdateCallback

But the final file was created, and apparently, it is correct.

Thank you! It will help me a lot!
=)


Renato


On Wed, Feb 16, 2011 at 3:39 AM, Thomas Hogarth <thomas.hoga...@gmail.com>wrote:

> Hi Renato
>
> My bad, the message is very miss leading and the errors you've
> received shouldn't have caused any problems.
>
> -The split count issue is from a bad copy and paste. So the splitCount
> variable shouldn't be there either.
> -The fps not being read is my bad again. I was heading for a more complex
> solution with an fps for each split but decided to make it global but forgot
> to move the reading code, and had in fact just been depending on the
> default, which was 30.
>
> Attached is a revised cpp, give that a try and let me know the results. If
> you get a crash and no decent error I'd be happy to take a look at the file
> my end.
>
> Tom
>
> On 16 February 2011 04:48, Renato Silveira <silveira....@gmail.com> wrote:
>
>> 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 <silveira....@gmail.com
>> > wrote:
>>
>>> Thank you very mutch!
>>> I will check it.
>>>
>>> Renato
>>>
>>>
>>> On Sun, Feb 13, 2011 at 7:06 PM, Thomas Hogarth <
>>> thomas.hoga...@gmail.com> 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
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
Renato Silveira (Ph. D. Student)

Informatics Institute - UFRGS
Porto Alegre - RS - Brazil
http://www.inf.ufrgs.br/~rsilveira
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to