Hi ??

Scaling works just fine in the OSG, it's code that has been used for
many years in many different ways, and there are no bugs with it I'm
aware of.  As to what the problem is are you end, can't really say
given your code segment and the lack of context.

Robert.

On Wed, Nov 5, 2008 at 5:35 AM, GMD GammerMaxyandex.ru
<[EMAIL PROTECTED]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to