Hi,
yang zhiyuan wrote:
Hi:
I find something strange like this:
osg::Matrix _matrix;
osg::ref_prtosg::MatrixTransform PAT1 = new osg::MatrixTransform();
_matrix.setTrans(osg::Vec3(10.0f,10.0f,0.0f));
PAT1 -setMatrix(_matrix);
osg::ref_prtosg::MatrixTransform PAT2 = new
Hi again,
I made a quick example using a text editor. The matrices should
definitely accumulate by themselves in the graph, that's the whole
purpose of the scene graph. Make sure that the matrix is referenceFrame
RELATIVE.
Have a look at the attached .osg file. I have just copied two
Hi Yang,
Translation operation isn't same as rotation operation. While one object is
rotating in every transformation node by traversing the scene graph from
parent to child, every node can effect the current rotation state to the
target child node.
Distinctly in translation operation every node
3 matches
Mail list logo