Hi Lee,

Thanks for the submission, it provides a significantly better throw
interactive when I disable v sync, and no doubt this will apply to
cases where frame rate changes significantly even with vysnc on so a
big thumb up from me.  The changes are now merged and submitted to
svn/trunk.

I didn't merge the keyboard handling code to toggle on/off this
feature as I'd rather keep the code more straight forward, and I can't
see a downside of your code so far.    One thing I did notice is that
the zoom in/out still suffers in the same way as it used to, so I'm
going to have a tinker to see if I can use similar techniques to what
you've implemented for pan and rotate.

It would be useful to see the TerrainManipulator and
SphericalManipulator.  Others are welcome to dive in and apply these
techniques to these manipulators.

Robert.


On Wed, Jun 24, 2009 at 11:10 PM, Butler, Lee Mr CIV USA
USAMC<[email protected]> wrote:
> This is a modification to TrackballManipulator from HEAD.
>
> I noticed that when "throwing" things the rate of motion once thrown was
> dependent on the complexity of the geometry. For complex scenes this
> meant that it looked like you were "throwing" the display into molasses.
> For simple geometry things get over-excited once thrown.
>
> The fix is to factor in the frame rendering time to the caluclated
> motion. I've implemented this for rotation and panning.
>
> Now when things are thrown they maintain a rate very close to what was
> happening when the mouse button was released.
>
> I tested this with both trivial geometry and complex scenes under 2.8.1.
> It compiles under HEAD, but the rest of HEAD (in particular,
> src/osgPlugins/p3d/ReaderWriterP3D.cpp) isn't compiling at the moment on
> my RedHat Linux system.
>
> You can toggle to the old behavior by pressing ALT-Space
>
> Consider copyright assigned
>
> Lee
>
> _______________________________________________
> 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

Reply via email to