Hi all,
I am hitting my head against a brick wall with this one. I am trying
to use osgManipulators to edit nodes in my scene. I attach a node to
a manipulator, rotate it, and then detach the node from the
manipulator and apply the manipulator's MatrixTransform to the node's
Replying to myself, but I found the solution if anybody else might run
into this. Calling getRotate() on the matrix can give unexpected
results if there was also a scale transform involved. The correct way
is to call Matrix.decompose(..) to get to the contributing parts:
Hello Morné,
Calling getRotate() on the matrix can give unexpected
results if there was also a scale transform involved. The correct way
is to call Matrix.decompose(..) to get to the contributing parts:
I was going to point that out, and it's even in the osg::Matrix header
doc comments for
Hi J-S,
Yup, the documentation certainly helped. In this case I blame
automatic code completion and bad assumptions. I thought there would
be something in osg::Matrix that would return the individual composing
parts and autocomplete suggested getRotate() when I typed in 'get'. I
just assumed
4 matches
Mail list logo