Hi,

I tried the following:


Code:

node = dynamic_cast<osg::Node*>(currGroup->getChild(i));
osg::NodePathList npl = node->getParentalNodePaths(); 
if (!npl.empty()) 
{ 
np = npl.front();                               
osg::Matrixd localToWorld = osg::computeLocalToWorld(np);       
grp = new osg::Group();
grp->addChild(node);
matrixtransform = new osg::MatrixTransform();
matrix->setMatrix(localToWorld);
grp->addChild(matrix);
}       
osgDB::writeNodeFile(*(grp),currGroup->getChild(i)->getName()+".ive");




but the result was the same.

What i'm doing wrong?

Thank you!

Cheers,
Danny

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





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

Reply via email to