Hi Eric,

On 1/11/07, E. Wing <[EMAIL PROTECTED]> wrote:
Okay, I added a projection node at the top of the scene for the
osgkeyboardmouse example (did cvs update yesterday). It seems that
picking does fail here too with the Projection node. Below is the code
I added/changed in the main() routine.

        osg::ref_ptr<osg::Projection> viewProjection = new osg::Projection;
        viewProjection.get()->setMatrix(osg::Matrix::ortho(-20, 20, -20, 20, 
-10, 10));
        viewProjection.get()->addChild(loadedModel.get());

    viewer.setSceneData(viewProjection.get());
//    viewer.setSceneData(loadedModel.get());

I ported across osgpick to osgViewer which now has a
computeIntersection method based on the new IntersectionVisitor and it
doesn't pick the HUD in osgpick, so perhaps this is the same problem.
I'll be look into this problem today, perhaps fixes for this will fix
the above too.

Could you send me your modified osgkeyboardmouse so that I have test
it out at my end.

FYI you don't need to do a .get()-> on a ref_ptr<>, the -> works fine
directly on the ref_ptr<>.

Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to