Hi,

While investigating what I thought was a error with the new FBX plugin I 
discovered that this error affects all nodes with skeletons.


Code:
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>


int main( int argc, char** argv ) {
        osg::ArgumentParser arguments(&argc,argv);

        // Load model containing animation
        osg::ref_ptr<osgDB::ReaderWriter::Options> options = new 
osgDB::ReaderWriter::Options;
        options->setDatabasePath("C:/OpenSceneGraph-data");
        osg::ref_ptr<osg::Node> nathanNode = osgDB::readNodeFile("nathan.osg", 
options);

        // Make a copy of node with skeleton
        osg::ref_ptr<osg::Group> copiedNode = osg::clone(nathanNode->asGroup(), 
osg::CopyOp::DEEP_COPY_ALL);

        osgViewer::Viewer viewer(arguments);
        viewer.setSceneData(copiedNode);
        viewer.run();
}



The above code works perfectly well on OSG 3.0.1 but corrupts the models 
completely on OSG 3.2.0. See linked image:
[Image: http://i.imgur.com/ZGWH9RV.jpg ] (http://imgur.com/ZGWH9RV)

Am I doing something wrong or is this a bug?

Regards
Björn[/code]

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





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

Reply via email to