Hi Paul,

I've changed the value to 0.02 and checked it in.

On 6/11/07, Paul Martz <[EMAIL PROTECTED]> wrote:
Yes, this is Windows, Release build. Odd that Mike didn't run into this.

And yes, changing that time value from 0.01 to 0.02 resolves the issue,
thanks.
   -Paul


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Robert Osfield
> Sent: Monday, June 11, 2007 1:13 AM
> To: osg users
> Subject: Re: [osg-users] Trackball, can't throw
>
> 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/

_______________________________________________
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/

Reply via email to