Hi Till

Did you try to pass the window size to the manipulators? Depending on
your window setup (the way you create your graphics context and your
views) and the underlying windowing toolkit (native, Qt, wxWidgets,
...) there may be instances where the manipulators do not know the
actual window size and simply do not compute the correct mouse
movements. Use
_view->getEventQueue()->windowResize(0, 0, width, height);
to inform all interested parties of your resize. Of course, your
parameters should account for the specific view position and size in
your graphics context.

Thibault

On Nov 28, 2007 5:52 PM, till busch <[EMAIL PROTECTED]> wrote:
> hi,
>
> i'm trying to use CompositeViewer for our app. The MatrixManipulators behave
> oddly in the smaller views. it seems that the GUIEventAdapter doesn't know
> the small View's real dimensions and it acts on mouse movements as if it had
> the full size of the window.
>
> please try this in osgcompositeviewer:
> try to rotate the model with the pointer at at the right edge of the
> bottom-left view. it behaves as if it had been grabbed in the middle -- it is
> impossible to rotete the model clockwards.
>
> do you have any hints on how i can tell the MatrixManipulators that they
> should operate relative to their View's size and position?
>
> thanks,
>
> - till
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to