Hi Rui,
On 19 November 2014 11:13, Robert Osfield <[email protected]> wrote:
> I have finally got back on the submussions trail and have started by
> merging your osgQt changes. One change to InteractiveImageHandler has me
> curious about the reason for the change. To the bool
> InteractiveImageHandler::mousePosition(osgViewer::View* view,
> osg::NodeVisitor* nv, const osgGA::GUIEventAdapter& ea, int& x, int &y)
> const method you added:
>
> $ diff ViewerEventHandlers.cpp
> ~/Contributors/WangRui/src/osgViewer/ViewerEventHandlers.cpp
> 721a722,727
> > if (_fullscreen)
> > {
> > x = ea.getX();
> > y = ea.getY();
> > return true;
> > }
>
> Did the original code produce the wrong values or is it simply you
> optimizing for the special case of _fullscreen?
>
I have worked out what combination of options gets the osgQtWidgets example
to reveal the bug that the above fix address, once I apply it the following
works fine:
osgQtWidgets --fullscreen --useWidgetImage --useBrowser
Or at least I should say the mouse interaction works fine. If i interact
too much I do get crash though. Also if I run using --SingleThreaded then
the widget never updates.
Any ideas what might be causing these issues?
As the changes are a step in the right direction I have merged them all.
My guess is that the issues I've seen above are pre-existing issues that
will need to be looked at separately.
Cheers,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org