Hi,

The change in the bone class was on my feature request list for osgAnimation 
:-) as its quite confortable to get the inverseBindMatrix from Maya, especially 
if the Charecter is animated and not in bindPose.

But in any case, the issue that I have is still there with your trunk. I 
created a minimal scengraph to demostrate missing UniqueIDs. Notice that if 
animationManager is not a ref_ptr, the UniqueIDs don't get written into files. 
The same is true for skeletton and bone. With unique IDs I get no error. 
Isn't this wrong behaviour ?


// UniqueIDs
// --------------
#include osgDB/WriteFile
#include osgAnimation/BasicAnimationManager

int main ( int argc, char * argv[] )
{
        osg::Group * scene = new osg::Group ;
        osg::ref_ptr< osgAnimation::BasicAnimationManager > manager = new 
osgAnimation::BasicAnimationManager ;
        scene -> setUpdateCallback( manager.get() ) ;
        osgDB::writeNodeFile(  * (  scene  ) , "osgAnimationSkinning.osg"  )  ;
        return 0 ;
}


// No UniqueIDs
// ------------------
#include osgDB/WriteFile
#include osgAnimation/BasicAnimationManager

int main ( int argc, char * argv[] )
{
        osg::Group * scene = new osg::Group ;
        osgAnimation::BasicAnimationManager * manager = new 
osgAnimation::BasicAnimationManager ;
        scene -> setUpdateCallback( manager ) ;
        osgDB::writeNodeFile(  * (  scene  ) , "osgAnimationSkinning.osg"  )  ;
        return 0 ;
}

Thank you!

Cheers, PP

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26463#26463





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to