Re: [osg-users] Fwd: Controlling animations in FBX models

2011-02-23 Thread Cedric Pinson
Hi,
I have not check the new code about serializer... I will put it in my
tasklist. Anyone knows where I should look to update osgAnimation code
about serializer ?

Cedric

On Thu, 2011-02-17 at 09:30 +, Michael Platings wrote:
 I've not used any of the osg file formats so I can't help you there
 specifically, but I suspect the osganimation serializer is in need of
 updating. Cedric Pinson wrote osgAnimation so he's the best person to
 consult on this matter.
 
 On 16 February 2011 16:23, Thomas Hogarth thomas.hoga...@gmail.com
 wrote:
 Hi Michael
 
 
 Thanks for the info, do you know why I might be having trouble
 saving these to .ive, .osg, .osgt and .osgx. It's not a show
 stopper but for some reason I can only re save
 the imported fbx as .osgb. The rest fail to load except .osg
 which loads but won't play my animations anymore :(
 
 
 Any info would be much appreciated
 Tom
 
 
 
 On 16 February 2011 16:08, Michael Platings
 mplati...@gmail.com wrote:
  I dare say the fbx plugin creates some kind
 of custom callbacks that normal osg is unaware
 of. 
 
 Not exactly, the callbacks in question are all part of
 osgAnimation which is increasingly part of normal
 osg.
 They are: osgAnimation::RigComputeBoundingBoxCallback,
 osgAnimation::MorphGeometry::UpdateVertex 
 osgAnimation::RigGeometry::UpdateVertex
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
Provide OpenGL, WebGL and OpenSceneGraph services
+33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net
http://www.plopbyte.net


signature.asc
Description: This is a digitally signed message part
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Controlling animations in FBX models

2011-02-23 Thread Chuck Seberino
Cedric,

Check out:

src/osgWrappers/serializers/osgAnimation

Chuck

On Feb 23, 2011, at 2:22 PM, Cedric Pinson wrote:

 Hi,
 I have not check the new code about serializer... I will put it in my
 tasklist. Anyone knows where I should look to update osgAnimation code
 about serializer ?
 
 Cedric
 
 On Thu, 2011-02-17 at 09:30 +, Michael Platings wrote:
 I've not used any of the osg file formats so I can't help you there
 specifically, but I suspect the osganimation serializer is in need of
 updating. Cedric Pinson wrote osgAnimation so he's the best person to
 consult on this matter.
 
 On 16 February 2011 16:23, Thomas Hogarth thomas.hoga...@gmail.com
 wrote:
Hi Michael
 
 
Thanks for the info, do you know why I might be having trouble
saving these to .ive, .osg, .osgt and .osgx. It's not a show
stopper but for some reason I can only re save
the imported fbx as .osgb. The rest fail to load except .osg
which loads but won't play my animations anymore :(
 
 
Any info would be much appreciated
Tom
 
 
 
On 16 February 2011 16:08, Michael Platings
mplati...@gmail.com wrote:
 I dare say the fbx plugin creates some kind
of custom callbacks that normal osg is unaware
of. 
 
Not exactly, the callbacks in question are all part of
osgAnimation which is increasingly part of normal
osg.
They are: osgAnimation::RigComputeBoundingBoxCallback,
osgAnimation::MorphGeometry::UpdateVertex 
osgAnimation::RigGeometry::UpdateVertex
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 -- 
 Provide OpenGL, WebGL and OpenSceneGraph services
 +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net
 http://www.plopbyte.net
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Controlling animations in FBX models

2011-02-17 Thread Michael Platings
I've not used any of the osg file formats so I can't help you there
specifically, but I suspect the osganimation serializer is in need of
updating. Cedric Pinson wrote osgAnimation so he's the best person to
consult on this matter.

On 16 February 2011 16:23, Thomas Hogarth thomas.hoga...@gmail.com wrote:

 Hi Michael

 Thanks for the info, do you know why I might be having trouble saving these
 to .ive, .osg, .osgt and .osgx. It's not a show stopper but for some reason
 I can only re save the imported fbx as .osgb. The rest fail to load except
 .osg which loads but won't play my animations anymore :(

 Any info would be much appreciated
 Tom


 On 16 February 2011 16:08, Michael Platings mplati...@gmail.com wrote:

  I dare say the fbx plugin creates some kind of custom callbacks that
 normal osg is unaware of.


 Not exactly, the callbacks in question are all part of osgAnimation which
 is increasingly part of normal osg.
 They are: osgAnimation::RigComputeBoundingBoxCallback,
 osgAnimation::MorphGeometry::UpdateVertex 
 osgAnimation::RigGeometry::UpdateVertex



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Controlling animations in FBX models

2011-02-16 Thread Thomas Hogarth
Glad to hear it worked

I got 2 messages:
OutputStream::writeObject(): Unsupported wrapper class
osg::ComputeBoundingBoxCallback
OutputStream::writeObject(): Unsupported wrapper class osg::UpdateCallback

I get the same errors, I think it has to do with why you can only save to
osgb. I dare say the fbx plugin creates some kind of custom callbacks that
normal osg is unaware of.

Any how let me know if you add any bug fixes etc
Tom
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Controlling animations in FBX models

2011-02-16 Thread Thomas Hogarth
Hi Michael

Thanks for the info, do you know why I might be having trouble saving these
to .ive, .osg, .osgt and .osgx. It's not a show stopper but for some reason
I can only re save the imported fbx as .osgb. The rest fail to load except
.osg which loads but won't play my animations anymore :(

Any info would be much appreciated
Tom

On 16 February 2011 16:08, Michael Platings mplati...@gmail.com wrote:

  I dare say the fbx plugin creates some kind of custom callbacks that
 normal osg is unaware of.


 Not exactly, the callbacks in question are all part of osgAnimation which
 is increasingly part of normal osg.
 They are: osgAnimation::RigComputeBoundingBoxCallback,
 osgAnimation::MorphGeometry::UpdateVertex 
 osgAnimation::RigGeometry::UpdateVertex

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Controlling animations in FBX models

2011-02-15 Thread Renato Silveira
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.comwrote:

 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