Today I experienced the same problem (with scrolling in a composite viewer). I got the normalized coordinates in terms of the previous view. I solved it by first checking if the coordinate is between -1.0 and 1.0, the second event was in terms of the correct camera.
Maybe the 'switch' to the second camera is not yet completed when you get your fisrt event. 2008/8/29 Mike Greene <[EMAIL PROTECTED]> > I have a OSG 2.3.7 application with an OSG viewer and two slave cameras. > The first camera is a normal "drive" type view. The other is rotated 90 > degrees so that it looks down on a terrain. > I am using a "pick" event adapter with code gleaned from on of the OSG > examples. The pick works fine on the first camera. When I switch to the > other camera (which I have set up via a keyboard command to encompass the > same viewport as the first), the event adapter function "ea.getXnormalized" > does not return a normalized value - it returns something on the order of > -13.0 from my second camera. Is this correct? > > > Mike Greene > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

