On 7/13/06, Oliver Kutter <[EMAIL PROTECTED]> wrote:
it is indeed a MatrixTransform, because I loaded it from a simple .osg file, which I made with 3ds max. It contains only one MatrixTransform and one Geode. Furthermore, when I do this matrix transformation in the while loop, the object is moving continuously in one direction. Thus it works correctly.
It should just work, there isn't any difference in the way things are applied before the main loop and within it, the problem most likely is your own code somewhere. FYI, the shorthand way of doing what are doing is: mt->setMatrix(mt->getMatrix()*osg::Matrix::translate(x,y,z)); Note, post multiplication is effectively transforming in the parents coordinate frame, while pre multiple is effective transforming in the childrens coordinate frame. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
