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());
Thanks,
Eric
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/