Hi Martin, I have just merged your submission, and it works under Linux just fine, but the I'd like to raise a query about which direction the mouse wheel should move the model. Currently when you push the right mouse button and pull the mouse backwards away from the screen you zoom in, but when you move the mouse wheel in the same direction it zooms out.
Is there a reason why you chose this particular way around w.r.t mouse motion? My guess is that we should probably make the orientation and user configurable thing. Perhaps make it so you can set the scale of the movement, and since this could be a floating point value the sign would automatically provide us with the ability to toggle the direction as well as speed. To get the ball rolling I've checked in the scroll wheel support into TrackballManipulator with the orientation consistent with the right mouse key zooming behavior. Robert. On Thu, Feb 26, 2009 at 11:53 PM, Martin Beckett <[email protected]> wrote: > Modified osgGA::TrackballManipulator so that osgGA::GUIEventAdapter::SCROLL > performs a zoom. > Arbitrarily zooms 10% in/out for each click, only tested on Windows (sorry) > > Corss-posted from same version posted in General > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=7559#7559 > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
