Hi Paul,

On 6/11/07, Paul Martz <[EMAIL PROTECTED]> wrote:
Hi Robert -- I just did an update this evening and I'm now unable to perform
a "throw" with the TrackballManipulator. For example, "osgviewer cow.osg",
left mouse motion and release while in motion -- no longer puts the cow into
a spin, as it used to.

Is this under WIndows?  Mike reported no change, but you've got an
extreme change...

In TrackballManipulator::handle(..) you'll new lines of related to
timeSinceLastRecordEvent, see below, here I'm testing against a time
delta of 0.01 second, it could be that this is too short for Windows.
Could you try something like if (timeSinceLastRecordEvent>0.02) ...

Robert.

       case(GUIEventAdapter::RELEASE):
       {
           if (ea.getButtonMask()==0)
           {

               double timeSinceLastRecordEvent = ea.getTime() -
_ga_t0->getTime(); // added
               if (timeSinceLastRecordEvent>0.01) addMouseEvent(ea); // added

               if (isMouseMoving())
               {
                   if (calcMovement())
                   {
                       us.requestRedraw();
                       us.requestContinuousUpdate(true);
                       _thrown = true;
                   }
               }
               else
               {
                   flushMouseEventStack();
                   addMouseEvent(ea);
                   if (calcMovement()) us.requestRedraw();
                   us.requestContinuousUpdate(false);
                   _thrown = false;
               }

           }
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to