Re: [osg-users] MatrixTransform accumulation

2009-07-10 Thread J.P. Delport
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

Re: [osg-users] MatrixTransform accumulation

2009-07-10 Thread J.P. Delport
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

Re: [osg-users] MatrixTransform accumulation

2009-07-09 Thread Ümit Uzun
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