Which part don't you fully understand ? the fact the your BS center is moving or the NAN ?
Gordon Product Manager 3d __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __________________________________________________________ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lingyun Yu Sent: Monday, July 20, 2009 4:36 AM To: [email protected] Subject: [osg-users] how matrixTransform works? 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.or g _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

