Hi,
Danny Lesnik wrote:
Hi,
As far as I understand, but the WorldMatrix resides in the MatrixTransform node
which is farther of Geode so when I'm getting Geode I'm actually saving its
farther (MatrixTransform)
The Geode is currGroup->getChild(i)
And the farther is CurrGroup which I also tried to save.
osgDB::writeNodeFile(*(currGroup),currGroup->getChild(i)->getName()+".ive");
Is there any other way to get worldMatrx of the node?
I have code like:
osg::NodePath np;
osg::NodePathList npl = node->getParentalNodePaths();
// assume single path
if (!npl.empty())
{
np = npl.front();
osg::Matrixd localToWorld = osg::computeLocalToWorld(np);
...
you might want the inverse, but the function names should be a start for
more code search.
rgds
jp
Thank you!
Cheers,
Danny
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22288#22288
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org