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
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
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 =
3 matches
Mail list logo