G'Day. I have some questions about osg. 

There is function MatrixTransform for reseting position/rotation/scale.
[code]
osg::Matrix mat;
if (!position) mat.preMult 
(osg::Matrix::translate(MyTransformMatrix->getMatrix().getTrans()));
if (!rotate) mat.preMult 
(osg::Matrix::rotate(MyTransformMatrix->getMatrix().getRotate()));
if (!scale) mat.preMult 
(osg::Matrix::scale(MyTransformMatrix->getMatrix().getScale()));
MyTransformMatrix->setMatrix (mat);
[/code]
When call this function often ,time by time objects disappeare from the screen 
and OpenGL writes many errors. Whyt can this happens?
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

Reply via email to