Hi, Please, make replies to your posts ! do not make a new thread each time ... If you reply to your post, we will have all the mailing history of this question, and we can see the evolution of the problem.
Next, just with this code, we cannot see what the problem is. Tell us what is good in your code, what you want to do with this code... For your problem : maybe it works, but you need a callback or a loop to see the matrix changing in real-time... Not easy to understand this little peace of code without more explanations. Regards, Vincent. 2008/12/16 olfat ibrahim <[email protected]> > hi : > > iam creating a program that have two windows one i make a drive in it and > the other is like a map i want to put indecator in the 2nd window that > indicate my current position in the first one > > i used the following code but nothing happend: > > > // Projection and ModelView matrices > osg::Matrixd proj; > osg::Matrixd mv; > ... > proj = cameraL->getProjectionMatrix(); > > mv = cameraL->getViewMatrix(); > // Create parent MatrixTransform to transform the view > volume by > // the inverse ModelView matrix. > osg::MatrixTransform* mt = new osg::MatrixTransform; > mt->setMatrix( osg::Matrixd::inverse( mv ) ); > mt->addChild( loadedMode35 ); > Mainroot->addChild(mt); > > ... > > > can some one tell me where iam going wrong ?? > > > tahnks > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

