G'Day. I have some questions about osg. 1. I have 2 functions: first sets relative scalation, second - absolute. First function works [code] osg::Matrix matrix = MyTransformMatrix->getMatrix(); matrix.preMult(osg::Matrix::scale(dx,dy,dz)); MyTransformMatrix->setMatrix(matrix); [/code]
Second doesn't - scalation works, but rotation of object changes too (casually). [code] osg::Matrix mat; mat.preMult (osg::Matrix::translate(MyTransformMatrix->getMatrix().getTrans())); mat.preMult (osg::Matrix::rotate (MyTransformMatrix->getMatrix().getRotate())); mat.preMult (osg::Matrix::scale (ax,ay,az)); MyTransformMatrix->setMatrix (mat); [/code] Where can be mistake? OSG 2.6.x, 2.7.x; MS VS2009. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

