Hi Julian, Curious, I'm finding that the PickHandler in osgmultiplecameras isn't working either... so a bug exists somewhere. The good news is that I can reproduce so I have a chance of fixing it.
I've added some debug info into the PickHandler and the MOVE/PUSH/RELEASE events are all being passed valid getX() and getY() locations. So this looks different from the problem you've expressed in your own app, the problem with PickHandler looks to be the set up of the computeIntersections call. Robert. On 5/22/07, Julian Looser <[EMAIL PROTECTED]> wrote:
Hi Robert, I did as you suggested and ran osgmultiplecameras cow.osg I can interact with the camera manipulators fine in each of the three views, but a look at the source code for that example shows that there should be a picking/scribe effect when I click on the cows. This doesn't happen. To check, I ran the same command from my old CVS directory, and that one does do the scribe effect. So it seems that on my installation camera manipulators are working correctly, but not GUIEventHandlers? I am running on Windows XP with a quite recent SVN update of OSG. I have one window in my application with two views inside it. Any ideas? :-) Julian. Robert Osfield wrote: > Hi Julian, > > What happens when you run the osgmultiplecameras example? i.e. > > osgmultiplecameras cow.osg > > Can you interact with all three views OK? > > What platform are you on? Does each view have a separate window or > share a single one? > > Robert. > > > > On 5/22/07, Julian Looser <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I am using the osgViewer::CompositeViewer class and I have two views >> added. I have event handlers (inherited from osgGA::GUIEventHandler) >> registered for each one. The first view works great, and all events come >> through to the handler without problems. However, the second view >> receives events, but the events do not contain the correct information. >> Specifically, when I receive the osgGA::GUIEventAdapter::MOVE event, the >> mouse X and Y values are invalid (NAN). >> >> The same code worked correctly before I upgraded from the OSG CVS >> repository to the SVN repository. Does anyone know what could have >> changed and what I might have to do to get the mouse position values >> back? >> >> Thanks in advance, >> Julian. >> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://openscenegraph.net/mailman/listinfo/osg-users >> http://www.openscenegraph.org/ >> > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
