Hi, everybody
Could someone explain me how matrixTransform works?
In the updatecallback, I set the matrixTransform like this
static float c = 1.0;
c = c + 0.01;
mt->setMatrix(osg::Matrixf::translate(-bs.center()) *
osg::Matrixf::scale(1.0, c, 1.0)
osg::Matrixf::translate(bs.center()));
With the time goes by, the center of boundingbox will change frequently. At the
end, some error happens like
CullVisitor::apply<Geode&> detected NaN,
depth=1.#QNAN, center=<49.8655 50.2613 50.5221>,
matrix = {
1 0 0 0
0 0 -7.21007 0
0 1 0 0
-1.#IND -1.#IND -1.#IND -1.#IND}
If anybody meets this ever before?
...
Thank you!
Cheers,
Lingyun
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15131#15131
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org