Hello, I'm not sure about the problem you are talking about, but just give a suggestion that might help. Maybe the slave camera cache its size, the cache does not update with the Viewport change, and then the intersection takes the data from the cache? You could try to clear the cache and see if the problem continues. And of course maybe it has nothing to do with it, and then I apologize for wasting your time.
Guy. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-S?bastien Guay Sent: Monday, March 24, 2008 10:03 PM To: OpenSceneGraph Users Subject: Re: [osg-users] osgViewer::View::getCameraContainingPosition() returns weird results when using slave cameras Hi Glenn, > In a nutshell, I am using a single slave camera (in order to embed my > OSG surface in a .NET control). If I resize the viewport after creation, > computeIntersections() no longer returns correct results -- the Y value > is incorrectly scaled. It only works correctly if I resize the window > back to its original aspect ratio. Yes, that sounds like a different problem. In my case, I was not getting correct results from computeIntersections() whenever CompositeViewer was using a single view with slave cameras - no resizing at all involved, just using setUpViewAcrossAllScreens(). You'll have to dig further. I suggest you try starting with a breakpoint in Viewer/CompositeViewer::eventTraversal() (depending on the viewer type you use) and compare the behavior before and after resizing the viewport. Good luck, J-S -- ______________________________________________________ Jean-Sebastien Guay [EMAIL PROTECTED] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org