Hi ?,
as Robert suggested, print out some values of the matrices to make sure
that they are valid and that the multiplication order you are using is
correct.
OSG has functions for printing matrix values to screen, see / search for
<osg/io_utils>.
jp
GMD GammerMaxyandex.ru wrote:
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
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org