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 =
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
--
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
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
4 matches
Mail list logo