[osg-users] getWorldMatrices of Node

2010-01-15 Thread Danny Riflko
Hi, I'm using getWorldMatrices of Node to transform local coordinates to world coordinates. Code: hipsT-addChild(rightHipT); rightHipT-addChild(rightKneeT); rightKneeT-addChild(rightAnkleT); rightAnkleT-addChild(rightFoot); scene-addChild(hipsT); osg::MatrixList worldMatrices =

Re: [osg-users] getWorldMatrices of Node

2010-01-15 Thread Martin Beckett
It isn't, worldmatrices is a list of all the individual matrices up the leg to the top. But multiplying these together gives a single matrix that is equivalent to going through all these individual conversions - thats the whole beauty of matrix transforms. Cheers, Martin --

Re: [osg-users] getWorldMatrices of Node

2010-01-15 Thread Danny Riflko
Then why std::cout worldMatrices.size() std::endl; says it's 1? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=22741#22741 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] getWorldMatrices of Node

2010-01-15 Thread Jean-Sébastien Guay
Hi MArtin, Danny, It isn't, worldmatrices is a list of all the individual matrices up the leg to the top. No - getWorldMatrices() returns the list of the localToWorld matrices for all paths from the node to the root. So if your node has only one path from itself to the root, then