Re: [osg-users] Converting model to screen coordinates (UNCLASSIFIED)

2008-07-09 Thread Buckley, Bob CTR MDA/IC
To: OpenSceneGraph Users Subject: Re: [osg-users] Converting model to screen coordinates I use an IntersectionVisitor with a customized Intersector. The intersect function of the Intersector is called with the IntersectionVisitor as argument. The IntersectionVisitor has all the matrices I need: I call

Re: [osg-users] Converting model to screen coordinates

2008-07-03 Thread Per Rosengren
I use an IntersectionVisitor with a customized Intersector. The intersect function of the Intersector is called with the IntersectionVisitor as argument. The IntersectionVisitor has all the matrices I need: I call this function from the intersect function: /** compute the matrix that takes

[osg-users] Converting model to screen coordinates

2008-07-02 Thread Helbig, Yuen
Hello, I'm trying to convert from model coordinates to screen coordinates with the following code: // Compute the model to screen transformation matrix osgUtil::SceneView* sv = m_sHandler-getSceneView(); osg::Matrix modelView = sv-getViewMatrix(); osg::Matrix projection =