Hello everyone,

I am using two mice and osg to have two touch interaction.
Now I meet a small problem. I update the matrix upon object every frame, but
if I do something like this:

                       mt->setMatrix(
                            osg::Matrixf::translate(-bs.center())
                            * osg::Matrixf::scale(scale, scale, scale)
                            * osg::Matrixf::rotate(_rotation)
                            * osg::Matrixf::translate(bs.center())
                            * mt->getMatrix()
                            );

the object will move behind the eye point.
Then I get the error like

                     CullVisitor::apply<Geode&> detected NaN,
                     depth = 1.#QNAN, center=<50.0023 49.9877 49.9866>,
                     matrix={
                    -1.#IND  -1.#IND  -1.#IND  -1.#IND
                    -1.#IND  -1.#IND  -1.#IND  -1.#IND
                    -1.#IND  -1.#IND  -1.#IND  -1.#IND
                    -1.#IND  -1.#IND  -1.#IND  -1.#IND
                        }

If anybody can help?
-- 
Cheers,
Yun
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to