Hi Jason,

Good to hear you've found a solution.  Managing the events with a composite
viewer is a bit more complicated because of deciding who gets the event
focus.  The API of osgViewer::View/CompositeViewer probably needs evolving
to make it easier, exactly what it should look yet I can't say.

Putting an osg example together that does something similar to what your app
is doing would probably help out with provide an awkward test case that
pushes the current viewer usage beyond what it can do comfortable now.  Once
we have a good example we'd then be able to look at refactoring osgViewer to
make the example cleaner, and make life for users following on from yourself
just that little bit easier.

Cheers,
Robert.

On Sun, Apr 5, 2009 at 5:29 PM, Jason H. <bumperman...@hotmail.com> wrote:

> I think I have found a workaround. I have createad a new GUIEventHandler to
> handle only mouse events. I then check whether menu viewer has handled the
> message. If no, then I iterate through views of composite viewer, locate the
> camera at mouse coordinates and put event into event queue of view
> contianing mouse pointer.
>
> This workaround currently has one known issue. If I drag it too much and
> cross boundary of view, trackball manipulator of next view kicks in. I think
> this is somewhat easy to solve (by storing camera which the drag has begun
> and stick to it until a release event), but it makes me wonder whether I
> will have similar issues that I will need to tend to.
>
> Also, when this menu view is present (which occupies whole screen),
> movement in viewports become visibly slower.
>
> I will try to dynamically adjust menu view rectangle when mouse hits there
> or when a menu pops down.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=9758#9758
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to