Which version of osg are you using ?
do you have a small sample code that reproduce the problem ?
Cheers
Cedric
> _______________________________________________
> osg-users mailing list
> osg-...@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...@plopbyte.net
http://www.plopbyte.net
Yeah the list of animation is copied. Good to know it works now. I added
this to the mailing list for log for other users.
Cheers,
Cedric
On Wed, 2010-06-02 at 23:30 +0200, alessandro terenzi wrote:
> Ok, I think I found where the problem was...I was doing something like
> this:
>
> // in the apply method...
> ...
> osgAnimation::AnimationManagerBase* b = ...
> ...
> osgAnimation::BasicAnimationManager _am;
> _am = new osgAnimation::BasicAnimationManager(*b);
> osgAnimation::AnimationList animations = b->getAnimationList();
> for (osgAnimation::AnimationList::iterator it = animations.begin();
> it != animations.end(); ++it)
> {
> _am->playAnimation(*it);
> }
> ...
>
> and animations were not played during the update traversal. Then I
> replaced b with _am this solved the problem, so I did something like
> this:
>
> // in the apply method...
> ...
> osgAnimation::AnimationManagerBase* b = ...
> ...
> osgAnimation::BasicAnimationManager _am;
> _am = new osgAnimation::BasicAnimationManager(*b);
> osgAnimation::AnimationList animations = _am->getAnimationList();
> for (osgAnimation::AnimationList::iterator it = animations.begin();
> it != animations.end(); ++it)
> {
> _am->playAnimation(*it);
> }
> ...
>
> I realized that in the 1st case the animation was not found in the
> list of animations of the BasicAnimationManager _am, so it was not
> actually played. I thought that the list was the same of the
> AnimationManagerBase b, but actually it is not (or, at least, it is
> not the same for the comparison carried on inside playAnimation(.)).
>
> Alessandro
>
>
> On Wed, Jun 2, 2010 at 5:33 PM, alessandro terenzi
> <a.te...@gmail.com> wrote:
> No progress on my side...
>
> I'm attacching the OSG model converted from FBX...
>
> Alessandro
>
>
>
> On Wed, Jun 2, 2010 at 4:09 PM, Cedric Pinson
> <cedric...@plopbyte.net> wrote:
> Hi,
> I dont have fbx plugin could you convert the fbx file
> to .osg , I would
> like to check if your fbx file converted to osg works
> in
> osganimationviewer.
>
> Any progress about your problem ?
>
> Cheers,
> Cedric
>
> On Wed, 2010-06-02 at 12:18 +0200, alessandro terenzi
> wrote:
>
>
> > By the way, here is a sample FBX model to test if
> you need it...please
> > note that this require the latest fix by Michael
> Platings in order to
> > work.
> >
> > Alessandro
> >
> > On Wed, Jun 2, 2010 at 11:49 AM, alessandro terenzi
> > <a.te...@gmail.com> wrote:
> > Yes, same thing, but while the FBX animation
> is played, the
> > nathan.osg files doesn't show any geometry,
> just the xyz axes.
> > So just to be clear:
> >
> > osganimationviewer:
> >
> > - plays FBX animations
> > - doesn't display nathan.osg model
> >
> > osgviewer (with the modifications I sent
> earlier and that I
> > took from osganimationviewer example):
> >
> > - doesn't play animation (FBX)
> > - doesn't display nathan.osg model
> >
> > I'm using OSG 2.9.6 with osgAnimation from
> OSG 2.9.8. Finally,
> > the same happens if I use osgviewer from OSG
> 2.9.8 with my
> > modifications.
> >
> > Regards.
> > Alessandro
> >
> >
> >
> > On Wed, Jun 2, 2010 at 11:28 AM, Cedric
> Pinson
> > <cedric...@plopbyte.net> wrote:
> > Hi Alessandro,
> >
> > Same thing with osganimationviewer ?
> I will have a
> > look this afternoon
> >
> > Cheers,
> > Cedric
> >
> >
> > On Wed, 2010-06-02 at 10:27 +0200,
> alessandro terenzi
> > wrote:
> > > I've tried also with osg 2.9.8 and
> nathan.osg but
> > animation is not
> > > played...looking at the console I
> see lots of errors
> > like this:
> > >
> > > ...
> > > 0192CFB8 RigTransformSoftware no
> source geometry
> > found on RigGeometry
> > > ...
> > >
> > > Alessandro
> > >
> > > On Wed, Jun 2, 2010 at 9:53 AM,
> alessandro terenzi
> > > <a.te...@gmail.com> wrote:
> > > I've tried to load
> nathan.osg but nothing is
> > displayed at
> > > all...also I tried
> avatar.osg and again no
> > geometry is
> > > displayed. On the other
> hand the cow.osg
> > model is displayed
> > > correctly. Do I need any
> "wrapper" to read
> > osg models with
> > > animations even if I'm
> using osg 2.9.6 (61)?
> > >
> > > Alessandro
> > >
> > >
> > >
> > > On Wed, Jun 2, 2010 at
> 1:37 AM, Cedric